mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 23:20:46 +00:00

The new style isn't appropriate in every context. This temporarily makes the old style default again.
210 lines
2.9 KiB
INI
210 lines
2.9 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of toggle panels.
|
|
###
|
|
|
|
#define _GUI_RECT FILL_COLOR
|
|
[rectangle]
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
fill_color = {FILL_COLOR}
|
|
[/rectangle]
|
|
#enddef
|
|
|
|
#define _GUI_TOGGLE_PANEL_DEFINITION_BASE ID DESCRIPTION NON_SELECTED_STATE SELECTED_STATE
|
|
[toggle_panel_definition]
|
|
|
|
id = {ID}
|
|
description = {DESCRIPTION}
|
|
|
|
[resolution]
|
|
|
|
# The minimum required height is due to the size required for
|
|
# {GUI__LISTBOX_SELECTED_CELL}
|
|
# The issue was found bug #22144
|
|
# Bug #22046 showed the minimum width should also be set.
|
|
min_width = 26
|
|
min_height = 26
|
|
|
|
default_width = 0
|
|
default_height = 0
|
|
|
|
max_width = 0
|
|
max_height = 0
|
|
|
|
###
|
|
### Normal
|
|
###
|
|
|
|
[state]
|
|
{NON_SELECTED_STATE}
|
|
[/state]
|
|
|
|
###
|
|
### Selected
|
|
###
|
|
|
|
[state]
|
|
{SELECTED_STATE}
|
|
[/state]
|
|
|
|
[/resolution]
|
|
|
|
[/toggle_panel_definition]
|
|
#enddef
|
|
|
|
{_GUI_TOGGLE_PANEL_DEFINITION_BASE ("default") ("Default panel") (
|
|
[enabled]
|
|
|
|
[draw]
|
|
{_GUI_RECT ({GUI__BACKGROUND_COLOR_ENABLED}) }
|
|
[/draw]
|
|
|
|
[/enabled]
|
|
|
|
[disabled]
|
|
|
|
[draw]
|
|
{_GUI_RECT ({GUI__BACKGROUND_COLOR_DISABLED}) }
|
|
[/draw]
|
|
|
|
[/disabled]
|
|
|
|
[focused]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = "dialogs/selection-background.png"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/focused]
|
|
) (
|
|
[enabled]
|
|
|
|
[draw]
|
|
{GUI__LISTBOX_SELECTED_CELL}
|
|
[/draw]
|
|
|
|
[/enabled]
|
|
|
|
[disabled]
|
|
|
|
[draw]
|
|
{GUI__LISTBOX_SELECTED_CELL}
|
|
[/draw]
|
|
|
|
[/disabled]
|
|
|
|
[focused]
|
|
|
|
[draw]
|
|
{GUI__LISTBOX_SELECTED_CELL}
|
|
[/draw]
|
|
|
|
[/focused]
|
|
)}
|
|
|
|
|
|
#define _GUI_TOGGLE_PANEL_SELECTED_FANCY
|
|
{_GUI_RECT ({GUI__BACKGROUND_COLOR_ENABLED}) }
|
|
|
|
[image]
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = "dialogs/selection-background-fancy.png"
|
|
#name = "dialogs/selection2-background.png~ADJUST_ALPHA(abs(255 - (floor(x / width * 255))))"
|
|
[/image]
|
|
|
|
[rectangle]
|
|
x = 0
|
|
y = 0
|
|
w = 2
|
|
h = "(height)"
|
|
|
|
fill_color = {GUI__BORDER_COLOR_DARK}
|
|
[/rectangle]
|
|
|
|
[rectangle]
|
|
x = 0
|
|
y = 1
|
|
w = 2
|
|
h = "(height - 2)"
|
|
|
|
fill_color = {GUI__BORDER_COLOR_BRIGHT}
|
|
[/rectangle]
|
|
#enddef
|
|
|
|
{_GUI_TOGGLE_PANEL_DEFINITION_BASE ("fancy") ("Fancy panel") (
|
|
[enabled]
|
|
|
|
[draw]
|
|
{_GUI_RECT ({GUI__BACKGROUND_COLOR_ENABLED}) }
|
|
[/draw]
|
|
|
|
[/enabled]
|
|
|
|
[disabled]
|
|
|
|
[draw]
|
|
{_GUI_RECT ({GUI__BACKGROUND_COLOR_DISABLED}) }
|
|
[/draw]
|
|
|
|
[/disabled]
|
|
|
|
[focused]
|
|
|
|
[draw]
|
|
{_GUI_RECT ({GUI__BACKGROUND_COLOR_ENABLED}) }
|
|
|
|
[image]
|
|
x = 0
|
|
y = 0
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = "dialogs/selection-background-fancy.png~O(75%)"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/focused]
|
|
) (
|
|
[enabled]
|
|
|
|
[draw]
|
|
{_GUI_TOGGLE_PANEL_SELECTED_FANCY}
|
|
[/draw]
|
|
|
|
[/enabled]
|
|
|
|
[disabled]
|
|
|
|
[draw]
|
|
{GUI__LISTBOX_SELECTED_CELL}
|
|
[/draw]
|
|
|
|
[/disabled]
|
|
|
|
[focused]
|
|
|
|
[draw]
|
|
{_GUI_TOGGLE_PANEL_SELECTED_FANCY}
|
|
[/draw]
|
|
|
|
[/focused]
|
|
)}
|
|
|
|
#undef _GUI_RECT
|
|
#undef _GUI_TOGGLE_PANEL_SELECTED_FANCY
|
|
#undef _GUI_TOGGLE_PANEL_DEFINITION_BASE
|