Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #603 from CelticMinstrel/prefs_stuff
Font scaling and reimplemented orb colors
- Loading branch information
Showing
30 changed files
with
657 additions
and
133 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,112 @@ | ||
#textdomain wesnoth-lib | ||
### | ||
### Definition of a selectable orb button. | ||
### | ||
|
||
#define _GUI_ICON SIZE STATE | ||
[image] | ||
x = 0 | ||
y = 0 | ||
w = {SIZE} | ||
h = {SIZE} | ||
name = "('buttons/misc/orb{STATE}.png" + <<~RC(magenta>{icon})')>> | ||
[/image] | ||
#enddef | ||
#define _GUI_RESOLUTION RESOLUTION SIZE | ||
[resolution] | ||
{RESOLUTION} | ||
min_width = {SIZE} | ||
min_height = {SIZE} | ||
default_width = {SIZE} | ||
default_height = {SIZE} | ||
max_width = {SIZE} | ||
max_height = {SIZE} | ||
text_extra_width = 0 | ||
text_font_size = 0 | ||
[state] | ||
[enabled] | ||
[draw] | ||
{_GUI_ICON ({SIZE}) ()} | ||
[/draw] | ||
[/enabled] | ||
[disabled] | ||
[draw] | ||
{_GUI_ICON ({SIZE}) ()} | ||
[/draw] | ||
[/disabled] | ||
[focused] | ||
[draw] | ||
{_GUI_ICON ({SIZE}) (-active)} | ||
[/draw] | ||
[/focused] | ||
[/state] | ||
### | ||
### Selected | ||
### | ||
[state] | ||
[enabled] | ||
[draw] | ||
[image] | ||
x = 0 | ||
y = 0 | ||
w = {SIZE} | ||
h = {SIZE} | ||
name = "buttons/misc/orb-pressed-bg.png" | ||
[/image] | ||
{_GUI_ICON ({SIZE}) (-pressed)} | ||
[/draw] | ||
[/enabled] | ||
[disabled] | ||
[draw] | ||
[image] | ||
x = 0 | ||
y = 0 | ||
w = {SIZE} | ||
h = {SIZE} | ||
name = "buttons/misc/orb-pressed-bg.png" | ||
[/image] | ||
{_GUI_ICON ({SIZE}) (-pressed)} | ||
[/draw] | ||
[/disabled] | ||
[focused] | ||
[draw] | ||
[image] | ||
x = 0 | ||
y = 0 | ||
w = {SIZE} | ||
h = {SIZE} | ||
name = "buttons/misc/orb-pressed-bg-active.png" | ||
[/image] | ||
{_GUI_ICON ({SIZE}) (-active)} | ||
[/draw] | ||
[/focused] | ||
[/state] | ||
[/resolution] | ||
#enddef | ||
[toggle_button_definition] | ||
id = "orb" | ||
description = "This toggle button is meant to be used in the select orbs dialog." | ||
{_GUI_RESOLUTION ({GUI_NORMAL__RESOLUTION}) 30 } | ||
[/toggle_button_definition] | ||
#undef _GUI_RESOLUTION | ||
#undef _GUI_ICON | ||
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
Oops, something went wrong.