Change the button to use the new macros.
This commit is contained in:
parent
c6439c548d
commit
66d6be81bc
1 changed files with 33 additions and 20 deletions
|
@ -1,31 +1,32 @@
|
|||
###
|
||||
### Definition of a toggle button with only a changing image.
|
||||
### It's used for the editor in the resize grid.
|
||||
### It's used for the editor in the resize grid. When needed it can also be
|
||||
### extended for usage with other widgets.
|
||||
###
|
||||
|
||||
#define ICON
|
||||
#define _GUI_ICON SIZE
|
||||
[image]
|
||||
x = 0
|
||||
y = 0
|
||||
width = {SIZE}
|
||||
height = {SIZE}
|
||||
name = "(icon)"
|
||||
[/image]
|
||||
#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."
|
||||
|
||||
#define _GUI_RESOLUTION RESOLUTION SIZE
|
||||
[resolution]
|
||||
|
||||
min_width = 27
|
||||
min_height = 27
|
||||
{RESOLUTION}
|
||||
|
||||
default_width = 27
|
||||
default_height = 27
|
||||
min_width = {SIZE}
|
||||
min_height = {SIZE}
|
||||
|
||||
max_width = 27
|
||||
max_height = 27
|
||||
default_width = {SIZE}
|
||||
default_height = {SIZE}
|
||||
|
||||
max_width = {SIZE}
|
||||
max_height = {SIZE}
|
||||
|
||||
text_extra_width = 0
|
||||
text_font_size = 0
|
||||
|
@ -35,7 +36,7 @@
|
|||
|
||||
[draw]
|
||||
|
||||
{ICON}
|
||||
{_GUI_ICON ({SIZE})}
|
||||
|
||||
[/draw]
|
||||
|
||||
|
@ -46,7 +47,7 @@
|
|||
|
||||
[draw]
|
||||
|
||||
{ICON}
|
||||
{_GUI_ICON ({SIZE})}
|
||||
|
||||
[/draw]
|
||||
|
||||
|
@ -57,7 +58,7 @@
|
|||
|
||||
[draw]
|
||||
|
||||
{ICON}
|
||||
{_GUI_ICON ({SIZE})}
|
||||
|
||||
[/draw]
|
||||
|
||||
|
@ -72,7 +73,7 @@
|
|||
|
||||
[draw]
|
||||
|
||||
{ICON}
|
||||
{_GUI_ICON ({SIZE})}
|
||||
|
||||
[/draw]
|
||||
|
||||
|
@ -83,7 +84,7 @@
|
|||
|
||||
[draw]
|
||||
|
||||
{ICON}
|
||||
{_GUI_ICON ({SIZE})}
|
||||
|
||||
[/draw]
|
||||
|
||||
|
@ -94,7 +95,7 @@
|
|||
|
||||
[draw]
|
||||
|
||||
{ICON}
|
||||
{_GUI_ICON ({SIZE})}
|
||||
|
||||
[/draw]
|
||||
|
||||
|
@ -102,6 +103,18 @@
|
|||
|
||||
[/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]
|
||||
|
||||
#undef ICON
|
||||
#undef _GUI_RESOLUTION
|
||||
#undef _GUI_ICON
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue