- simplification: use gui.dialog_update() command instead of
fgcommand("dialog-update", props.Node.new({})); - remove lots of trailing spaces
This commit is contained in:
parent
e092ee9abc
commit
397ee8296f
2 changed files with 13 additions and 18 deletions
|
@ -7,15 +7,15 @@
|
||||||
|
|
||||||
<group>
|
<group>
|
||||||
<layout>hbox</layout>
|
<layout>hbox</layout>
|
||||||
|
|
||||||
<input>
|
<input>
|
||||||
<name>compose</name>
|
<name>compose</name>
|
||||||
<pref-width>500</pref-width>
|
<pref-width>500</pref-width>
|
||||||
<stretch>true</stretch>
|
<stretch>true</stretch>
|
||||||
<halign>fill</halign>
|
<halign>fill</halign>
|
||||||
<length>50</length>
|
<length>50</length>
|
||||||
<property>/sim/multiplay/chat-compose</property>
|
<property>/sim/multiplay/chat-compose</property>
|
||||||
</input>
|
</input>
|
||||||
|
|
||||||
<button>
|
<button>
|
||||||
<legend>Send</legend>
|
<legend>Send</legend>
|
||||||
|
@ -32,9 +32,8 @@
|
||||||
{
|
{
|
||||||
setprop("/sim/multiplay/chat", lchat);
|
setprop("/sim/multiplay/chat", lchat);
|
||||||
setprop("/sim/multiplay/chat-compose", "");
|
setprop("/sim/multiplay/chat-compose", "");
|
||||||
fgcommand("dialog-update", props.Node.new({"object-name": "compose",
|
gui.dialog_update("chat", "compose");
|
||||||
"dialog-name": "chat"}));
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</binding>
|
</binding>
|
||||||
</button>
|
</button>
|
||||||
|
@ -65,7 +64,7 @@
|
||||||
<command>dialog-close</command>
|
<command>dialog-close</command>
|
||||||
</binding>
|
</binding>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<empty><stretch>true</stretch></empty>
|
<empty><stretch>true</stretch></empty>
|
||||||
</group>
|
</group>
|
||||||
</PropertyList>
|
</PropertyList>
|
||||||
|
|
|
@ -28,15 +28,15 @@
|
||||||
|
|
||||||
<group>
|
<group>
|
||||||
<layout>hbox</layout>
|
<layout>hbox</layout>
|
||||||
|
|
||||||
<input>
|
<input>
|
||||||
<name>compose</name>
|
<name>compose</name>
|
||||||
<stretch>true</stretch>
|
<stretch>true</stretch>
|
||||||
<halign>fill</halign>
|
<halign>fill</halign>
|
||||||
<length>50</length>
|
<length>50</length>
|
||||||
<pref-width>500</pref-width>
|
<pref-width>500</pref-width>
|
||||||
<property>/sim/multiplay/chat-compose</property>
|
<property>/sim/multiplay/chat-compose</property>
|
||||||
</input>
|
</input>
|
||||||
|
|
||||||
<button>
|
<button>
|
||||||
<legend>Send</legend>
|
<legend>Send</legend>
|
||||||
|
@ -53,15 +53,13 @@
|
||||||
{
|
{
|
||||||
setprop("/sim/multiplay/chat", lchat);
|
setprop("/sim/multiplay/chat", lchat);
|
||||||
setprop("/sim/multiplay/chat-compose", "");
|
setprop("/sim/multiplay/chat-compose", "");
|
||||||
fgcommand("dialog-update", props.Node.new({"object-name": "compose",
|
gui.dialog_update("chat-full", "compose");
|
||||||
"dialog-name": "chat-full"}));
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</binding>
|
</binding>
|
||||||
</button>
|
</button>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
<label></label>
|
<label></label>
|
||||||
</text>
|
</text>
|
||||||
|
@ -78,7 +76,7 @@
|
||||||
<command>dialog-close</command>
|
<command>dialog-close</command>
|
||||||
</binding>
|
</binding>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button>
|
<button>
|
||||||
<legend>Less ^</legend>
|
<legend>Less ^</legend>
|
||||||
<default>false</default>
|
<default>false</default>
|
||||||
|
@ -90,8 +88,6 @@
|
||||||
<command>dialog-close</command>
|
<command>dialog-close</command>
|
||||||
</binding>
|
</binding>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<empty><stretch>true</stretch></empty>
|
<empty><stretch>true</stretch></empty>
|
||||||
</group>
|
</group>
|
||||||
|
|
Loading…
Add table
Reference in a new issue