mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-13 18:40:16 +00:00

include new definitions and updated versions of existing definitions "default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
135 lines
2.5 KiB
INI
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]
|