URL:
<http://gna.org/bugs/?25337>
Summary: allow custom widget definitions in umc
Project: Battle for Wesnoth
Submitted by: gfgtdf
Submitted on: Mi 23 Nov 2016 15:15:51 UTC
Category: Feature Request
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.13
Operating System:
_______________________________________________________
Details:
It would be nice to allow custom widget definitions for existant widgets.
There are multiple approaches on how a syntrax could look:
1) Allow to inline the efinition directly into the widget:
...
T.button
{
label = "Sometext"
T.definition {
.. button_definition wml
}
}
...
2) add a new function wesnoth.register_widget_defnition("buttion", "my_id", {
.. button_definition wml .. })
Both approaches have differnet (dis)advantages:
(1) would require more parsing and coudl be a little slower in general when
the definition is used many times. (2) could leave these defintions
permanently loadd so that we likele need to add a second function
wesnoth.unregister_widget_defnition, sepcially when.
I'm currnetly more in favour of the second options since it allows reusing the
widgets, for exampel one resource addon can provide mode widgert defintions
that are then used by a second addon.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?25337>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs