gui2/toggle_button: Add a radio button variation without a label

This commit is contained in:
Iris Morelle 2020-07-06 21:23:36 -04:00
parent 9749d60f3a
commit e2c5b923fb

View file

@ -0,0 +1,112 @@
#textdomain wesnoth-lib
###
### Definition of a radio toggle button without a label.
###
#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/radiobox.png"
[/image]
[/draw]
[/enabled]
[disabled]
[draw]
[image]
name = "buttons/radiobox.png~GS()"
[/image]
[/draw]
[/disabled]
[focused]
[draw]
[image]
name = "buttons/radiobox-active.png"
[/image]
[/draw]
[/focused]
[/state]
###
### Selected
###
[state]
[enabled]
[draw]
[image]
name = "buttons/radiobox-pressed.png"
[/image]
[/draw]
[/enabled]
[disabled]
[draw]
[image]
name = "buttons/radiobox-pressed.png~GS()"
[/image]
[/draw]
[/disabled]
[focused]
[draw]
[image]
name = "buttons/radiobox-active-pressed.png"
[/image]
[/draw]
[/focused]
[/state]
[/resolution]
#enddef
[toggle_button_definition]
id = "radio_no_label"
description = "Radio button without a text label."
{_GUI_RESOLUTION () 20 18}
[/toggle_button_definition]
#undef _GUI_RESOLUTION