URL:
<http://gna.org/bugs/?23271>
Summary: A timer widget in gui2
Project: Battle for Wesnoth
Submitted by: None
Submitted on: Fr 13 Feb 2015 17:55:39 UTC
Category: Feature Request
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: User Interface
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.13
Operating System: all
_______________________________________________________
Details:
It would be nice to have an invisible timer widget available in
wesnoth.show_dialog which could be used like this:
local dialog = {
...
T.timer {
interval = 1000,
id = "timer_1"
},
...
}
local function on_timer()
end
local function preshow()
wesnoth.set_dialog_value(timer, "timer_1")
end
wesnoth.show_dialog(dialog, preshow)
which would mean that the function 'on_timer' is called every 1000 miliseconds
(every second) while the dialog is open.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?23271>
_______________________________________________
Nachricht gesendet von/durch Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs