mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 09:22:56 +00:00

Using checkboxes with an empty label doesn't quite do the trick and it results in some (minimal) wasted horizontal space.
115 lines
1.4 KiB
INI
115 lines
1.4 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of a toggle button without a label.
|
|
### (Note that this is also used by the implementation of the dropdown menu on
|
|
### the C++ side.)
|
|
###
|
|
|
|
#define _GUI_RESOLUTION RESOLUTION WIDTH HEIGHT
|
|
[resolution]
|
|
|
|
{RESOLUTION}
|
|
|
|
min_width = {WIDTH}
|
|
min_height = {HEIGHT}
|
|
|
|
default_width = {WIDTH}
|
|
default_height = {HEIGHT}
|
|
|
|
max_width = 0
|
|
max_height = {HEIGHT}
|
|
|
|
[state]
|
|
[enabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
name = "buttons/checkbox.png"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/enabled]
|
|
|
|
[disabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
name = "buttons/checkbox.png~GS()"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/disabled]
|
|
|
|
[focused]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
name = "buttons/checkbox-active.png"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/focused]
|
|
[/state]
|
|
|
|
###
|
|
### Selected
|
|
###
|
|
|
|
[state]
|
|
[enabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
name = "buttons/checkbox-pressed.png"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/enabled]
|
|
|
|
[disabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
name = "buttons/checkbox-pressed.png~GS()"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/disabled]
|
|
|
|
[focused]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
name = "buttons/checkbox-active-pressed.png"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/focused]
|
|
[/state]
|
|
|
|
[/resolution]
|
|
#enddef
|
|
|
|
[toggle_button_definition]
|
|
|
|
id = "no_label"
|
|
description = "Checkbox without a label."
|
|
|
|
{_GUI_RESOLUTION () 20 18}
|
|
|
|
[/toggle_button_definition]
|
|
|
|
#undef _GUI_RESOLUTION
|