Posts: 143
Joined: Feb 2017
Reputation:
0
Am I doing something wrong, or <constant> is not seen in the file it is defined in?
Posts: 143
Joined: Feb 2017
Reputation:
0
OK, I've found just that the <constant> cannot be in the same <include> as its usage (in include file). Thanks.
Posts: 143
Joined: Feb 2017
Reputation:
0
Oh, well, for some elements it works (like <width>), for some not (like <texture>)....
Posts: 7,806
Joined: Feb 2013
Reputation:
1,486
Constants can only be numbers afaik
Sent from my GT-I9305T
Posts: 7,806
Joined: Feb 2013
Reputation:
1,486
2017-04-11, 02:54
(This post was last modified: 2017-04-11, 03:40 by jurialmunkey.)
They are only for defining dimensions (<left> <width> etc.) and durations (<fadetime> and maybe animation time="constant" - I can't remember). They aren't actual constants like in a real programming language.
Posts: 1,332
Joined: Jan 2016
Reputation:
54
I may be wrong but wouldn't defaults, or just a plain simple include be more of what your looking for?