Files
OpenRA/mods/cnc/chrome/editor.yaml
2019-10-10 19:50:05 +02:00

699 lines
14 KiB
YAML

Container@NEW_MAP_BG:
Logic: NewMapLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 300
Height: 125
Children:
Label@TITLE:
Text: New Map
Width: PARENT_RIGHT
Y: 0 - 22
Font: BigBold
Contrast: true
Align: Center
Background@bg:
Width: PARENT_RIGHT
Height: 90
Background: panel-black
Children:
Label@TILESET_LABEL:
X: 25
Y: 15
Width: 95
Height: 25
Align: Right
Text: Tileset:
DropDownButton@TILESET:
X: 125
Y: 15
Width: 160
Height: 25
Label@WIDTH_LABEL:
X: 25
Y: 50
Width: 95
Height: 25
Align: Right
Text: Width:
TextField@WIDTH:
X: 125
Y: 50
Width: 50
MaxLength: 3
Height: 25
Text: 128
Type: Integer
Label@HEIGHT_LABEL:
X: 135
Y: 50
Width: 95
Height: 25
Align: Right
Text: Height:
TextField@HEIGHT:
X: 235
Y: 50
Width: 50
MaxLength: 3
Height: 25
Text: 128
Type: Integer
Button@CANCEL_BUTTON:
Y: 89
Width: 140
Height: 35
Text: Cancel
Font: Bold
Key: escape
Button@CREATE_BUTTON:
X: PARENT_RIGHT - WIDTH
Y: 89
Width: 140
Height: 35
Text: Create
Font: Bold
Key: return
Container@SAVE_MAP_PANEL:
Logic: SaveMapLogic
X: (WINDOW_RIGHT - WIDTH) / 2
Y: (WINDOW_BOTTOM - HEIGHT) / 2
Width: 345
Height: 229
Children:
Label@LABEL_TITLE:
Text: Save Map
Width: PARENT_RIGHT
Y: 0 - 22
Font: BigBold
Contrast: true
Align: Center
Background@SAVE_MAP_BACKGROUND:
Width: PARENT_RIGHT
Height: 195
Background: panel-black
Children:
Label@TITLE_LABEL:
X: 10
Y: 15
Width: 95
Height: 25
Align: Right
Text: Title:
TextField@TITLE:
X: 110
Y: 15
Width: 220
MaxLength: 50
Height: 25
Label@AUTHOR_LABEL:
X: 10
Y: 50
Width: 95
Height: 25
Align: Right
Text: Author:
TextField@AUTHOR:
X: 110
Y: 50
Width: 220
MaxLength: 50
Height: 25
Label@VISIBILITY_LABEL:
X: 10
Y: 85
Width: 95
Height: 25
Align: Right
Text: Visibility:
DropDownButton@VISIBILITY_DROPDOWN:
X: 110
Y: 85
Width: 220
Height: 25
Text: Map Visibility
Font: Regular
Label@DIRECTORY_LABEL:
X: 10
Y: 120
Width: 95
Height: 25
Align: Right
Text: Directory:
DropDownButton@DIRECTORY_DROPDOWN:
X: 110
Y: 120
Width: 220
Height: 25
Font: Regular
Label@FILENAME_LABEL:
X: 10
Y: 155
Width: 95
Height: 25
Align: Right
Text: Filename:
TextField@FILENAME:
X: 110
Y: 155
Width: 105
Height: 25
Type: Filename
DropDownButton@TYPE_DROPDOWN:
X: 220
Y: 155
Width: 110
Height: 25
Font: Regular
Button@BACK_BUTTON:
Y: PARENT_BOTTOM - 35
Width: 140
Height: 35
Text: Cancel
Font: Bold
Key: escape
Button@SAVE_BUTTON:
X: PARENT_RIGHT - 140
Y: PARENT_BOTTOM - 35
Width: 140
Height: 35
Text: Save
Font: Bold
ScrollPanel@MAP_SAVE_VISIBILITY_PANEL:
Width: 220
Height: 64
Children:
Checkbox@VISIBILITY_TEMPLATE:
X: 5
Width: PARENT_RIGHT - 29
Height: 20
Font: Regular
Container@EDITOR_ROOT:
Logic: LoadMapEditorLogic
Children:
LogicKeyListener@GLOBAL_KEYHANDLER:
Logic: MusicHotkeyLogic, ScreenshotHotkeyLogic, MuteHotkeyLogic
StopMusicKey: StopMusic
PauseMusicKey: PauseMusic
PrevMusicKey: PrevMusic
NextMusicKey: NextMusic
TakeScreenshotKey: TakeScreenshot
MuteAudioKey: ToggleMute
Container@WORLD_ROOT:
Container@MENU_ROOT:
TooltipContainer@TOOLTIP_CONTAINER:
Container@EDITOR_WORLD_ROOT:
Logic: LoadIngamePerfLogic, MapEditorLogic, ActorEditLogic
ChangeZoomKey: TogglePixelDouble
EditPanelPadding: 5
Children:
Container@PERF_ROOT:
EditorViewportController@MAP_EDITOR:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
Children:
TerrainTemplatePreview@DRAG_TILE_PREVIEW:
Visible: false
Sprite@DRAG_LAYER_PREVIEW:
Visible: false
ActorPreview@DRAG_ACTOR_PREVIEW:
Visible: false
Background@ACTOR_EDIT_PANEL:
Background: panel-black
Width: 269
Height: 89
Children:
Label@ACTOR_TYPE_LABEL:
X: 2
Y: 2
Width: 265
Height: 24
Align: Center
Font: Bold
Label@ACTOR_ID_LABEL:
Y: 30
Width: 55
Height: 24
Text: ID
Align: Right
TextField@ACTOR_ID:
X: 67
Y: 29
Width: 189
Height: 25
Label@ACTOR_ID_ERROR_LABEL:
X: 67
Y: 55
Width: 189
Height: 15
Font: TinyBold
TextColor: FF0000
Container@ACTOR_INIT_CONTAINER:
Y: 57
Width: PARENT_RIGHT
Children:
Container@CHECKBOX_OPTION_TEMPLATE:
Width: PARENT_RIGHT
Height: 22
Children:
Checkbox@OPTION:
X: 67
Y: 1
Width: PARENT_RIGHT - 67
Height: 20
Container@SLIDER_OPTION_TEMPLATE:
Width: PARENT_RIGHT
Height: 22
Children:
Label@LABEL:
Y: 1
Width: 55
Height: 16
Align: Right
Slider@OPTION:
X: 58
Y: 1
Width: 207
Height: 20
Container@DROPDOWN_OPTION_TEMPLATE:
Width: PARENT_RIGHT
Height: 27
Children:
Label@LABEL:
Y: 2
Width: 55
Height: 24
Align: Right
DropDownButton@OPTION:
X: 67
Y: 1
Width: 189
Height: 25
Font: Bold
Container@BUTTON_CONTAINER:
Y: 60
Children:
Button@DELETE_BUTTON:
X: 4
Width: 75
Height: 25
Text: Delete
Font: Bold
Button@CANCEL_BUTTON:
X: 110
Width: 75
Height: 25
Text: Cancel
Font: Bold
Button@OK_BUTTON:
X: 190
Width: 75
Height: 25
Text: OK
Font: Bold
ViewportController:
Width: WINDOW_RIGHT
Height: WINDOW_BOTTOM
IgnoreMouseOver: True
ScrollUpKey: MapScrollUp
ScrollDownKey: MapScrollDown
ScrollLeftKey: MapScrollLeft
ScrollRightKey: MapScrollRight
JumpToTopEdgeKey: MapJumpToTopEdge
JumpToBottomEdgeKey: MapJumpToBottomEdge
JumpToLeftEdgeKey: MapJumpToLeftEdge
JumpToRightEdgeKey: MapJumpToRightEdge
BookmarkSaveKeyPrefix: MapBookmarkSave
BookmarkRestoreKeyPrefix: MapBookmarkRestore
BookmarkKeyCount: 4
Background@RADAR_BG:
X: WINDOW_RIGHT - 295
Y: 5
Width: 290
Height: 290
Background: panel-gray
Children:
Radar@INGAME_RADAR:
X: 1
Y: 1
Width: PARENT_RIGHT - 2
Height: PARENT_BOTTOM - 2
MenuButton@OPTIONS_BUTTON:
Logic: MenuButtonsChromeLogic
Key: escape
X: WINDOW_RIGHT - 294 - WIDTH
Y: 5
Width: 30
Height: 25
TooltipText: Menu
TooltipContainer: TOOLTIP_CONTAINER
Children:
Image:
X: 7
Y: 5
ImageCollection: order-icons
ImageName: options
Container@TILE_WIDGETS:
Logic: TileSelectorLogic
X: WINDOW_RIGHT - 295
Y: 318
Width: 290
Height: WINDOW_BOTTOM - 410
ClickThrough: false
Children:
Container@TILES_BG:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Background:
Width: 61
Height: 50
Background: panel-black
Children:
Label@SEARCH_LABEL:
Y: 1
Width: PARENT_RIGHT - 5
Height: 25
Text: Search:
Align: Right
Font: TinyBold
Label@CATEGORIES_LABEL:
Y: 25
Width: PARENT_RIGHT - 5
Height: 25
Text: Filter:
Align: Right
Font: TinyBold
TextField@SEARCH_TEXTFIELD:
X: 60
Width: PARENT_RIGHT - 60
Height: 25
DropDownButton@CATEGORIES_DROPDOWN:
X: 60
Y: 24
Width: PARENT_RIGHT - 60
Height: 25
Font: Bold
ScrollPanel@TILETEMPLATE_LIST:
Y: 48
Width: PARENT_RIGHT
Height: PARENT_BOTTOM - 48
TopBottomSpacing: 4
ItemSpacing: 4
Children:
ScrollItem@TILEPREVIEW_TEMPLATE:
Visible: false
Width: PARENT_RIGHT - 35
TooltipContainer: TOOLTIP_CONTAINER
Children:
TerrainTemplatePreview@TILE_PREVIEW:
X: 4
Y: 4
Container@LAYER_WIDGETS:
Logic: LayerSelectorLogic
X: WINDOW_RIGHT - 295
Y: 318
Width: 290
Height: WINDOW_BOTTOM - 410
ClickThrough: false
Children:
Container@LAYERS_BG:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
ScrollPanel@LAYERTEMPLATE_LIST:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
TopBottomSpacing: 4
ItemSpacing: 4
Children:
ScrollItem@LAYERPREVIEW_TEMPLATE:
Visible: false
IgnoreChildMouseOver: true
TooltipContainer: TOOLTIP_CONTAINER
Children:
Sprite@LAYER_PREVIEW:
X: 4
Y: 4
Visible: false
Container@ACTOR_WIDGETS:
Logic: ActorSelectorLogic
X: WINDOW_RIGHT - 295
Y: 318
Width: 290
Height: WINDOW_BOTTOM - 410
ClickThrough: false
Children:
Container@ACTORS_BG:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
Background:
Width: 61
Height: 75
Background: panel-black
Children:
Label@SEARCH_LABEL:
Y: 1
Width: PARENT_RIGHT - 5
Height: 25
Text: Search:
Align: Right
Font: TinyBold
Label@CATEGORIES_LABEL:
Y: 25
Width: PARENT_RIGHT - 5
Height: 25
Text: Filter:
Align: Right
Font: TinyBold
Label@OWNERS_LABEL:
Y: 49
Width: PARENT_RIGHT - 5
Height: 25
Text: Owner:
Align: Right
Font: TinyBold
TextField@SEARCH_TEXTFIELD:
X: 60
Width: PARENT_RIGHT - 60
Height: 25
DropDownButton@CATEGORIES_DROPDOWN:
X: 60
Y: 24
Width: PARENT_RIGHT - 60
Height: 25
Font: Bold
DropDownButton@OWNERS_DROPDOWN:
X: 60
Y: 48
Width: PARENT_RIGHT - 60
Height: 25
Font: Bold
ScrollPanel@ACTORTEMPLATE_LIST:
Y: 72
Width: PARENT_RIGHT
Height: PARENT_BOTTOM - 50
TopBottomSpacing: 4
ItemSpacing: 4
Children:
ScrollItem@ACTORPREVIEW_TEMPLATE:
Visible: false
Width: PARENT_RIGHT - 35
TooltipContainer: TOOLTIP_CONTAINER
TooltipTemplate: SIMPLE_TOOLTIP
IgnoreChildMouseOver: true
Children:
ActorPreview@ACTOR_PREVIEW:
X: 4
Y: 4
Visible: true
Container@HISTORY_WIDGETS:
Logic: HistoryLogLogic
X: WINDOW_RIGHT - 295
Y: 318
Width: 290
Height: WINDOW_BOTTOM - 410
ClickThrough: false
Children:
Container@HISTORY_BG:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
Children:
ScrollPanel@HISTORY_LIST:
Width: PARENT_RIGHT
Height: PARENT_BOTTOM
CollapseHiddenChildren: True
TopBottomSpacing: 4
ItemSpacing: 4
Children:
ScrollItem@HISTORY_TEMPLATE:
X: 4
Visible: false
Width: PARENT_RIGHT - 31
Height: 25
IgnoreChildMouseOver: true
TextColor: ffffff
TextColorDisabled: 8f8f8f
Children:
Label@TITLE:
X: 5
Width: PARENT_RIGHT
Height: 25
Align: Left
Container@MAP_EDITOR_TAB_CONTAINER:
Logic: MapEditorTabsLogic
X: WINDOW_RIGHT - 295
Y: 294
Width: 290
Height: 25
ClickThrough: false
Children:
Button@TILES_TAB:
Width: 71
Height: 25
Text: Tiles
Font: Bold
Button@OVERLAYS_TAB:
X: 70
Width: 80
Height: 25
Text: Overlays
Font: Bold
Button@ACTORS_TAB:
X: 149
Width: 71
Height: 25
Text: Actors
Font: Bold
Button@HISTORY_TAB:
X: 219
Width: 71
Height: 25
Text: History
Font: Bold
Button@GRID_BUTTON:
X: WINDOW_RIGHT - 690
Y: 5
Width: 100
Height: 25
Text: Grid
Font: Bold
Key: f1
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: Toggle the terrain grid
TooltipContainer: TOOLTIP_CONTAINER
Label@ZOOM_LABEL:
X: WINDOW_RIGHT - 770 - 55
Y: 5
Width: 50
Height: 25
Text: Zoom:
Align: Right
Font: Bold
Contrast: true
DropDownButton@ZOOM_BUTTON:
X: WINDOW_RIGHT - 770
Y: 5
Width: 70
Height: 25
Font: Bold
Key: TogglePixelDouble
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: Zoom
TooltipContainer: TOOLTIP_CONTAINER
Button@COPYPASTE_BUTTON:
X: WINDOW_RIGHT - 580
Y: 5
Width: 96
Height: 25
Text: Copy/Paste
Key: c ctrl
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: Copy
TooltipContainer: TOOLTIP_CONTAINER
DropDownButton@COPYFILTER_BUTTON:
X: WINDOW_RIGHT - 475
Y: 5
Width: 140
Height: 25
Text: Copy Filters
Font: Bold
Label@COORDINATE_LABEL:
X: 10
Width: 50
Height: 25
Align: Left
Font: Bold
Contrast: true
Label@CASH_LABEL:
X: 125
Width: 50
Height: 25
Align: Left
Font: Bold
Contrast: true
Button@UNDO_BUTTON:
X: 200
Height: 25
Width: 100
Text: Undo
Font: Bold
Key: z ctrl
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: Undo last step
TooltipContainer: TOOLTIP_CONTAINER
Button@REDO_BUTTON:
X: 305
Height: 25
Width: 100
Text: Redo
Font: Bold
Key: y ctrl
TooltipTemplate: BUTTON_TOOLTIP
TooltipText: Redo last step
TooltipContainer: TOOLTIP_CONTAINER
ScrollPanel@CATEGORY_FILTER_PANEL:
Width: 190
Children:
Container@SELECT_CATEGORIES_BUTTONS:
Width: PARENT_RIGHT
Height: 30
Children:
Button@SELECT_ALL:
X: 10
Y: 2
Width: 60
Height: 25
Text: All
Button@SELECT_NONE:
X: PARENT_RIGHT - WIDTH - 34
Y: 2
Width: 60
Height: 25
Text: None
Checkbox@CATEGORY_TEMPLATE:
X: 5
Y: 5
Width: PARENT_RIGHT - 29
Height: 22
Visible: false
ScrollPanel@COPY_FILTER_PANEL:
Width: 140
Height: 65
Children:
Checkbox@CATEGORY_TEMPLATE:
X: 5
Y: 5
Width: PARENT_RIGHT - 29
Height: 20
Visible: false