mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-18 20:30:11 +00:00

include new definitions and updated versions of existing definitions "default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
107 lines
1.3 KiB
INI
107 lines
1.3 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of a toggle button to toggle sections in the help browser.
|
|
###
|
|
|
|
#define _GUI_ICON ICON
|
|
[image]
|
|
x = 0
|
|
y = 1 # The images are 24px high
|
|
w = "(image_width)"
|
|
h = "(image_height)"
|
|
name = {ICON}
|
|
[/image]
|
|
#enddef
|
|
|
|
[toggle_button_definition]
|
|
|
|
id = "help_section_toggle"
|
|
description = "This toggle button is meant to be used in topic tree in the help browser"
|
|
|
|
[resolution]
|
|
min_width = 26
|
|
min_height = 26
|
|
|
|
default_width = 26
|
|
default_height = 26
|
|
|
|
max_width = 26
|
|
max_height = 26
|
|
|
|
text_extra_width = 0
|
|
text_font_size = 0
|
|
|
|
[state]
|
|
[enabled]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ("help/closed_section.png")}
|
|
|
|
[/draw]
|
|
|
|
[/enabled]
|
|
|
|
[disabled]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ("help/closed_section.png~GS()")}
|
|
|
|
[/draw]
|
|
|
|
[/disabled]
|
|
|
|
[focused]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ("help/closed_section.png")}
|
|
|
|
[/draw]
|
|
|
|
[/focused]
|
|
[/state]
|
|
|
|
###
|
|
### Selected
|
|
###
|
|
|
|
[state]
|
|
[enabled]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ("help/open_section.png")}
|
|
|
|
[/draw]
|
|
|
|
[/enabled]
|
|
|
|
[disabled]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ("help/open_section.png~GS()")}
|
|
|
|
[/draw]
|
|
|
|
[/disabled]
|
|
|
|
[focused]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ("help/open_section.png")}
|
|
|
|
[/draw]
|
|
|
|
[/focused]
|
|
[/state]
|
|
|
|
[/resolution]
|
|
|
|
[/toggle_button_definition]
|
|
|
|
#undef _GUI_ICON
|