mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-08 03:11:26 +00:00
441 lines
7.1 KiB
INI
441 lines
7.1 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of non-standard buttons of varying sizes
|
|
###
|
|
|
|
#define _GUI_RESOLUTION RESOLUTION SIZE IMAGE IMAGE_OVERLAY IPF
|
|
[resolution]
|
|
|
|
{RESOLUTION}
|
|
|
|
min_width = {SIZE}
|
|
min_height = {SIZE}
|
|
|
|
default_width = {SIZE}
|
|
default_height = {SIZE}
|
|
|
|
max_width = {SIZE}
|
|
max_height = {SIZE}
|
|
|
|
[state_enabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = {IMAGE} + ".png{IPF}"
|
|
[/image]
|
|
|
|
[image]
|
|
{GUI_CENTERED_IMAGE}
|
|
|
|
name = {IMAGE_OVERLAY} + ".png{IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[state_disabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = {IMAGE} + ".png~GS(){IPF}"
|
|
[/image]
|
|
|
|
[image]
|
|
{GUI_CENTERED_IMAGE}
|
|
|
|
name = {IMAGE_OVERLAY} + ".png~GS(){IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_disabled]
|
|
|
|
[state_pressed]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE} + "-pressed.png{IPF}"
|
|
[/image]
|
|
|
|
[image]
|
|
{GUI_CENTERED_IMAGE}
|
|
|
|
name = {IMAGE_OVERLAY} + "-pressed.png{IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_pressed]
|
|
|
|
[state_focused]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = "(width)"
|
|
h = "(height)"
|
|
name = {IMAGE} + "-active.png{IPF}"
|
|
[/image]
|
|
|
|
[image]
|
|
{GUI_CENTERED_IMAGE}
|
|
|
|
name = {IMAGE_OVERLAY} + "-active.png{IPF}"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_focused]
|
|
|
|
[/resolution]
|
|
#enddef
|
|
|
|
#define _GUI_DEFINITION ID DESCRIPTION IMAGE IMAGE_OVERLAY IPF
|
|
[button_definition]
|
|
id = {ID}
|
|
description = {DESCRIPTION}
|
|
|
|
{_GUI_RESOLUTION () 25 ({IMAGE}) ({IMAGE_OVERLAY}) ({IPF})}
|
|
|
|
[/button_definition]
|
|
#enddef
|
|
|
|
# Scrollbar buttons
|
|
|
|
{_GUI_DEFINITION
|
|
"down_arrow"
|
|
"Down arrow button for a scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_down_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"up_arrow"
|
|
"Up arrow button for a scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_up_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"left_arrow"
|
|
"Left arrow button for a scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_left_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"right_arrow"
|
|
"Right arrow button for a scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_right_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"add"
|
|
"Addition button."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/action/ornate_add_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"delete"
|
|
"Deletion button."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/action/ornate_delete_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"help"
|
|
"Help button."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/action/help_25"
|
|
()
|
|
}
|
|
|
|
# Transparent scrollbar buttons
|
|
|
|
{_GUI_DEFINITION
|
|
"down_arrow_transparent"
|
|
"Down arrow button for a transparent scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_down_25"
|
|
"~O(65%)"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"up_arrow_transparent"
|
|
"Up arrow button for a transparent scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_up_25"
|
|
"~O(65%)"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"left_arrow_transparent"
|
|
"Left arrow button for a transparent scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_left_25"
|
|
"~O(65%)"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"right_arrow_transparent"
|
|
"Right arrow button for a transparent scrollbar."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_ornate_right_25"
|
|
"~O(65%)"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"add_transparent"
|
|
"Transparent addition button."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/action/ornate_add_25"
|
|
"~O(65%)"
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"delete_transparent"
|
|
"Transparent deletion button."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/action/ornate_delete_25"
|
|
"~O(65%)"
|
|
}
|
|
|
|
# Action icon buttons
|
|
|
|
{_GUI_DEFINITION
|
|
"action_copy"
|
|
"Right arrow button for copy-to-clipboard."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/action/copy_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"action_go"
|
|
"Right arrow button for go/browse actions."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/arrows_right_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"action_browse"
|
|
"Button for go/browse actions."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/action/browse_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"action_about"
|
|
"Button for displaying the game version info."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/action/about_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"left_arrow_short_ornate"
|
|
"Left arrow action button."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/short_arrow_ornate_left_25"
|
|
()
|
|
}
|
|
|
|
{_GUI_DEFINITION
|
|
"right_arrow_short_ornate"
|
|
"Right arrow action button."
|
|
"buttons/button_square/button_square_25"
|
|
"icons/arrows/short_arrow_ornate_right_25"
|
|
()
|
|
}
|
|
|
|
#
|
|
# Minimal-style buttons
|
|
# These buttons don't have a background, only the overlay
|
|
#
|
|
|
|
#define _GUI_RESOLUTION_MINIMAL RESOLUTION SIZE IMAGE
|
|
[resolution]
|
|
|
|
{RESOLUTION}
|
|
|
|
min_width = {SIZE}
|
|
min_height = {SIZE}
|
|
|
|
default_width = {SIZE}
|
|
default_height = {SIZE}
|
|
|
|
max_width = {SIZE}
|
|
max_height = {SIZE}
|
|
|
|
[state_enabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE} + ".png"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_enabled]
|
|
|
|
[state_disabled]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE} + ".png~GS()"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_disabled]
|
|
|
|
[state_pressed]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE} + "-pressed.png"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_pressed]
|
|
|
|
[state_focused]
|
|
|
|
[draw]
|
|
|
|
[image]
|
|
w = {SIZE}
|
|
h = {SIZE}
|
|
name = {IMAGE} + "-active.png"
|
|
[/image]
|
|
|
|
[/draw]
|
|
|
|
[/state_focused]
|
|
|
|
[/resolution]
|
|
#enddef
|
|
|
|
#define _GUI_DEFINITION_MINIMAL SIZE ID DESCRIPTION IMAGE
|
|
[button_definition]
|
|
id = {ID}
|
|
description = {DESCRIPTION}
|
|
|
|
{_GUI_RESOLUTION_MINIMAL () ({SIZE}) ({IMAGE})}
|
|
|
|
[/button_definition]
|
|
#enddef
|
|
|
|
{_GUI_DEFINITION_MINIMAL 25
|
|
"close"
|
|
"Minimal-style close button."
|
|
"icons/action/close_25"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 25
|
|
"trash"
|
|
"Minimal-style trash button."
|
|
"icons/action/trash_25"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 30
|
|
"settings"
|
|
"Settings button"
|
|
"icons/action/settings"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 64
|
|
"addon_install"
|
|
"Minimal install button"
|
|
"icons/addons/addon_install"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 64
|
|
"addon_uninstall"
|
|
"Minimal uninstall button"
|
|
"icons/addons/addon_uninstall"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 64
|
|
"addon_upgrade"
|
|
"Minimal upgrade button"
|
|
"icons/addons/addon_update"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 64
|
|
"addon_publish"
|
|
"Minimal publish button"
|
|
"icons/addons/addon_publish"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 64
|
|
"addon_delete"
|
|
"Minimal delete button"
|
|
"icons/addons/addon_delete"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 30
|
|
"install"
|
|
"Minimal install button"
|
|
"icons/addons/install"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 30
|
|
"uninstall"
|
|
"Minimal install button"
|
|
"icons/addons/uninstall"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 30
|
|
"update"
|
|
"Minimal install button"
|
|
"icons/addons/update"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 30
|
|
"help_30"
|
|
"Minimal install button"
|
|
"icons/action/help_30"
|
|
}
|
|
|
|
{_GUI_DEFINITION_MINIMAL 30
|
|
"minimal_arrow"
|
|
"Minimal arrow button"
|
|
"icons/arrows/double_arrow_right_30"
|
|
}
|
|
|
|
#undef _GUI_DEFINITION
|
|
#undef _GUI_DEFINITION_MINIMAL
|
|
#undef _GUI_RESOLUTION
|
|
#undef _GUI_RESOLUTION_MINIMAL
|