GUI2/Image: added tiled-to-size image definition
This commit is contained in:
parent
f818745c72
commit
6f1a13c3a6
1 changed files with 34 additions and 30 deletions
|
@ -3,10 +3,7 @@
|
|||
### Definition of an image.
|
||||
###
|
||||
|
||||
[image_definition]
|
||||
id = "default"
|
||||
description = "an image."
|
||||
|
||||
#define _GUI_RESOLUTION _IMAGE_ATTRIBUTES
|
||||
[resolution]
|
||||
|
||||
min_width = 0
|
||||
|
@ -23,7 +20,9 @@
|
|||
[draw]
|
||||
|
||||
[image]
|
||||
name = "(text)"
|
||||
|
||||
{_IMAGE_ATTRIBUTES}
|
||||
|
||||
[/image]
|
||||
|
||||
[/draw]
|
||||
|
@ -31,6 +30,15 @@
|
|||
[/state_enabled]
|
||||
|
||||
[/resolution]
|
||||
#enddef
|
||||
|
||||
[image_definition]
|
||||
id = "default"
|
||||
description = "an image."
|
||||
|
||||
{_GUI_RESOLUTION (
|
||||
name = "(text)"
|
||||
)}
|
||||
|
||||
[/image_definition]
|
||||
|
||||
|
@ -38,30 +46,26 @@
|
|||
id = "centered"
|
||||
description = "an image."
|
||||
|
||||
[resolution]
|
||||
|
||||
min_width = 0
|
||||
min_height = 0
|
||||
|
||||
default_width = 0
|
||||
default_height = 0
|
||||
|
||||
max_width = 0
|
||||
max_height = 0
|
||||
|
||||
[state_enabled]
|
||||
|
||||
[draw]
|
||||
|
||||
[image]
|
||||
name = "(text)"
|
||||
{GUI_CENTERED_IMAGE}
|
||||
[/image]
|
||||
|
||||
[/draw]
|
||||
|
||||
[/state_enabled]
|
||||
|
||||
[/resolution]
|
||||
{_GUI_RESOLUTION (
|
||||
name = "(text)"
|
||||
{GUI_CENTERED_IMAGE}
|
||||
)}
|
||||
|
||||
[/image_definition]
|
||||
|
||||
[image_definition]
|
||||
id = "tiled_to_size"
|
||||
description = "an image."
|
||||
|
||||
{_GUI_RESOLUTION (
|
||||
name = "(text)"
|
||||
x = 0
|
||||
y = 0
|
||||
w = "(width)"
|
||||
h = "(height)"
|
||||
resize_mode = "tile"
|
||||
)}
|
||||
|
||||
[/image_definition]
|
||||
|
||||
#undef _GUI_RESOLUTION
|
||||
|
|
Loading…
Add table
Reference in a new issue