image_definition for scaled unit portraits, not working.
This commit is contained in:
parent
0afd6fcd7d
commit
18631914f8
1 changed files with 36 additions and 0 deletions
36
data/gui/default/widget/image_scaled.cfg
Normal file
36
data/gui/default/widget/image_scaled.cfg
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
#textdomain wesnoth-lib
|
||||||
|
###
|
||||||
|
### Definition of an image.
|
||||||
|
###
|
||||||
|
{gui/default/macros/_initial.cfg}
|
||||||
|
[image_definition]
|
||||||
|
id = "scaled"
|
||||||
|
description = "an image, scaled depending on resolution."
|
||||||
|
|
||||||
|
[resolution]
|
||||||
|
|
||||||
|
min_width = 250 #"{__GUI_IMAGE_DISPLAYED_WIDTH}"
|
||||||
|
min_height = 250 #"{__GUI_IMAGE_DISPLAYED_HEIGHT}"
|
||||||
|
|
||||||
|
default_width = 250 #"{__GUI_IMAGE_DISPLAYED_WIDTH}"
|
||||||
|
default_height = 250 #"{__GUI_IMAGE_DISPLAYED_HEIGHT}"
|
||||||
|
|
||||||
|
max_width = 250 #"{__GUI_IMAGE_DISPLAYED_WIDTH}"
|
||||||
|
max_height = 250 #"{__GUI_IMAGE_DISPLAYED_HEIGHT}"
|
||||||
|
|
||||||
|
[state_enabled]
|
||||||
|
|
||||||
|
[draw]
|
||||||
|
|
||||||
|
[image]
|
||||||
|
name = "(text)"
|
||||||
|
[/image]
|
||||||
|
|
||||||
|
[/draw]
|
||||||
|
|
||||||
|
[/state_enabled]
|
||||||
|
|
||||||
|
[/resolution]
|
||||||
|
|
||||||
|
[/image_definition]
|
||||||
|
|
Loading…
Add table
Reference in a new issue