mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 11:13:26 +00:00
371 lines
5.9 KiB
INI
371 lines
5.9 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of the main screen for Wesnoth.
|
|
###
|
|
|
|
[window_definition]
|
|
|
|
id = "title_screen"
|
|
description = "The window definition for the title screen."
|
|
|
|
[resolution]
|
|
|
|
[background]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = "(background_image)"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/background]
|
|
|
|
[foreground]
|
|
|
|
[draw]
|
|
|
|
[/draw]
|
|
|
|
[/foreground]
|
|
|
|
[/resolution]
|
|
|
|
[/window_definition]
|
|
|
|
#define _GUI_H_SPACER
|
|
[column]
|
|
|
|
[spacer]
|
|
# 17 emperical determined the border is 20 pixels at 768 and
|
|
# offsetted for the 5 pixels border between widgets this value
|
|
# seems right
|
|
#
|
|
# NOTE the engine doesn't recalculate the height upon scaling.
|
|
definition = "default"
|
|
width = "((17 * screen_width) / 768)"
|
|
[/spacer]
|
|
|
|
[/column]
|
|
#enddef
|
|
|
|
#define _GUI_V_SPACER
|
|
[column]
|
|
|
|
[spacer]
|
|
# NOTE the engine doesn't recalculate the height upon scaling.
|
|
definition = "default"
|
|
height = "((22 * screen_height) / 1024)"
|
|
[/spacer]
|
|
|
|
[/column]
|
|
#enddef
|
|
|
|
#define _GUI_TIP_SECTION
|
|
[panel]
|
|
definition = "title_screen"
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
|
|
[multi_page]
|
|
id = "tips"
|
|
definition = "default"
|
|
|
|
[page_definition]
|
|
|
|
[row]
|
|
grow_factor = 1
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = "true"
|
|
vertical_grow = "true"
|
|
|
|
[label]
|
|
id = "tip"
|
|
definition = "alignment"
|
|
|
|
wrap = "true"
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = "true"
|
|
|
|
[label]
|
|
id = "source"
|
|
definition = "alignment"
|
|
|
|
text_alignment = "right"
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/page_definition]
|
|
|
|
[/multi_page]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_grow = "true"
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "left"
|
|
|
|
[button]
|
|
id = "help"
|
|
definition = "default"
|
|
|
|
label = _ "Help"
|
|
tooltip = _"Show Battle for Wesnoth help"
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
grow_factor = 1
|
|
horizontal_alignment = "right"
|
|
|
|
[button]
|
|
id = "previous_tip"
|
|
definition = "default"
|
|
|
|
label = _ "Previous"
|
|
tooltip = _"Show previous tip of the day"
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "right"
|
|
|
|
[button]
|
|
id = "next_tip"
|
|
definition = "default"
|
|
|
|
label = _ "Next"
|
|
tooltip = _"Show next tip of the day"
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/panel]
|
|
#enddef
|
|
|
|
|
|
#define _GUI_BUTTON ID CAPTION TOOLTIP
|
|
[row]
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = "true"
|
|
[button]
|
|
id = {ID}
|
|
definition = "default"
|
|
|
|
label = {CAPTION}
|
|
tooltip = {TOOLTIP}
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
#enddef
|
|
|
|
#define _GUI_MENU_SECTION
|
|
[panel]
|
|
definition = "title_screen"
|
|
|
|
[grid]
|
|
{_GUI_BUTTON "tutorial" _"Tutorial" _"Start a tutorial to familiarize yourself with the game"}
|
|
{_GUI_BUTTON "campaign" _"Campaign" _"Start a new single player campaign"}
|
|
{_GUI_BUTTON "multiplayer" _"Multiplayer" _"Play multiplayer (hotseat, LAN, or Internet), or a single scenario against the AI"}
|
|
{_GUI_BUTTON "load" _"Load" _"Load a saved game"}
|
|
{_GUI_BUTTON "addons" _"Add-ons" _"Download usermade campaigns, eras, or map packs"}
|
|
{_GUI_BUTTON "editor" _"Editor" _"Start the map editor"}
|
|
{_GUI_BUTTON "language" _"Language" _"Change the language"}
|
|
{_GUI_BUTTON "preferences" _"Preferences" _"Configure the game's settings"}
|
|
{_GUI_BUTTON "credits" _"Credits" _"View the credits"}
|
|
{_GUI_BUTTON "quit" _"Quit" _"Quit the game"}
|
|
[/grid]
|
|
|
|
[/panel]
|
|
#enddef
|
|
|
|
[window]
|
|
id = "title_screen"
|
|
description = "MP create game dialog."
|
|
|
|
[resolution]
|
|
definition = "title_screen"
|
|
|
|
automatic_placement = "false"
|
|
x = 0
|
|
y = 0
|
|
width = "(screen_width)"
|
|
height = "(screen_height)"
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
{_GUI_V_SPACER}
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 1
|
|
|
|
[column]
|
|
|
|
horizontal_grow = "true"
|
|
vertical_grow = "true"
|
|
|
|
[stacked_widget]
|
|
|
|
[stack]
|
|
|
|
[layer]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
vertical_alignment = "top"
|
|
|
|
[progress_bar]
|
|
id = "logo"
|
|
definition = "title_screen"
|
|
[/progress_bar]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/layer]
|
|
|
|
[layer]
|
|
|
|
[row]
|
|
grow_factor = 1
|
|
|
|
{_GUI_H_SPACER}
|
|
|
|
[column]
|
|
vertical_alignment = "bottom"
|
|
{_GUI_TIP_SECTION}
|
|
[/column]
|
|
|
|
[column]
|
|
horizontal_alignment = "right"
|
|
vertical_alignment = "bottom"
|
|
{_GUI_MENU_SECTION}
|
|
[/column]
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "right"
|
|
vertical_alignment = "bottom"
|
|
|
|
[button]
|
|
id = "upload_statistics"
|
|
definition = "upload_statistics"
|
|
|
|
tooltip = _"Upload statistics"
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
{_GUI_H_SPACER}
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
|
|
{_GUI_H_SPACER}
|
|
|
|
[column]
|
|
horizontal_alignment = "left"
|
|
|
|
[label]
|
|
id = "revision_number"
|
|
definition = "title_creen_revision"
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
{_GUI_V_SPACER}
|
|
{_GUI_V_SPACER}
|
|
{_GUI_H_SPACER}
|
|
|
|
[/row]
|
|
|
|
[/layer]
|
|
|
|
[/stack]
|
|
|
|
[/stacked_widget]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
|
|
[/grid]
|
|
|
|
[/resolution]
|
|
|
|
[/window]
|
|
|
|
#undef _GUI_TIP_SECTION
|
|
#undef _GUI_MENU_SECTION
|
|
#undef _GUI_BUTTON
|
|
#undef _GUI_H_SPACER
|
|
#undef _GUI_V_SPACER
|