home *** CD-ROM | disk | FTP | other *** search
- #textdomain wesnoth-lib
- ###
- ### Definition of repeating buttons which have a 25 x 25 pixels image.
- ### - down arrow button for the listbox.
- ### - up arrow button for the listbox.
-
- #define _GUI_RESOLUTION 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} + "-disabled.png"
- [/image]
-
- [/draw]
-
- [/state_disabled]
-
- [state_pressed]
-
- [draw]
-
- [image]
- w = {SIZE}
- h = {SIZE}
- name = {IMAGE} + "-pressed.png"
- [/image]
-
- [/draw]
-
- [/state_pressed]
-
- [state_focussed]
-
- [draw]
-
- [image]
- w = {SIZE}
- h = {SIZE}
- name = {IMAGE} + "-active.png"
- [/image]
-
- [/draw]
-
- [/state_focussed]
-
- [/resolution]
- #enddef
-
- #define _GUI_DEFINITION ID DESCRIPTION IMAGE
- [repeating_button_definition]
- id = {ID}
- description = {DESCRIPTION}
-
- {_GUI_RESOLUTION ({GUI_TINY__RESOLUTION}) 12 ({IMAGE}) }
- {_GUI_RESOLUTION () 25 ({IMAGE}) }
-
- [/repeating_button_definition]
- #enddef
-
- # Default normally not used since the versions with specific images are
- # preferred.
- {_GUI_DEFINITION
- "default"
- "Default don't use."
- "buttons/button"
- }
-
- # Opaques arrow buttons
-
- {_GUI_DEFINITION
- "down_arrow"
- "Down arrow button for a scrollbar."
- "buttons/downarrow-button"
- }
-
- {_GUI_DEFINITION
- "up_arrow"
- "Up arrow button for a scrollbar."
- "buttons/uparrow-button"
- }
-
- {_GUI_DEFINITION
- "left_arrow"
- "Left arrow button for a scrollbar."
- "buttons/left_arrow-button"
- }
-
- {_GUI_DEFINITION
- "right_arrow"
- "Right arrow button for a scrollbar."
- "buttons/right_arrow-button"
- }
-
- # Opaques arrow buttons
-
- {_GUI_DEFINITION
- "down_arrow_transparent"
- "Down arrow button for a transparent scrollbar."
- "buttons/downarrow-button_transparent"
- }
-
- {_GUI_DEFINITION
- "up_arrow_transparent"
- "Up arrow button for a transparent scrollbar."
- "buttons/uparrow-button_transparent"
- }
-
- {_GUI_DEFINITION
- "left_arrow_transparent"
- "Left arrow button for a transparent scrollbar."
- "buttons/left_arrow-button_transparent"
- }
-
- {_GUI_DEFINITION
- "right_arrow_transparent"
- "Right arrow button for a transparent scrollbar."
- "buttons/right_arrow-button_transparent"
- }
-
- #undef _GUI_DEFINITION
- #undef _GUI_RESOLUTION
-
-