Bumped button text size by 1 point and fixed text centering.
This commit is contained in:
parent
0631dfdd00
commit
2826881eef
2 changed files with 7 additions and 4 deletions
|
@ -29,7 +29,7 @@
|
|||
# If the text is too high it returns the top side.
|
||||
# Rounding happens to the bottom side.
|
||||
#define GUI__TEXT_VERTICALLY_CENTRED
|
||||
"(if(text_height < height, (height - text_height - 1) / 2, 0))"
|
||||
"(if(text_height < height, ((height - text_height) / 2) - 1, 0))"
|
||||
#enddef
|
||||
|
||||
#define GUI__CENTERED_TEXT FONT_SIZE FONT_STYLE FONT_COLOR
|
||||
|
|
|
@ -9,6 +9,9 @@
|
|||
#define _GUI_BORDER_COLOR_DARK_ALPHA ALPHA
|
||||
"114, 79, 46, {ALPHA}" #enddef
|
||||
|
||||
#define _GUI_BUTTON_FONT_SIZE
|
||||
16 #enddef
|
||||
|
||||
#define _GUI_POINT X Y COLOR
|
||||
[line]
|
||||
x1 = {X}
|
||||
|
@ -199,7 +202,7 @@
|
|||
id = "default"
|
||||
description = "Default button"
|
||||
|
||||
{_GUI_RESOLUTION () 40 112 26 13 4 ({GUI_NORMAL__FONT_SIZE__SMALL}) () 255}
|
||||
{_GUI_RESOLUTION () 40 112 26 13 4 ({_GUI_BUTTON_FONT_SIZE}) () 255}
|
||||
|
||||
[/button_definition]
|
||||
|
||||
|
@ -208,7 +211,7 @@
|
|||
id = "large"
|
||||
description = "Large button"
|
||||
|
||||
{_GUI_RESOLUTION () 40 116 30 13 4 ({GUI_NORMAL__FONT_SIZE__SMALL}) () 255}
|
||||
{_GUI_RESOLUTION () 40 116 30 13 4 ({_GUI_BUTTON_FONT_SIZE}) () 255}
|
||||
|
||||
[/button_definition]
|
||||
|
||||
|
@ -217,7 +220,7 @@
|
|||
id = "transparent"
|
||||
description = "Default transparent button"
|
||||
|
||||
{_GUI_RESOLUTION () 40 112 26 13 4 ({GUI_NORMAL__FONT_SIZE__SMALL}) "~O(65%)" 165}
|
||||
{_GUI_RESOLUTION () 40 112 26 13 4 ({_GUI_BUTTON_FONT_SIZE}) "~O(65%)" 165}
|
||||
|
||||
[/button_definition]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue