| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
<PropertyList> |
| 16 |
|
| 17 |
<name>c172p-about-dialog</name> |
| 18 |
<layout>vbox</layout> |
| 19 |
<resizable>false</resizable> |
| 20 |
<modal>false</modal> |
| 21 |
<draggable>true</draggable> |
| 22 |
|
| 23 |
<group> |
| 24 |
<layout>hbox</layout> |
| 25 |
<empty><stretch>true</stretch></empty> |
| 26 |
<text> |
| 27 |
<label>About</label> |
| 28 |
</text> |
| 29 |
<empty><stretch>true</stretch></empty> |
| 30 |
<button> |
| 31 |
<legend>X</legend> |
| 32 |
<key>Esc</key> |
| 33 |
<halign>right</halign> |
| 34 |
<pref-width>20</pref-width> |
| 35 |
<pref-height>20</pref-height> |
| 36 |
<binding> |
| 37 |
<command>dialog-close</command> |
| 38 |
</binding> |
| 39 |
</button> |
| 40 |
</group> |
| 41 |
|
| 42 |
<hrule/> |
| 43 |
|
| 44 |
<group> |
| 45 |
<layout>vbox</layout> |
| 46 |
<padding>6</padding> |
| 47 |
|
| 48 |
<group> |
| 49 |
<layout>hbox</layout> |
| 50 |
|
| 51 |
<group> |
| 52 |
<layout>hbox</layout> |
| 53 |
|
| 54 |
<canvas> |
| 55 |
<name>about</name> |
| 56 |
|
| 57 |
<valign>fill</valign> |
| 58 |
<halign>fill</halign> |
| 59 |
<stretch>true</stretch> |
| 60 |
<pref-width>640</pref-width> |
| 61 |
<pref-height>480</pref-height> |
| 62 |
|
| 63 |
<nasal> |
| 64 |
<load> |
| 65 |
<![CDATA[ |
| 66 |
|
| 67 |
# you can add your canvas-specific code here |
| 68 |
# this will get a handle to the parent canvas |
| 69 |
var my_canvas = canvas.get(cmdarg()); |
| 70 |
|
| 71 |
var root = my_canvas.createGroup(); |
| 72 |
var path = "Aircraft/c172p/gui/dialogs/c172p.jpg"; |
| 73 |
var child = root.createChild("image") |
| 74 |
.setFile(path) |
| 75 |
.setSize(640, 480) |
| 76 |
.setTranslation(2,2); |
| 77 |
]]> |
| 78 |
</load> |
| 79 |
</nasal> |
| 80 |
</canvas> |
| 81 |
</group> |
| 82 |
|
| 83 |
<group> |
| 84 |
<layout>vbox</layout> |
| 85 |
|
| 86 |
<group> |
| 87 |
<layout>hbox</layout> |
| 88 |
<default-padding>6</default-padding> |
| 89 |
<text> |
| 90 |
<halign>left</halign> |
| 91 |
<label>Cessna 172P version:</label> |
| 92 |
</text> |
| 93 |
<text> |
| 94 |
<halign>left</halign> |
| 95 |
<label>1234.5-git</label> |
| 96 |
<property>/sim/aircraft-version</property> |
| 97 |
</text> |
| 98 |
<empty><stretch>true</stretch></empty> |
| 99 |
</group> |
| 100 |
|
| 101 |
<hrule/> |
| 102 |
|
| 103 |
<text> |
| 104 |
<halign>left</halign> |
| 105 |
<label>Description:</label> |
| 106 |
</text> |
| 107 |
|
| 108 |
<textbox> |
| 109 |
<name>basic description</name> |
| 110 |
<halign>fill</halign> |
| 111 |
<stretch>true</stretch> |
| 112 |
<pref-height>180</pref-height> |
| 113 |
<height>210</height> |
| 114 |
<pref-width>300</pref-width> |
| 115 |
<editable>false</editable> |
| 116 |
<wrap>true</wrap> |
| 117 |
<live>true</live> |
| 118 |
<top-line>0</top-line> |
| 119 |
<property>/sim/long-description</property> |
| 120 |
</textbox> |
| 121 |
|
| 122 |
<empty><stretch>true</stretch></empty> |
| 123 |
|
| 124 |
<text> |
| 125 |
<halign>left</halign> |
| 126 |
<label>Authors:</label> |
| 127 |
</text> |
| 128 |
|
| 129 |
<textbox> |
| 130 |
<name>authors</name> |
| 131 |
<halign>fill</halign> |
| 132 |
<stretch>true</stretch> |
| 133 |
<pref-height>180</pref-height> |
| 134 |
<height>210</height> |
| 135 |
<pref-width>300</pref-width> |
| 136 |
<editable>false</editable> |
| 137 |
<wrap>true</wrap> |
| 138 |
<live>true</live> |
| 139 |
<top-line>0</top-line> |
| 140 |
<property>/sim/author</property> |
| 141 |
</textbox> |
| 142 |
</group> |
| 143 |
|
| 144 |
</group> |
| 145 |
</group> |
| 146 |
|
| 147 |
<hrule/> |
| 148 |
|
| 149 |
<group> |
| 150 |
<layout>hbox</layout> |
| 151 |
<default-padding>6</default-padding> |
| 152 |
|
| 153 |
<button> |
| 154 |
<halign>left</halign> |
| 155 |
<legend>Wiki Page</legend> |
| 156 |
<binding> |
| 157 |
<command>nasal</command> |
| 158 |
<script>fgcommand("open-browser", props.Node.new({"url":"http://wiki.flightgear.org/Cessna_172P"}));</script> |
| 159 |
</binding> |
| 160 |
</button> |
| 161 |
|
| 162 |
<button> |
| 163 |
<halign>center</halign> |
| 164 |
<legend>Open Repository in Browser</legend> |
| 165 |
<binding> |
| 166 |
<command>nasal</command> |
| 167 |
<script>fgcommand("open-browser", props.Node.new({"url":"https://github.com/c172p-team/c172p"}));</script> |
| 168 |
</binding> |
| 169 |
</button> |
| 170 |
|
| 171 |
<empty><stretch>true</stretch></empty> |
| 172 |
|
| 173 |
<button> |
| 174 |
<halign>right</halign> |
| 175 |
<legend>Close</legend> |
| 176 |
<equal>true</equal> |
| 177 |
<key>Esc</key> |
| 178 |
<default>true</default> |
| 179 |
<binding> |
| 180 |
<command>dialog-close</command> |
| 181 |
</binding> |
| 182 |
</button> |
| 183 |
|
| 184 |
</group> |
| 185 |
|
| 186 |
</PropertyList> |