wesnoth/data/gui/themes/default/dialogs/reachmap_options.cfg
ForestDragon 93509c8499
Implement Reachmap Color and Opacity Options (#9877)
Co-authored-by: Descacharrado <Luis_koopa@hotmail.com>
Co-authored-by: Gunter Labes <soliton@wesnoth.org>
Co-authored-by: Charles Dang <exodia339@gmail.com>
2025-02-14 23:39:49 -05:00

194 lines
4.0 KiB
INI

#textdomain wesnoth-lib
###
### Reach Map Options
###
#define _GUI_REACHMAP_COLOR_CELL PURPOSE COLOR
[column]
border = "left,right,bottom"
border_size = 5
[toggle_button]
id = "reachmap_{PURPOSE}_{COLOR}"
definition = "reachmap_color"
icon = "{COLOR}"
[/toggle_button]
[/column]
#enddef
#define _GUI_REACHMAP_COLOR_ROW PURPOSE
[grid]
id = "reachmap_{PURPOSE}_selection"
[row]
#different color order compared to the orb color menu, putting the default color on the left
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} teal}
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} white}
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} lightblue}
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} red}
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} gold}
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} brightgreen}
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} brightorange}
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} darkred}
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} orange}
{_GUI_REACHMAP_COLOR_CELL {PURPOSE} green}
[/row]
[/grid]
#enddef
#define _GUI_REACHMAP_OPACITY_SLIDER_ROW PURPOSE LABEL
[row]
[column]
horizontal_grow = true
[grid]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
label = {LABEL}
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[slider]
id = "reachmap_opacity_{PURPOSE}"
definition = "default"
minimum_value = 0
maximum_value = 100
step_size = 1
[/slider]
[/column]
[/row]
[/grid]
[/column]
[/row]
#enddef
[window]
id = "reachmap_options"
description = "Reach Map Options"
[resolution]
definition = "default"
click_dismiss = true
maximum_width = 600
maximum_height = 600
[tooltip]
id = "tooltip"
[/tooltip]
[helptip]
id = "tooltip"
[/helptip]
[grid]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "title"
label = _ "Reach Map Options"
[/label]
[/column]
[/row]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "Highlight Color"
[/label]
[/column]
[/row]
[row]
[column]
horizontal_alignment = "left"
{_GUI_REACHMAP_COLOR_ROW standard_color}
[/column]
[/row]
{GUI_FILLER_ROW HEIGHT=15}
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "Enemy Highlight Color"
[/label]
[/column]
[/row]
[row]
[column]
horizontal_alignment = "left"
{_GUI_REACHMAP_COLOR_ROW enemy_color}
[/column]
[/row]
{GUI_FILLER_ROW HEIGHT=15}
{_GUI_REACHMAP_OPACITY_SLIDER_ROW border _"Border Opacity:"}
{_GUI_REACHMAP_OPACITY_SLIDER_ROW tint _"Tint Opacity:"}
{GUI_FILLER_ROW HEIGHT=15}
[row]
[column]
horizontal_grow = true
[grid]
[row]
[column]
horizontal_alignment = "left"
grow_factor = 1
border = "all"
border_size = 5
[button]
id = "reachmap_defaults"
definition = "default"
label = _ "Defaults"
[/button]
[/column]
[column]
horizontal_alignment = "right"
grow_factor = 0
border = "all"
border_size = 5
[button]
id = "ok"
definition = "default"
label = _ "OK"
[/button]
[/column]
[column]
horizontal_alignment = "right"
grow_factor = 0
border = "all"
border_size = 5
[button]
id = "cancel"
definition = "default"
label = _ "Cancel"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/resolution]
[/window]