wesnoth/data/gui/themes/celes/widgets/button_title.cfg
Subhraman Sarkar 6b8c2e15e7 theme update for modern and rename themes
include new definitions and updated versions of existing definitions
"default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
2025-01-09 09:02:42 +05:30

135 lines
2.5 KiB
INI

#define _GUI_RESOLUTION_TITLE RESOLUTION MIN_WIDTH DEFAULT_WIDTH HEIGHT EXTRA_WIDTH EXTRA_HEIGHT FONT_SIZE IPF ALPHA BACKGROUND
[resolution]
{RESOLUTION}
min_width = {MIN_WIDTH}
min_height = {HEIGHT}
default_width = {DEFAULT_WIDTH}
default_height = {HEIGHT}
max_width = 0
max_height = {HEIGHT}
text_extra_width = {EXTRA_WIDTH}
text_extra_height = {EXTRA_HEIGHT}
text_font_size = {FONT_SIZE}
[state_enabled]
[draw]
{_GUI_BUTTON_TEXT_TITLE ({FONT_SIZE}) () ("255,255,255,255")}
[/draw]
[/state_enabled]
[state_disabled]
[draw]
{_GUI_BUTTON_TEXT_TITLE ({FONT_SIZE}) () ("255,255,255,255")}
[/draw]
[/state_disabled]
[state_pressed]
[draw]
[line]
x1 = "((width-{DEFAULT_WIDTH})/2)"
y1 = 0
x2 = "((width+{DEFAULT_WIDTH})/2)"
y2 = 0
color = "153,122,0,255"
thickness = 5
[/line]
[line]
x1 = "((width-{DEFAULT_WIDTH})/2)"
y1 = "(height-1)"
x2 = "((width+{DEFAULT_WIDTH})/2)"
y2 = "(height-1)"
color = "153,122,0,255"
thickness = 5
[/line]
{_GUI_BUTTON_TEXT_TITLE ({FONT_SIZE}) () ("180, 140, 0, 255")}
[/draw]
[/state_pressed]
[state_focused]
[draw]
[image]
x = "((width-image_width)/2)"
y = 0
w = {DEFAULT_WIDTH}
h = "(height)"
name = "{BACKGROUND}-active.png"
[/image]
[line]
x1 = "((width-{DEFAULT_WIDTH})/2)"
y1 = 0
x2 = "((width+{DEFAULT_WIDTH})/2)"
y2 = 0
color = "153,122,0,255"
thickness = 5
[/line]
[line]
x1 = "((width-{DEFAULT_WIDTH})/2)"
y1 = "(height-1)"
x2 = "((width+{DEFAULT_WIDTH})/2)"
y2 = "(height-1)"
color = "153,122,0,255"
thickness = 5
[/line]
{_GUI_BUTTON_TEXT_TITLE ({FONT_SIZE}) () ("255, 200, 0, 255")}
[/draw]
[/state_focused]
[/resolution]
#enddef
[button_definition]
id = "title_normal"
description = "button for titlescreen"
{_GUI_RESOLUTION_TITLE () 50 240 25 13 4 27 () 0 "buttons/modern/normal/background_title"}
{_GUI_RESOLUTION_TITLE ({GUI_BIG_RESOLUTION})
60 220 30 16 6
({GUI_SCALE_RESOLUTION 27})
() 0 "buttons/modern/normal/background_title"}
[/button_definition]
[button_definition]
id = "title_small"
description = "small button for titlescreen"
{_GUI_RESOLUTION_TITLE () 50 240 25 13 4 23 () 0 "buttons/modern/normal/background_title"}
{_GUI_RESOLUTION_TITLE ({GUI_BIG_RESOLUTION})
60 220 30 16 6
({GUI_SCALE_RESOLUTION 23})
() 0 "buttons/modern/normal/background_title"}
[/button_definition]