URL:
<http://gna.org/bugs/?11363>
Summary: Allow themes to display values of WML variables
Project: Battle for Wesnoth
Submitted by: zookeeper
Submitted on: Monday 24/03/08 at 23:28
Category: Feature Request
Severity: 1 - Wish
Priority: 3 - Low
Item Group: WML
Status: None
Privacy: Public
Assigned to: noyga
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: trunk
Operating System: all
_______________________________________________________
Details:
For UMC, a theme element for displaying values of arbitrary WML variables
would be useful. You'd define the element like all others and would supply it
with the name of the variable you'd like to display.
1) Displaying unit variables would be perhaps most useful. Here's an example
of a possible use:
[unit_variable]
id=unit-variable-vision
variable=variables.vision
prefix= _"vision: "
...
[/unit_variable]
The above would create a theme element which would display the value of
unit.variables.vision of the currently selected unit (just like how
[unit_moves] displays the moves of the unit).
2) Displaying global variables. Basically the same as above, but instead of a
unit variable it'd simply display the value of the WML variable given:
[wml_variable]
id=side-having-ball
variable=side_having_ball
...
[/wml_variable]
The above would always display the value of the WML variable side_having_ball
(if you had something like Wesbowl for instance) just like [side_playing]
displays the number of the side whose turn it is.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?11363>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs