Add button to select download directory
This commit is contained in:
parent
3db846729f
commit
b4b527b600
1 changed files with 26 additions and 7 deletions
|
@ -67,16 +67,23 @@
|
||||||
<row>3</row>
|
<row>3</row>
|
||||||
<col>2</col><colspan>2</colspan>
|
<col>2</col><colspan>2</colspan>
|
||||||
<pref-width>400</pref-width>
|
<pref-width>400</pref-width>
|
||||||
|
<live>true</live>
|
||||||
<property>/sim/terrasync/scenery-dir</property>
|
<property>/sim/terrasync/scenery-dir</property>
|
||||||
<enable>
|
<enable><false/></enable>
|
||||||
<property>/sim/terrasync/enabled</property>
|
|
||||||
</enable>
|
|
||||||
<binding>
|
|
||||||
<command>dialog-apply</command>
|
|
||||||
<object-name>scenery-dir</object-name>
|
|
||||||
</binding>
|
|
||||||
</input>
|
</input>
|
||||||
|
|
||||||
|
<button>
|
||||||
|
<legend>Change</legend>
|
||||||
|
<equal>true</equal>
|
||||||
|
<border>2</border>
|
||||||
|
<row>3</row>
|
||||||
|
<col>4</col>
|
||||||
|
<binding>
|
||||||
|
<command>nasal</command>
|
||||||
|
<script>controller.open()</script>
|
||||||
|
</binding>
|
||||||
|
</button>
|
||||||
|
|
||||||
<text>
|
<text>
|
||||||
<row>4</row>
|
<row>4</row>
|
||||||
<col>2</col><colspan>3</colspan>
|
<col>2</col><colspan>3</colspan>
|
||||||
|
@ -428,4 +435,16 @@
|
||||||
<empty><stretch>true</stretch></empty>
|
<empty><stretch>true</stretch></empty>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
|
<nasal>
|
||||||
|
<open><![CDATA[
|
||||||
|
var controller = gui.DirSelector.new(
|
||||||
|
func(result) { setprop("/sim/terrasync/scenery-dir", result.getValue()); },
|
||||||
|
"Select Target Directory for Downloads", "Ok", getprop("/sim/terrasync/scenery-dir"));
|
||||||
|
]]></open>
|
||||||
|
|
||||||
|
<close><![CDATA[
|
||||||
|
controller.close();
|
||||||
|
]]></close>
|
||||||
|
</nasal>
|
||||||
|
|
||||||
</PropertyList>
|
</PropertyList>
|
||||||
|
|
Loading…
Add table
Reference in a new issue