wesnoth/data/gui/themes/default/widgets/toggle_button_help_topic.cfg
Subhraman Sarkar 6b8c2e15e7 theme update for modern and rename themes
include new definitions and updated versions of existing definitions
"default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
2025-01-09 09:02:42 +05:30

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