mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 12:42:19 +00:00
136 lines
2.0 KiB
INI
136 lines
2.0 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of a toggle button with only a changing image.
|
|
### It's used for the editor in the resize grid. When needed it can also be
|
|
### extended for usage with other widgets.
|
|
###
|
|
|
|
#define _GUI_ICON SIZE
|
|
[image]
|
|
x = 0
|
|
y = 0
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = "(icon)"
|
|
[/image]
|
|
#enddef
|
|
|
|
#define _GUI_RESOLUTION RESOLUTION SIZE
|
|
[resolution]
|
|
|
|
{RESOLUTION}
|
|
|
|
min_width = {SIZE}
|
|
min_height = {SIZE}
|
|
|
|
default_width = {SIZE}
|
|
default_height = {SIZE}
|
|
|
|
max_width = {SIZE}
|
|
max_height = {SIZE}
|
|
|
|
text_extra_width = 0
|
|
text_font_size = 0
|
|
|
|
[state_enabled]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ({SIZE})}
|
|
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[state_disabled]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ({SIZE})}
|
|
|
|
[/draw]
|
|
|
|
[/state_disabled]
|
|
|
|
[state_focussed]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ({SIZE})}
|
|
|
|
[/draw]
|
|
|
|
[/state_focussed]
|
|
|
|
###
|
|
### Selected
|
|
###
|
|
|
|
[state_enabled_selected]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ({SIZE})}
|
|
|
|
[/draw]
|
|
|
|
[/state_enabled_selected]
|
|
|
|
[state_disabled_selected]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ({SIZE})}
|
|
|
|
[/draw]
|
|
|
|
[/state_disabled_selected]
|
|
|
|
[state_focussed_selected]
|
|
|
|
[draw]
|
|
|
|
{_GUI_ICON ({SIZE})}
|
|
|
|
[/draw]
|
|
|
|
[/state_focussed_selected]
|
|
|
|
[/resolution]
|
|
|
|
#enddef
|
|
|
|
[toggle_button_definition]
|
|
|
|
id = "icon"
|
|
description = "This toggle button is meant to be used in the resize grid of the editor and only has an icon."
|
|
|
|
{_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 13 }
|
|
{_GUI_RESOLUTION ({GUI_NORMAL__RESOLUTION}) 27 }
|
|
|
|
[/toggle_button_definition]
|
|
|
|
[toggle_button_definition]
|
|
|
|
id = "icon_small"
|
|
description = "Small version of the icon-only toggle button."
|
|
|
|
{_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 10 }
|
|
{_GUI_RESOLUTION ({GUI_NORMAL__RESOLUTION}) 16 }
|
|
|
|
[/toggle_button_definition]
|
|
|
|
[toggle_button_definition]
|
|
|
|
id = "icon_tiny"
|
|
description = "Tiny version of the icon-only toggle button."
|
|
|
|
{_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 10 }
|
|
{_GUI_RESOLUTION ({GUI_NORMAL__RESOLUTION}) 10 }
|
|
|
|
[/toggle_button_definition]
|
|
|
|
#undef _GUI_RESOLUTION
|
|
#undef _GUI_ICON
|
|
|