1
0
Fork 0

allow to cycle through available styles

This commit is contained in:
mfranz 2005-07-13 10:56:42 +00:00
parent 34dd362fd7
commit 02ca61961d

View file

@ -90,6 +90,23 @@ Widget = {
};
########################################################################
# GUI theming
########################################################################
nextStyle = func {
numStyles = size(props.globals.getNode("/sim").getChildren("gui"));
curr = getprop("/sim/current-gui") + 1;
if (curr >= numStyles) {
curr = 0;
}
setprop("/sim/current-gui", curr);
fgcommand("reinit", props.Node.new({ "subsystem" : "gui"}))
}
########################################################################
# Dialog Boxes
########################################################################