Author: mordante
Date: Wed Apr 30 11:13:20 2008
New Revision: 26248
URL: http://svn.gna.org/viewcvs/wesnoth?rev=26248&view=rev
Log:
Rename all defintions to include their id in their name.
Added:
trunk/data/gui/default/widget/label_default.cfg
- copied unchanged from r26244, trunk/data/gui/default/widget/label.cfg
trunk/data/gui/default/widget/spacer_default.cfg
- copied unchanged from r26244, trunk/data/gui/default/widget/spacer.cfg
trunk/data/gui/default/widget/text_box_default.cfg
- copied unchanged from r26244, trunk/data/gui/default/widget/text_box.cfg
trunk/data/gui/default/widget/tooltip_default.cfg
- copied unchanged from r26244, trunk/data/gui/default/widget/tooltip.cfg
Removed:
trunk/data/gui/default/widget/label.cfg
trunk/data/gui/default/widget/spacer.cfg
trunk/data/gui/default/widget/text_box.cfg
trunk/data/gui/default/widget/tooltip.cfg
Removed: trunk/data/gui/default/widget/label.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/gui/default/widget/label.cfg?rev=26247&view=auto
==============================================================================
--- trunk/data/gui/default/widget/label.cfg (original)
+++ trunk/data/gui/default/widget/label.cfg (removed)
@@ -1,72 +1,0 @@
-###
-### Definition of a label.
-###
-
-
-#define LABEL_DEFINITION ID DESCRIPTION FONT_SIZE FONT_COLOUR FONT_STYLE
-[label_definition]
- id = {ID}
- description = {DESCRIPTION}
-
- [resolution]
- min_width = 0
- min_height = 0
-
- default_width = 0
- default_height = 0
-
- max_width = 0
- max_height = 0
-
- text_font_size = {FONT_SIZE}
- text_font_style = {FONT_STYLE}
-
- [state_enabled]
-
- full_redraw = "true"
-
- [draw]
-
- [text]
- x = 0
- y = {TEXT_V_CENTRE}
- w = "(text_width)"
- h = "(text_height)"
- font_size = {FONT_SIZE}
- font_style = {FONT_STYLE}
- colour = {FONT_COLOUR}
- text = "(text)"
- [/text]
-
- [/draw]
-
- [/state_enabled]
-
- [state_disabled]
-
- full_redraw = "true"
-
- [draw]
-
- [text]
- x = 0
- y = {TEXT_V_CENTRE}
- w = "(text_width)"
- h = "(text_height)"
- font_size = {FONT_SIZE}
- font_style = {FONT_STYLE}
- colour = {FONT_COLOUR}
- text = "(text)"
- [/text]
-
- [/draw]
-
- [/state_disabled]
-
- [/resolution]
-
-[/label_definition]
-#enddef
-
-{LABEL_DEFINITION "default" "default label" 16 {FONT_COLOUR_ENABLED} "normal"}
-{LABEL_DEFINITION "title" "label used for titles" {FONT_SIZE_NORMAL__TITLE}
{FONT_COLOUR_TITLE} "bold"}
Removed: trunk/data/gui/default/widget/spacer.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/gui/default/widget/spacer.cfg?rev=26247&view=auto
==============================================================================
--- trunk/data/gui/default/widget/spacer.cfg (original)
+++ trunk/data/gui/default/widget/spacer.cfg (removed)
@@ -1,13 +1,0 @@
-###
-### Definition of a spacer.
-###
-
-[spacer_definition]
- id = "default"
- description = "a spacer"
-
- [resolution]
- [/resolution]
-
-[/spacer_definition]
-
Removed: trunk/data/gui/default/widget/text_box.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/gui/default/widget/text_box.cfg?rev=26247&view=auto
==============================================================================
--- trunk/data/gui/default/widget/text_box.cfg (original)
+++ trunk/data/gui/default/widget/text_box.cfg (removed)
@@ -1,152 +1,0 @@
-###
-### Definition of a single line text box.
-###
-
-[text_box_definition]
- id = "default"
- description = "Default text box"
-
- [resolution]
- min_width = 40
- min_height = 22
-
- default_width = 250
- default_height = 22
-
- max_width = 0
- max_height = 22
-
- text_font_size = {FONT_SIZE_NORMAL__NORMAL}
- text_x_offset = 5
- text_y_offset = "(if(text_font_height <= height, (height -
text_font_height) / 2, 0))"
-
- [state_enabled]
-
- full_redraw = "true"
-
- [draw]
-
- [rectangle]
- x = 0
- y = 0
- w = "(width)"
- h = "(height)"
-
- border_thickness = 3
- border_colour = "55, 55, 55, 192"
-
- [/rectangle]
-
- # selection box
- [rectangle]
- x = "(text_x_offset + selection_offset)"
- y = "(text_y_offset)"
- w = "(selection_width)"
- h = "(text_font_height)"
-
- border_thickness = 0
- fill_colour = "21, 53, 80, 255"
-
- [/rectangle]
-
- [text]
- x = "(text_x_offset)"
- y = "(text_y_offset)"
- w = "(text_width)"
- h = "(text_height)"
- font_size = {FONT_SIZE_NORMAL__NORMAL}
- colour = {FONT_COLOUR_ENABLED}
- text = "(text)"
- [/text]
-
- # cursor
- [line]
- x1 = "(cursor_offset) + 5"
- y1 = "(text_y_offset)"
- x2 = "(cursor_offset) + 5"
- y2 = "(text_y_offset +
text_font_height)"
- colour = "255, 255, 255, 255"
- thickness = 1
- [/line]
-
- [/draw]
-
- [/state_enabled]
-
- [state_disabled]
-
- full_redraw = "true"
-
- [draw]
-
- [rectangle]
- x = 0
- y = 0
- w = "(width)"
- h = "(height)"
-
- border_thickness = 3
- border_colour = "55, 55, 55, 192"
-
- [/rectangle]
-
- [text]
- x = "5"
- y = {TEXT_V_CENTRE}
- w = "(text_width)"
- h = "(text_height)"
- font_size = {FONT_SIZE_NORMAL__NORMAL}
- colour = {FONT_COLOUR_DISABLED}
- text = "(text)"
- [/text]
-
- # no cursor when disabled.
-
- [/draw]
-
- [/state_disabled]
-
- [state_focussed]
-
- full_redraw = "true"
-
- [draw]
-
- [rectangle]
- x = 0
- y = 0
- w = "(width)"
- h = "(height)"
-
- border_thickness = 3
- border_colour = "55, 55, 55, 192"
-
- [/rectangle]
-
- [text]
- x = "5"
- y = {TEXT_V_CENTRE}
- w = "(text_width)"
- h = "(text_height)"
- font_size = {FONT_SIZE_NORMAL__NORMAL}
- colour = {FONT_COLOUR_ENABLED}
- text = "(text)"
- [/text]
-
- # cursor
- [line]
- x1 = "(cursor_offset) + 5"
- y1 = 2
- x2 = "(cursor_offset) + 5"
- y2 = "(height - 4)"
- colour = "0, 0, 0, 255"
- thickness = 1
- [/line]
-
- [/draw]
-
- [/state_focussed]
-
- [/resolution]
-
-[/text_box_definition]
Removed: trunk/data/gui/default/widget/tooltip.cfg
URL:
http://svn.gna.org/viewcvs/wesnoth/trunk/data/gui/default/widget/tooltip.cfg?rev=26247&view=auto
==============================================================================
--- trunk/data/gui/default/widget/tooltip.cfg (original)
+++ trunk/data/gui/default/widget/tooltip.cfg (removed)
@@ -1,52 +1,0 @@
-###
-### Definition of a tooltip.
-###
-
-[tooltip_definition]
- id = "default"
- description = "small help tooltip"
-
- [resolution]
- min_width = 0
- min_height = 0
-
- default_width = 0
- default_height = 0
-
- max_width = 300
- max_height = 0
-
- text_font_size = 16
-
- [state_enabled]
-
- full_redraw = "true"
-
- [draw]
-
- [rectangle]
- x = 0
- y = 0
- w = "(width)"
- h = "(height)"
- border_thickness = 0
- fill_colour = "64, 64, 64, 128"
- [/rectangle]
-
- [text]
- x = 0
- y = 0
- w = "(text_width)"
- h = "(text_height)"
- font_size = 16
- colour = "255, 255, 255, 0"
- text = "(text)"
- [/text]
-
- [/draw]
-
- [/state_enabled]
-
- [/resolution]
-
-[/tooltip_definition]
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits