1
0
Fork 0

- fps.xml: revive the traditional font color (a bit brighter than pure red)

- gui.nas: use 4-space indents like the rest of the file; waste slightly less
           cycles: checking for the property shouldn't be done in a loop at
           all, it only serves as a temporary solution
This commit is contained in:
mfranz 2005-12-16 12:14:43 +00:00
parent 1f9db93798
commit df6d7171a6
2 changed files with 13 additions and 12 deletions

View file

@ -57,10 +57,11 @@ menuEnable = func(name, state) {
# property and the argument for the "dialog-show" command. This
# probably isn't really needed...
#
screenHProp = tipArg = nil;
screenHProp = tipArg = fps = nil;
INIT = func {
screenHProp = props.globals.getNode("/sim/startup/ysize");
tipArg = props.Node.new({ "dialog-name" : "PopTip" });
fps = props.globals.getNode("/sim/rendering/fps-display");
props.globals.getNode("/sim/help/debug", 1).setValues(debug_keys);
props.globals.getNode("/sim/help/basic", 1).setValues(basic_keys);
@ -78,15 +79,15 @@ settimer(INIT, 0);
##
# Show/hide the fps display dialog.
#
var show_fps = -1;
var show_fps = 0;
fps_loop = func {
var i = getprop("/sim/rendering/fps-display");
if (i != show_fps) {
fgcommand(i ? "dialog-show" : "dialog-close",
props.Node.new({"dialog-name": "fps"}));
show_fps = i;
}
settimer(fps_loop, 1);
var i = fps.getValue();
if (i != show_fps) {
fgcommand(i ? "dialog-show" : "dialog-close",
props.Node.new({"dialog-name": "fps"}));
show_fps = i;
}
settimer(fps_loop, 1);
}

View file

@ -21,9 +21,9 @@
<size>16</size>
</font-->
<color>
<red>1</red>
<green>0</green>
<blue>0</blue>
<red>0.9</red>
<green>0.4</green>
<blue>0.2</blue>
<alpha>1</alpha>
</color>
</text>