mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-19 09:06:58 +00:00
342 lines
11 KiB
INI
342 lines
11 KiB
INI
#textdomain wesnoth-editor
|
|
|
|
# wmlscope: set export=no
|
|
|
|
# some information about how theming works (especially the coordinates
|
|
# defined with rect=):
|
|
# http://www.wesnoth.org/forum/viewtopic.php?p=213708#213708
|
|
|
|
[theme]
|
|
name=null
|
|
[resolution]
|
|
width=1
|
|
height=1
|
|
[/resolution]
|
|
[/theme]
|
|
|
|
[theme]
|
|
name=editor
|
|
|
|
#define DEFAULT_EDITOR_FONT_NORMAL
|
|
14 #enddef
|
|
#define DEFAULT_EDITOR_FONT_SMALL
|
|
12 #enddef
|
|
#define DEFAULT_EDITOR_FONT_TINY
|
|
10 #enddef
|
|
#define DEFAULT_EDITOR_FONT_REALLYTINY
|
|
9 #enddef
|
|
|
|
#define DEFAULT_EDITOR_FONT320_NORMAL
|
|
8 #enddef
|
|
#define DEFAULT_EDITOR_FONT320_SMALL
|
|
7 #enddef
|
|
#define DEFAULT_EDITOR_FONT320_TINY
|
|
7 #enddef
|
|
|
|
{themes/macros.cfg}
|
|
|
|
[resolution]
|
|
id=1024x768
|
|
width=1024
|
|
height=768
|
|
|
|
[screen]
|
|
# this is only useful as a ref for other rects
|
|
id=screen
|
|
rect="0,0,1024,768"
|
|
[/screen]
|
|
|
|
[panel]
|
|
id=top-panel
|
|
image=themes/top-bg.png
|
|
ref=screen
|
|
rect="=,=,=,+26"
|
|
xanchor=top
|
|
yanchor=fixed
|
|
[/panel]
|
|
|
|
[main_map]
|
|
id=main-map
|
|
rect="=,+0,+882,768"
|
|
xanchor=left
|
|
yanchor=top
|
|
[/main_map]
|
|
|
|
[main_map_border]
|
|
border_size = 0.5
|
|
background_image = "terrain/off-map/background.png"
|
|
|
|
# this image is processed by the terrain matching code so should be
|
|
# in the terrains directory and should ommit the 'terrain/' prefix
|
|
# and the '.png' suffix
|
|
tile_image = "off-map/alpha"
|
|
|
|
corner_image_top_left = "terrain/off-map/fade_corner_top_left_editor.png"
|
|
corner_image_bottom_left = "terrain/off-map/fade_corner_bottom_left_editor.png"
|
|
|
|
# odd means the corner is on a tile with an odd x value,
|
|
# the tile is the ingame tile not the odd in C++
|
|
corner_image_top_right_odd = "terrain/off-map/fade_corner_top_right_odd_editor.png"
|
|
corner_image_top_right_even = "terrain/off-map/fade_corner_top_right_even_editor.png"
|
|
|
|
corner_image_bottom_right_odd = "terrain/off-map/fade_corner_bottom_right_odd_editor.png"
|
|
corner_image_bottom_right_even = "terrain/off-map/fade_corner_bottom_right_even_editor.png"
|
|
|
|
border_image_left = "terrain/off-map/fade_border_left_editor.png"
|
|
border_image_right = "terrain/off-map/fade_border_right_editor.png"
|
|
|
|
border_image_top_odd = "terrain/off-map/fade_border_top_odd_editor.png"
|
|
border_image_top_even = "terrain/off-map/fade_border_top_even_editor.png"
|
|
|
|
border_image_bottom_odd = "terrain/off-map/fade_border_bottom_odd_editor.png"
|
|
border_image_bottom_even = "terrain/off-map/fade_border_bottom_even_editor.png"
|
|
[/main_map_border]
|
|
|
|
# rightside panel
|
|
[panel]
|
|
id=top-right-panel
|
|
image=themes/rightside-editor.png
|
|
rect="+0,=+0,1024,+284"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/panel]
|
|
[panel]
|
|
id=middle-right-panel
|
|
image=themes/rightside-bg.png
|
|
rect="=,+0,=,768"
|
|
xanchor=right
|
|
yanchor=top
|
|
[/panel]
|
|
#[panel]
|
|
# id=bottom-right-panel
|
|
# image=themes/rightside-bottom.png
|
|
# rect="=,+0,=,768"
|
|
# xanchor=right
|
|
# yanchor=bottom
|
|
#[/panel]
|
|
|
|
[menu]
|
|
id=menu-editor-file
|
|
title= _ "File"
|
|
image=lite
|
|
items=editor-map-new,editor-map-load,editor-map-revert,editor-map-save,editor-map-save-as,preferences,editor-settings,editor-close-map,quit,editor-quit-to-desktop
|
|
ref=top-panel
|
|
rect="=+3,=+1,+100,=-4"
|
|
xanchor=fixed
|
|
yanchor=fixed
|
|
[/menu]
|
|
|
|
[menu]
|
|
id=menu-editor-edit
|
|
title= _ "Edit"
|
|
image=lite
|
|
items=undo,redo,editor-cut,editor-copy,editor-paste,editor-export-selection-coords,editor-select-all,editor-select-inverse,editor-select-none, editor-selection-fill,editor-selection-rotate,editor-selection-flip, editor-selection-generate,editor-selection-randomize
|
|
rect="+2,=,+100,="
|
|
xanchor=fixed
|
|
yanchor=fixed
|
|
[/menu]
|
|
|
|
[menu]
|
|
id=menu-editor-map
|
|
title= _ "Map"
|
|
image=lite
|
|
items=editor-map-resize,editor-map-rotate,editor-map-generate, editor-map-apply-mask,editor-map-create-mask-to, editor-refresh,editor-update-transitions,editor-auto-update-transitions,editor-refresh-image-cache, editor-draw-coordinates,editor-draw-terrain-codes
|
|
rect="+2,=,+100,="
|
|
xanchor=fixed
|
|
yanchor=fixed
|
|
[/menu]
|
|
|
|
[menu]
|
|
id=menu-editor-window
|
|
title= _ "Window"
|
|
image=lite
|
|
items=editor-switch-map
|
|
rect="+2,=,+100,="
|
|
xanchor=fixed
|
|
yanchor=fixed
|
|
[/menu]
|
|
|
|
[menu]
|
|
id=menu-editor-paste-context
|
|
is_context_menu=true
|
|
items=editor-paste,editor-clipboard-rotate-cw,editor-clipboard-rotate-ccw,editor-clipboard-flip-horizontal,editor-clipboard-flip-vertical
|
|
[/menu]
|
|
|
|
[mini_map]
|
|
id=mini-map
|
|
ref=top-right-panel
|
|
rect="=+10,=+7,=-7,+143"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/mini_map]
|
|
|
|
# The toolbar.
|
|
[menu]
|
|
id=draw_button_editor
|
|
image=draw_button_editor
|
|
items=editor-tool-paint
|
|
# wmllint: local spelling left/right Ctrl+click
|
|
tooltip= _ "Use left/right mouse button to draw fore-/background terrain. Hold Shift to paint base layer only. Ctrl+click to sample terrain under cursor."
|
|
tooltip_name_prepend=yes
|
|
ref=top-right-panel
|
|
#harcoded since the brushes are above, which are hardcoded in src/editor/editor_layout.cpp
|
|
rect="=+15,183,+24,+24"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/menu]
|
|
[menu]
|
|
id=flood_button_editor
|
|
image=flood_button_editor
|
|
items=editor-tool-fill
|
|
# wmllint: local spelling fore-/background
|
|
tooltip= _ "Use left/right mouse button to draw fore-/background terrain. Hold Shift to paint base layer only. Ctrl+click to sample terrain under cursor."
|
|
tooltip_name_prepend=yes
|
|
rect="+6,=,+24,+24"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/menu]
|
|
[menu]
|
|
id=start_position_button_editor
|
|
image=start_position_button_editor
|
|
items=editor-tool-starting-position
|
|
# wmllint: local spelling alt+number
|
|
tooltip= _ "Left mouse button displays player selection, right clears. Number keys scroll to the starting position, alt+number sets respective starting position under cursor, delete clears."
|
|
tooltip_name_prepend=yes
|
|
rect="+6,=,+24,+24"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/menu]
|
|
[menu]
|
|
id=select_button_editor
|
|
image=select_button_editor
|
|
items=editor-tool-select
|
|
# wmllint: local spelling deselects
|
|
tooltip= _ "Left mouse button selects, right deselects. Hold Shift for magic-wand selection of tiles with same terrain."
|
|
tooltip_name_prepend=yes
|
|
rect="+6,=,+24,+24"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/menu]
|
|
[menu]
|
|
id=undo_button_editor
|
|
image=undo_button_editor
|
|
items=undo
|
|
auto_tooltip=yes
|
|
ref=draw_button_editor
|
|
rect="=,+42,+24,+24"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/menu]
|
|
[menu]
|
|
id=redo_button_editor
|
|
image=redo_button_editor
|
|
items=redo
|
|
auto_tooltip=yes
|
|
rect="+6,=,+24,+24"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/menu]
|
|
[menu]
|
|
id=zoom_in_button_editor
|
|
image=zoom_in_button_editor
|
|
items=zoomin
|
|
auto_tooltip=yes
|
|
rect="+6,=,+24,+24"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/menu]
|
|
[menu]
|
|
id=zoom_out_button_editor
|
|
image=zoom_out_button_editor
|
|
items=zoomout
|
|
auto_tooltip=yes
|
|
rect="+6,=,+24,+24"
|
|
xanchor=right
|
|
yanchor=fixed
|
|
[/menu]
|
|
|
|
[panel]
|
|
id=villages-panel
|
|
image=themes/status-bg.png
|
|
ref=menu-editor-window
|
|
rect="+5,=+1,+71,+19"
|
|
xanchor=fixed
|
|
yanchor=fixed
|
|
[/panel]
|
|
|
|
[label]
|
|
id=villages-icon
|
|
icon=themes/villages.png
|
|
text= _ "villages"
|
|
ref=villages-panel
|
|
rect="=+5,=+1,+17,+17"
|
|
xanchor=fixed
|
|
yanchor=fixed
|
|
[/label]
|
|
|
|
[status]
|
|
#[editor_tool_hint]
|
|
# id=tool-hint
|
|
# font_size={DEFAULT_EDITOR_FONT_REALLYTINY}
|
|
# ref=draw_button_editor
|
|
# rect="=,+6,+110,+40"
|
|
# xanchor=right
|
|
# yanchor=fixed
|
|
# prefix="" #wmllint: ignore
|
|
# prefix_literal=""
|
|
#[/editor_tool_hint]
|
|
|
|
# the time of day image
|
|
# [time_of_day]
|
|
# id=image-tod
|
|
# ref=top-right-panel
|
|
# rect="=+10,=+159,=-7,+39"
|
|
# xanchor=right
|
|
# yanchor=fixed
|
|
# [/time_of_day]
|
|
|
|
[villages]
|
|
id=villages
|
|
font_size={DEFAULT_EDITOR_FONT_SMALL}
|
|
ref=villages-icon
|
|
rect="+4,=,+55,+16"
|
|
xanchor=fixed
|
|
yanchor=fixed
|
|
prefix="" #wmllint: ignore
|
|
prefix_literal=""
|
|
[/villages]
|
|
|
|
# This panel encloses the location information displays and the
|
|
# observer icon. This separate container is used so that we can
|
|
# make the terrain name display stretch to fill all available space
|
|
# so that the long strings don't get cut off as easily.
|
|
[panel]
|
|
id=terrain-panel
|
|
rect="+0,=,1024,="
|
|
xanchor=left
|
|
yanchor=fixed
|
|
[/panel]
|
|
|
|
# The size of these rectangles only accommodates hex coordinates
|
|
# up to 99. If either is over that maximum the movement cost will
|
|
# be pushed off the right end.
|
|
[position]
|
|
id=status-position
|
|
font_size={DEFAULT_EDITOR_FONT_SMALL}
|
|
ref=terrain-panel
|
|
rect="=+15,=,+95,="
|
|
xanchor=fixed
|
|
yanchor=fixed
|
|
[/position]
|
|
[terrain]
|
|
id=status-terrain
|
|
font_size={DEFAULT_EDITOR_FONT_SMALL}
|
|
ref=terrain-panel
|
|
rect="=+115,=,=-24,="
|
|
xanchor=left
|
|
yanchor=fixed
|
|
[/terrain]
|
|
[/status]
|
|
[/resolution]
|
|
[/theme]
|