forked from MapComplete/MapComplete
		
	Further butchering the UI framework
This commit is contained in:
		
							parent
							
								
									6415e195d1
								
							
						
					
					
						commit
						d5d90afc74
					
				
					 10 changed files with 125 additions and 100 deletions
				
			
		|  | @ -1,4 +1,3 @@ | |||
| import {UIElement} from "../UIElement"; | ||||
| import State from "../../State"; | ||||
| import BackgroundSelector from "./BackgroundSelector"; | ||||
| import LayerSelection from "./LayerSelection"; | ||||
|  | @ -7,6 +6,7 @@ import {FixedUiElement} from "../Base/FixedUiElement"; | |||
| import ScrollableFullScreen from "../Base/ScrollableFullScreen"; | ||||
| import Translations from "../i18n/Translations"; | ||||
| import {UIEventSource} from "../../Logic/UIEventSource"; | ||||
| import BaseUIElement from "../BaseUIElement"; | ||||
| 
 | ||||
| export default class LayerControlPanel extends ScrollableFullScreen { | ||||
| 
 | ||||
|  | @ -14,13 +14,12 @@ export default class LayerControlPanel extends ScrollableFullScreen { | |||
|         super(LayerControlPanel.GenTitle, LayerControlPanel.GeneratePanel, "layers", isShown); | ||||
|     } | ||||
| 
 | ||||
|     private static GenTitle(): UIElement { | ||||
|         const title = Translations.t.general.layerSelection.title.SetClass("text-2xl break-words font-bold p-2") | ||||
|         return title.Clone(); | ||||
|     private static GenTitle():BaseUIElement { | ||||
|         return Translations.t.general.layerSelection.title.Clone().SetClass("text-2xl break-words font-bold p-2") | ||||
|     } | ||||
| 
 | ||||
|     private static GeneratePanel() { | ||||
|         let layerControlPanel: UIElement = new FixedUiElement(""); | ||||
|     private static GeneratePanel() : BaseUIElement { | ||||
|         let layerControlPanel: BaseUIElement = new FixedUiElement(""); | ||||
|         if (State.state.layoutToUse.data.enableBackgroundLayerSelection) { | ||||
|             layerControlPanel = new BackgroundSelector(); | ||||
|             layerControlPanel.SetStyle("margin:1em"); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue