mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-13 19:06:03 +00:00
186 lines
4.6 KiB
INI
186 lines
4.6 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of the default button.
|
|
###
|
|
|
|
#define _GUI_DRAW_BORDER BORDER_COLOR BORDER_COLOR_DARK HIGHLIGHT_LINE_COLOR IPF
|
|
#
|
|
# Dark background borders
|
|
#
|
|
|
|
{GUI_LINE 0 1 0 "(height - 2)" "1, 10, 16, 255"}
|
|
{GUI_LINE 2 1 "(width - 2)" 1 "1, 10, 16, 255"}
|
|
{GUI_LINE 1 "(height - 1)" "(width - 2)" "(height - 1)" "1, 10, 16, 255"}
|
|
{GUI_LINE "(width - 2)" 1 "(width - 2)" "(height - 1)" "1, 10, 16, 255"}
|
|
|
|
#
|
|
# Gold colored borders
|
|
#
|
|
|
|
{GUI_LINE 2 0 "(width - 2)" 0 {BORDER_COLOR}}
|
|
{GUI_LINE "(width - 1)" 1 "(width - 1)" "(height - 3)" {BORDER_COLOR}}
|
|
|
|
{GUI_LINE 1 1 1 "(height - 3)" {BORDER_COLOR_DARK}}
|
|
{GUI_LINE 2 "(height - 2)" "(width - 2)" "(height - 2)" {BORDER_COLOR_DARK}}
|
|
|
|
#
|
|
# Blue tint lines on the top and right
|
|
#
|
|
|
|
{GUI_LINE 3 2 "(width - 3)" 2 {HIGHLIGHT_LINE_COLOR}}
|
|
{GUI_LINE "(width - 3)" 2 "(width - 3)" "(height - 4)" {HIGHLIGHT_LINE_COLOR}}
|
|
|
|
#
|
|
# Round the corners
|
|
#
|
|
|
|
{GUI_POINT 2 1 {BORDER_COLOR_DARK}}
|
|
{GUI_POINT 2 "(height - 3)" {BORDER_COLOR_DARK}}
|
|
|
|
{GUI_POINT "(width - 2)" 1 {BORDER_COLOR}}
|
|
{GUI_POINT "(width - 2)" "(height - 3)" {BORDER_COLOR}}
|
|
#enddef
|
|
|
|
#define _GUI_TEXT FONT_SIZE FONT_COLOR
|
|
[text]
|
|
x = 8 # 3px border + 5px padding inside
|
|
y = {GUI__TEXT_VERTICALLY_CENTRED}
|
|
w = "(text_width)"
|
|
h = "(text_height)"
|
|
maximum_width = "(width - 33)" # substract 25px arrow and text x offset
|
|
font_size = {FONT_SIZE}
|
|
color = {FONT_COLOR}
|
|
text = "(text)"
|
|
text_markup = "(text_markup)"
|
|
[/text]
|
|
#enddef
|
|
|
|
#define _GUI_RESOLUTION RESOLUTION MIN_WIDTH DEFAULT_WIDTH HEIGHT EXTRA_WIDTH EXTRA_HEIGHT FONT_SIZE BASE_NAME IPF
|
|
[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]
|
|
|
|
[image]
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = "buttons/{BASE_NAME}.png{IPF}"
|
|
[/image]
|
|
|
|
{_GUI_DRAW_BORDER ({GUI__BORDER_COLOR}) ({GUI__BORDER_COLOR_DARK}) ("21, 79, 109, 255") {IPF}}
|
|
|
|
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_ENABLED__TITLE})}
|
|
|
|
[image]
|
|
x = "(width - 25)"
|
|
y = 2
|
|
name = "icons/arrows/short_arrow_ornate_left_25.png~ROTATE(-90)"
|
|
[/image]
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[state_disabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = "buttons/{BASE_NAME}.png~GS(){IPF}"
|
|
[/image]
|
|
|
|
{_GUI_DRAW_BORDER ({GUI__FONT_COLOR_DISABLED__DEFAULT}) ("89, 89, 89, 255") ("60, 60, 60, 255") "~GS(){IPF}"}
|
|
|
|
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_DISABLED__TITLE})}
|
|
|
|
[image]
|
|
x = "(width - 25)"
|
|
y = 2
|
|
name = "icons/arrows/short_arrow_ornate_left_25.png~ROTATE(-90)~GS()"
|
|
[/image]
|
|
[/draw]
|
|
|
|
[/state_disabled]
|
|
|
|
[state_pressed]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = "buttons/{BASE_NAME}.png{IPF}"
|
|
[/image]
|
|
|
|
{_GUI_DRAW_BORDER ({GUI__BORDER_COLOR}) ({GUI__BORDER_COLOR_DARK}) ("1, 10, 16, 255") {IPF}}
|
|
|
|
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_ENABLED__TITLE})}
|
|
|
|
[image]
|
|
x = "(width - 25)"
|
|
y = 2
|
|
name = "icons/arrows/short_arrow_ornate_left_25-pressed.png~ROTATE(-90)"
|
|
[/image]
|
|
[/draw]
|
|
|
|
[/state_pressed]
|
|
|
|
[state_focused]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = "(width)"
|
|
h = "(height)"
|
|
# Doesn't have its own 'active' variation image
|
|
name = "buttons/{BASE_NAME}-pressed.png{IPF}"
|
|
[/image]
|
|
|
|
{_GUI_DRAW_BORDER ({GUI__BORDER_COLOR}) ({GUI__BORDER_COLOR_DARK}) ("12, 108, 157, 255") {IPF}}
|
|
|
|
{_GUI_TEXT ({FONT_SIZE}) ({GUI__FONT_COLOR_ENABLED__TITLE})}
|
|
|
|
[image]
|
|
x = "(width - 25)"
|
|
y = 2
|
|
name = "icons/arrows/short_arrow_ornate_left_25-active.png~ROTATE(-90)"
|
|
[/image]
|
|
[/draw]
|
|
|
|
[/state_focused]
|
|
|
|
[/resolution]
|
|
#enddef
|
|
|
|
[multimenu_button_definition]
|
|
|
|
id = "default"
|
|
description = "Default button"
|
|
|
|
{_GUI_RESOLUTION (window_width,window_height=800,600) 40 80 30 13 4 ({GUI_FONT_SIZE_SMALL}) "button_dropdown/button_dropdown" ()}
|
|
{_GUI_RESOLUTION (window_width,window_height=801,601) 40 120 30 13 4 ({GUI_FONT_SIZE_SMALL}) "button_dropdown/button_dropdown" ()}
|
|
{_GUI_RESOLUTION (window_width,window_height=1025,769) 40 180 30 13 4 ({GUI_FONT_SIZE_SMALL}) "button_dropdown/button_dropdown" ()}
|
|
|
|
[/multimenu_button_definition]
|
|
|
|
#undef _GUI_RESOLUTION
|
|
#undef _GUI_DRAW_BORDER
|
|
#undef _GUI_TEXT
|