Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New design for vertical scrollbars (horizontal pending)
- Loading branch information
Showing
23 changed files
with
217 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
#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 |
Oops, something went wrong.