1
0
Fork 0

- simplification: use gui.dialog_update() command instead of

fgcommand("dialog-update", props.Node.new({}));
- remove lots of trailing spaces
This commit is contained in:
mfranz 2007-08-01 20:06:16 +00:00
parent e092ee9abc
commit 397ee8296f
2 changed files with 13 additions and 18 deletions

View file

@ -7,15 +7,15 @@
<group>
<layout>hbox</layout>
<input>
<name>compose</name>
<pref-width>500</pref-width>
<pref-width>500</pref-width>
<stretch>true</stretch>
<halign>fill</halign>
<length>50</length>
<property>/sim/multiplay/chat-compose</property>
</input>
</input>
<button>
<legend>Send</legend>
@ -32,9 +32,8 @@
{
setprop("/sim/multiplay/chat", lchat);
setprop("/sim/multiplay/chat-compose", "");
fgcommand("dialog-update", props.Node.new({"object-name": "compose",
"dialog-name": "chat"}));
}
gui.dialog_update("chat", "compose");
}
</script>
</binding>
</button>
@ -65,7 +64,7 @@
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
</group>
</PropertyList>

View file

@ -28,15 +28,15 @@
<group>
<layout>hbox</layout>
<input>
<name>compose</name>
<name>compose</name>
<stretch>true</stretch>
<halign>fill</halign>
<length>50</length>
<pref-width>500</pref-width>
<pref-width>500</pref-width>
<property>/sim/multiplay/chat-compose</property>
</input>
</input>
<button>
<legend>Send</legend>
@ -53,15 +53,13 @@
{
setprop("/sim/multiplay/chat", lchat);
setprop("/sim/multiplay/chat-compose", "");
fgcommand("dialog-update", props.Node.new({"object-name": "compose",
"dialog-name": "chat-full"}));
}
gui.dialog_update("chat-full", "compose");
}
</script>
</binding>
</button>
</group>
<text>
<label></label>
</text>
@ -78,7 +76,7 @@
<command>dialog-close</command>
</binding>
</button>
<button>
<legend>Less ^</legend>
<default>false</default>
@ -90,8 +88,6 @@
<command>dialog-close</command>
</binding>
</button>
<empty><stretch>true</stretch></empty>
</group>