Split image widget into two definitions, default and centered (redo of d2191297c5)

This commit is contained in:
Charles Dang 2016-08-29 07:26:12 +11:00
parent 1a82a37ea1
commit 898d98ab8d
2 changed files with 32 additions and 2 deletions

View file

@ -7,6 +7,37 @@
id = "default"
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)"
[/image]
[/draw]
[/state_enabled]
[/resolution]
[/image_definition]
[image_definition]
id = "centered"
description = "an image."
[resolution]
min_width = 0
@ -35,4 +66,3 @@
[/resolution]
[/image_definition]

View file

@ -86,7 +86,7 @@
{GUI_FORCE_WIDGET_MINIMUM_SIZE 144 144 (
[image]
definition = "default"
definition = "centered"
id = "leader_image"
[/image]
)}