mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 11:00:36 +00:00
87 lines
1.1 KiB
INI
87 lines
1.1 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of an image.
|
|
###
|
|
|
|
#define _GUI_RESOLUTION _IMAGE_ATTRIBUTES
|
|
[resolution]
|
|
|
|
min_width = 0
|
|
min_height = 0
|
|
|
|
default_width = 0
|
|
default_height = 0
|
|
|
|
max_width = 0
|
|
max_height = 0
|
|
|
|
[state_enabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
|
|
{_IMAGE_ATTRIBUTES}
|
|
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[/resolution]
|
|
#enddef
|
|
|
|
[image_definition]
|
|
id = "default"
|
|
description = "an image."
|
|
|
|
{_GUI_RESOLUTION (
|
|
name = "(text)"
|
|
)}
|
|
|
|
[/image_definition]
|
|
|
|
[image_definition]
|
|
id = "centered"
|
|
description = "an image."
|
|
|
|
{_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]
|
|
|
|
[image_definition]
|
|
id = "scaled_to_size"
|
|
description = "an image."
|
|
|
|
{_GUI_RESOLUTION (
|
|
name = "(text)"
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
resize_mode = "scale"
|
|
)}
|
|
|
|
[/image_definition]
|
|
|
|
#undef _GUI_RESOLUTION
|