Author: mordante
Date: Tue May 20 17:25:52 2008
New Revision: 26737
URL: http://svn.gna.org/viewcvs/wesnoth?rev=26737&view=rev
Log:
Give the listbox scroll buttons with arrows and disable the other placeholders.
Added:
trunk/data/gui/default/widget/button_down_arrow.cfg (with props)
trunk/data/gui/default/widget/button_up_arrow.cfg (with props)
Modified:
trunk/data/gui/default/widget/listbox_default.cfg
Added: trunk/data/gui/default/widget/button_down_arrow.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/gui/default/widget/button_down_arrow.cfg?rev=26737&view=auto
==============================================================================
--- trunk/data/gui/default/widget/button_down_arrow.cfg (added)
+++ trunk/data/gui/default/widget/button_down_arrow.cfg Tue May 20 17:25:52 2008
@@ -1,0 +1,77 @@
+###
+### Definition of a button with the down arrow image.
+###
+
+[button_definition]
+
+ id = "down_arrow"
+ description = "Down arrow button for a scrollbar."
+
+ [resolution]
+
+ min_width = 25
+ min_height = 25
+
+ default_width = 25
+ default_height = 25
+
+ max_width = 25
+ max_height = 25
+
+ text_extra_width = 0
+ text_extra_height = 0
+ text_font_size = 0
+
+ [state_enabled]
+
+ [draw]
+
+ [image]
+ name = "buttons/downarrow-button.png"
+ [/image]
+
+ [/draw]
+
+ [/state_enabled]
+
+ [state_disabled]
+
+ [draw]
+
+ [image]
+#FIXME enable when the right button has been created.
+# name =
"buttons/downarrow-button-disabled.png"
+ name = "buttons/downarrow-button.png"
+ [/image]
+
+ [/draw]
+
+ [/state_disabled]
+
+ [state_pressed]
+
+ [draw]
+
+ [image]
+ name =
"buttons/downarrow-button-pressed.png"
+ [/image]
+
+ [/draw]
+
+ [/state_pressed]
+
+ [state_focussed]
+
+ [draw]
+
+ [image]
+ name =
"buttons/downarrow-button-active.png"
+ [/image]
+
+ [/draw]
+
+ [/state_focussed]
+
+ [/resolution]
+
+[/button_definition]
Propchange: trunk/data/gui/default/widget/button_down_arrow.cfg
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/data/gui/default/widget/button_up_arrow.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/gui/default/widget/button_up_arrow.cfg?rev=26737&view=auto
==============================================================================
--- trunk/data/gui/default/widget/button_up_arrow.cfg (added)
+++ trunk/data/gui/default/widget/button_up_arrow.cfg Tue May 20 17:25:52 2008
@@ -1,0 +1,78 @@
+###
+### Definition of a button with the up arrow image.
+###
+
+[button_definition]
+
+ id = "up_arrow"
+ description = "Up arrow button for a scrollbar."
+
+ [resolution]
+
+ min_width = 25
+ min_height = 25
+
+ default_width = 25
+ default_height = 25
+
+ max_width = 25
+ max_height = 25
+
+ text_extra_width = 0
+ text_extra_height = 0
+ text_font_size = 0
+
+ [state_enabled]
+
+ [draw]
+
+ [image]
+ name = "buttons/uparrow-button.png"
+ [/image]
+
+ [/draw]
+
+ [/state_enabled]
+
+ [state_disabled]
+
+ [draw]
+
+ [image]
+#FIXME enable when the right button has been created.
+# name =
"buttons/uparrow-button-disabled.png"
+ name = "buttons/uparrow-button.png"
+ [/image]
+
+ [/draw]
+
+ [/state_disabled]
+
+ [state_pressed]
+
+ [draw]
+
+ [image]
+ name =
"buttons/uparrow-button-pressed.png"
+ [/image]
+
+ [/draw]
+
+ [/state_pressed]
+
+ [state_focussed]
+
+ [draw]
+
+ [image]
+ name =
"buttons/uparrow-button-active.png"
+ [/image]
+
+ [/draw]
+
+ [/state_focussed]
+
+ [/resolution]
+
+[/button_definition]
+
Propchange: trunk/data/gui/default/widget/button_up_arrow.cfg
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/data/gui/default/widget/listbox_default.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/gui/default/widget/listbox_default.cfg?rev=26737&r1=26736&r2=26737&view=diff
==============================================================================
--- trunk/data/gui/default/widget/listbox_default.cfg (original)
+++ trunk/data/gui/default/widget/listbox_default.cfg Tue May 20 17:25:52 2008
@@ -1,5 +1,9 @@
###
### Definition of a listbox
+###
+###
+### NOTE a listbox has multiple scroll button options, these aren't all used
+### but to show them they are kept here commented out.
###
[listbox_definition]
@@ -35,53 +39,51 @@
[scrollbar]
- [row]
- [column]
- # note we want a specia button
defenition for this later.
- [button]
- id = "_begin" # FIXME look
whether or not to rename to top and bottom
- definition = "default"
+# [row]
+# [column]
+# # note we want a specia button
defenition for this later.
+# [button]
+# id = "_begin" # FIXME look
whether or not to rename to top and bottom
+# definition = "default"
+#
+# label = "begin"
+# [/button]
+# [/column]
+# [/row]
- label = "begin"
- [/button]
- [/column]
- [/row]
-
- [row]
- [column]
- # note we want a specia button
defenition for this later.
- [button]
- id = "_page_up"
- definition = "default"
-
- label = "page up"
- [/button]
- [/column]
- [/row]
+# [row]
+# [column]
+# # note we want a specia button
defenition for this later.
+# [button]
+# id = "_page_up"
+# definition = "default"
+#
+# label = "page up"
+# [/button]
+# [/column]
+# [/row]
[row]
[column]
# note we want a specia button
defenition for this later.
[button]
id = "_half_page_up"
- definition = "default"
-
- label = "half page up"
+ definition = "up_arrow"
[/button]
[/column]
[/row]
- [row]
- [column]
- # note we want a specia button
defenition for this later.
- [button]
- id = "_line_up"
- definition = "default"
-
- label = "line up"
- [/button]
- [/column]
- [/row]
+# [row]
+# [column]
+# # note we want a specia button
defenition for this later.
+# [button]
+# id = "_line_up"
+# definition = "default"
+#
+# label = "line up"
+# [/button]
+# [/column]
+# [/row]
[row]
grow_factor = 1
@@ -98,53 +100,51 @@
[/row]
- [row]
- [column]
- # note we want a specia button
defenition for this later.
- [button]
- id = "_line_down"
- definition = "default"
-
- label = "line down"
- [/button]
- [/column]
- [/row]
+# [row]
+# [column]
+# # note we want a specia button
defenition for this later.
+# [button]
+# id = "_line_down"
+# definition = "default"
+#
+# label = "line down"
+# [/button]
+# [/column]
+# [/row]
[row]
[column]
# note we want a specia button
defenition for this later.
[button]
id = "_half_page_down"
- definition = "default"
-
- label = "half page down"
+ definition = "down_arrow"
[/button]
[/column]
[/row]
- [row]
- [column]
- # note we want a specia button
defenition for this later.
- [button]
- id = "_page_down"
- definition = "default"
+# [row]
+# [column]
+# # note we want a specia button
defenition for this later.
+# [button]
+# id = "_page_down"
+# definition = "default"
+#
+# label = "page down"
+# [/button]
+# [/column]
+# [/row]
- label = "page down"
- [/button]
- [/column]
- [/row]
-
- [row]
- [column]
- # note we want a specia button
defenition for this later.
- [button]
- id = "_end"
- definition = "default"
-
- label = "end"
- [/button]
- [/column]
- [/row]
+# [row]
+# [column]
+# # note we want a specia button
defenition for this later.
+# [button]
+# id = "_end"
+# definition = "default"
+#
+# label = "end"
+# [/button]
+# [/column]
+# [/row]
[/scrollbar]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits