mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 04:23:18 +00:00
178 lines
2.9 KiB
INI
178 lines
2.9 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of repeating buttons which have a 25 x 25 pixels image.
|
|
### - down arrow button for the listbox.
|
|
### - up arrow button for the listbox.
|
|
|
|
#define _GUI_RESOLUTION RESOLUTION SIZE IMAGE IMAGE_OVERLAY IPF
|
|
[resolution]
|
|
|
|
{RESOLUTION}
|
|
|
|
min_width = {SIZE}
|
|
min_height = {SIZE}
|
|
|
|
default_width = {SIZE}
|
|
default_height = {SIZE}
|
|
|
|
max_width = {SIZE}
|
|
max_height = {SIZE}
|
|
|
|
[state_enabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE} + ".png{IPF}"
|
|
[/image]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE_OVERLAY} + ".png{IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[state_disabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE} + ".png~GS(){IPF}"
|
|
[/image]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE_OVERLAY} + ".png~GS(){IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_disabled]
|
|
|
|
[state_pressed]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE} + "-pressed.png{IPF}"
|
|
[/image]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE_OVERLAY} + "-pressed.png{IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_pressed]
|
|
|
|
[state_focused]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE} + "-active.png{IPF}"
|
|
[/image]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE_OVERLAY} + "-active.png{IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_focused]
|
|
|
|
[/resolution]
|
|
#enddef
|
|
|
|
#define _GUI_DEFINITION ID DESCRIPTION IMAGE IMAGE_OVERLAY IPF
|
|
[repeating_button_definition]
|
|
id = {ID}
|
|
description = {DESCRIPTION}
|
|
|
|
{_GUI_RESOLUTION () 25 ({IMAGE}) ({IMAGE_OVERLAY}) ({IPF})}
|
|
|
|
[/repeating_button_definition]
|
|
#enddef
|
|
|
|
# Default normally not used since the versions with specific images are
|
|
# preferred.
|
|
{_GUI_DEFINITION
|
|
"default"
|
|
"Default don't use."
|
|
"buttons/button_square/button_square_25"
|
|
()
|
|
()
|
|
}
|
|
|
|
# Opaques arrow buttons
|
|
|
|
{_GUI_DEFINITION
|
|
"down_arrow"
|
|
"Down arrow button for a scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_down_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"up_arrow"
|
|
"Up arrow button for a scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_up_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"left_arrow"
|
|
"Left arrow button for a scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_left_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"right_arrow"
|
|
"Right arrow button for a scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_right_25"
|
|
()
|
|
}
|
|
|
|
# Transparent arrow buttons
|
|
|
|
{_GUI_DEFINITION
|
|
"left_arrow_transparent"
|
|
"Left arrow button for a transparent scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_left_25"
|
|
"~O(65%)"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"right_arrow_transparent"
|
|
"Right arrow button for a transparent scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_right_25"
|
|
"~O(65%)"
|
|
}
|
|
|
|
#undef _GUI_DEFINITION
|
|
#undef _GUI_RESOLUTION
|