wesnoth-wiki-changes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-wiki-changes] RelativeThemeRectProposal


From: wiki
Subject: [Wesnoth-wiki-changes] RelativeThemeRectProposal
Date: Fri, 26 Nov 2004 01:16 +0100

UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 
Galeon/1.3.17 (Debian package 1.3.17-2)
IP: 81.57.214.146
URI: http://wesnoth.slack.it/?RelativeThemeRectProposal
 - - - - -
Index: RelativeThemeRectProposal
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/RelativeThemeRectProposal,v
retrieving revision 1.1
diff -u -r1.1 RelativeThemeRectProposal
--- RelativeThemeRectProposal   26 Nov 2004 00:00:52 -0000      1.1
+++ RelativeThemeRectProposal   26 Nov 2004 00:16:17 -0000
@@ -1,5 +1,18 @@
 ||Proposed syntax for relative rectangles in themes||
 
+At any time, we introduce the notion of a reference rectangle, which is 
initialized to 0,0,0,0 initially, and is
+succesively set to each newly-created rectangle, so that we can always use the 
previous rectangle as a reference.
+
+Support may be added in the future to explicitely specify another rectangle as 
reference.
+
+Parts of a ''rect=a,b,c,d'' clause may be:
+* numbers : absolute positions like we already have
+* ''='' : same value as the same field in reference rect (alignement with 
reference)
+* +number or -number :
+ * for a and b, add this value to reference's c and d respectively (spacing 
from reference)
+ * for b and c, add this value to self's a and b (specify by width and height)
+* =+number or =-number : add this value to same field in reference rect (eg. 
consider reference as a container box)
+
 ||See Also||
 
 * ThemeSystem






reply via email to

[Prev in Thread] Current Thread [Next in Thread]