190 lines
3.1 KiB
INI
190 lines
3.1 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of repeating buttons for scrollbar arrows
|
|
###
|
|
|
|
#define _GUI_RESOLUTION RESOLUTION SIZE IMAGE_OVERLAY IPF ALPHA
|
|
[resolution]
|
|
|
|
{RESOLUTION}
|
|
|
|
min_width = {SIZE}
|
|
min_height = {SIZE}
|
|
|
|
default_width = {SIZE}
|
|
default_height = {SIZE}
|
|
|
|
max_width = {SIZE}
|
|
max_height = {SIZE}
|
|
|
|
[state_enabled]
|
|
|
|
[draw]
|
|
|
|
[rectangle]
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
fill_color = "4, 4, 4, {ALPHA}"
|
|
[/rectangle]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE_OVERLAY} + ".png{IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[state_disabled]
|
|
|
|
[draw]
|
|
|
|
[rectangle]
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
fill_color = "4, 4, 4, {ALPHA}"
|
|
[/rectangle]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE_OVERLAY} + ".png~GS(){IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_disabled]
|
|
|
|
[state_pressed]
|
|
|
|
[draw]
|
|
|
|
[rectangle]
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
fill_color = "4, 4, 4, {ALPHA}"
|
|
[/rectangle]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE_OVERLAY} + "-pressed.png{IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_pressed]
|
|
|
|
[state_focused]
|
|
|
|
[draw]
|
|
|
|
[rectangle]
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
fill_color = "4, 4, 4, {ALPHA}"
|
|
[/rectangle]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE_OVERLAY} + "-active.png{IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_focused]
|
|
|
|
[/resolution]
|
|
#enddef
|
|
|
|
#define _GUI_DEFINITION ID DESCRIPTION IMAGE_OVERLAY IPF ALPHA
|
|
[repeating_button_definition]
|
|
id = {ID}
|
|
description = {DESCRIPTION}
|
|
|
|
{_GUI_RESOLUTION () 15 ({IMAGE_OVERLAY}) ({IPF}) ({ALPHA})}
|
|
|
|
[/repeating_button_definition]
|
|
#enddef
|
|
|
|
{_GUI_DEFINITION
|
|
"scrollbar_up_arrow"
|
|
"Up arrow button for a scrollbar."
|
|
"icons/arrows/short_arrow_right_25"
|
|
("~CROP(4,4,17,17)~ROTATE(-90)")
|
|
"255"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"scrollbar_down_arrow"
|
|
"Down arrow button for a scrollbar."
|
|
"icons/arrows/short_arrow_right_25"
|
|
("~CROP(4,4,17,17)~ROTATE(90)")
|
|
"255"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"scrollbar_left_arrow"
|
|
"Up arrow button for a scrollbar."
|
|
"icons/arrows/short_arrow_right_25"
|
|
("~CROP(4,4,17,17)~ROTATE(180)")
|
|
"255"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"scrollbar_right_arrow"
|
|
"Down arrow button for a scrollbar."
|
|
"icons/arrows/short_arrow_right_25"
|
|
("~CROP(4,4,17,17)")
|
|
"255"
|
|
}
|
|
|
|
#
|
|
# Transparent versions
|
|
#
|
|
|
|
{_GUI_DEFINITION
|
|
"scrollbar_up_arrow_transparent"
|
|
"Up arrow button for a scrollbar."
|
|
"icons/arrows/short_arrow_right_25"
|
|
("~CROP(4,4,17,17)~ROTATE(-90)~O(65%)")
|
|
"165"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"scrollbar_down_arrow_transparent"
|
|
"Down arrow button for a scrollbar."
|
|
"icons/arrows/short_arrow_right_25"
|
|
("~CROP(4,4,17,17)~ROTATE(90)~O(65%)")
|
|
"165"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"scrollbar_left_arrow_transparent"
|
|
"Up arrow button for a scrollbar."
|
|
"icons/arrows/short_arrow_right_25"
|
|
("~CROP(4,4,17,17)~ROTATE(180)~O(65%)")
|
|
"165"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"scrollbar_right_arrow_transparent"
|
|
"Down arrow button for a scrollbar."
|
|
"icons/arrows/short_arrow_right_25"
|
|
("~CROP(4,4,17,17)~O(65%)")
|
|
"165"
|
|
}
|
|
|
|
#undef _GUI_DEFINITION
|
|
#undef _GUI_RESOLUTION
|