#textdomain wesnoth-lib ### ### Definition of the default toggle panel. ### #define _GUI_RECT FILL_COLOR [rectangle] x = 0 y = 0 w = "(width)" h = "(height)" fill_color = {FILL_COLOR} [/rectangle] #enddef [toggle_panel_definition] id = "default" description = "Default panel" [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 [state_enabled] [draw] {_GUI_RECT ({GUI__BACKGROUND_COLOR_ENABLED}) } [/draw] [/state_enabled] [state_disabled] [draw] {_GUI_RECT ({GUI__BACKGROUND_COLOR_DISABLED}) } [/draw] [/state_disabled] [state_focussed] [draw] {_GUI_RECT ({GUI__BACKGROUND_COLOR_ENABLED}) } [/draw] [/state_focussed] ### ### Selected ### [state_enabled_selected] [draw] {GUI__LISTBOX_SELECTED_CELL} [/draw] [/state_enabled_selected] [state_disabled_selected] [draw] {GUI__LISTBOX_SELECTED_CELL} [/draw] [/state_disabled_selected] [state_focussed_selected] [draw] {GUI__LISTBOX_SELECTED_CELL} [/draw] [/state_focussed_selected] [/resolution] [/toggle_panel_definition] #undef _GUI_RECT