Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 3627452

Browse files
committed
First Version Release
First Version Release
1 parent 7d2ef0e commit 3627452

File tree

23 files changed

+475
-19228
lines changed

23 files changed

+475
-19228
lines changed

Nasal/ExtendedTrafficLights/Models/AircraftOsg/0OsgText/Cessna172-ba.ac

Lines changed: 0 additions & 19030 deletions
This file was deleted.

Nasal/ExtendedTrafficLights/Models/AircraftOsg/0OsgText/Cessna172.xml

Lines changed: 0 additions & 185 deletions
This file was deleted.
Binary file not shown.

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,49 @@
11
# ExtendedTrafficLights
22
Extended Traffic Lights for FlightGear
3+
4+
## About
5+
Make other multiplayer pilots easier to see. Just like FSX. See them up to 50nm away.
6+
7+
![Example](https://i.imgur.com/vxOi25X.jpg)
8+
9+
![Example](https://i.imgur.com/acbB1sI.jpg)
10+
11+
### Requirements
12+
13+
FlightGear 2017.x version.
14+
15+
### Install Procedures
16+
17+
Unzip extended_traffic_lights folder to any place you want. e.g C:\Users\USERNAME\Documents\FlightGear\Addons\extended_traffic_lights
18+
19+
Then add this command line to your FlightGear Shortcut :
20+
21+
--addon="C:\Users\USERNAME\Documents\FlightGear\Addons\extended_traffic_lights"
22+
23+
Note that this command line must have the correct path to the extended_traffic_lights folder.
24+
Do not know how to set command lines? Check here: http://wiki.flightgear.org/Command_line
25+
26+
### Dealing with errors
27+
28+
This addon is not compatible with RESET option for now. Sorry.
29+
30+
### Configurations
31+
32+
This addon is enabled by default. If you want it to start disabled you can :
33+
34+
To enable or disable it go to extended_traffic_lights folder and open config.xml. Find defaultON line.
35+
36+
```<defaultON>0</defaultON>```
37+
38+
Change defaultON value ( 1 for yes and 0 for no ). Restart your simulator. Done.
39+
40+
### Using
41+
Open addon dialog by pressing menubar Multiplayer > Entended Traffic Lights.
42+
Enable / Disable the addon from the dialog.
43+
Enable / Disable the label with info from the dialog (not implemented yet)
44+
45+
### TODO
46+
47+
Label showing informations about the pilot.
48+
49+
![Example](https://i.imgur.com/3ULqaaA.jpg)

development_files/OldwithOsg.7z

836 KB
Binary file not shown.
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
<?xml version="1.0"?>
2+
<PropertyList>
3+
<name>extended_traffic_lights_about</name>
4+
<layout>vbox</layout>
5+
<resizable>false</resizable>
6+
7+
<group>
8+
<layout>hbox</layout>
9+
<text>
10+
<label>About</label>
11+
<halign>right</halign>
12+
</text>
13+
14+
<button>
15+
<halign>right</halign>
16+
<pref-width>16</pref-width>
17+
<pref-height>16</pref-height>
18+
<legend>X</legend>
19+
<binding>
20+
<command>dialog-close</command>
21+
</binding>
22+
</button>
23+
</group>
24+
25+
<group>
26+
<layout>vbox</layout>
27+
28+
<group>
29+
<layout>hbox</layout>
30+
31+
<group>
32+
<layout>hbox</layout>
33+
34+
<canvas>
35+
<name>about</name>
36+
<valign>center</valign>
37+
<halign>center</halign>
38+
<stretch>false</stretch>
39+
<width>200</width>
40+
<height>139</height>
41+
<pref-width>200</pref-width>
42+
<pref-height>139</pref-height>
43+
44+
<nasal>
45+
<load>
46+
<![CDATA[
47+
48+
# you can add your canvas-specific code here
49+
# this will get a handle to the parent canvas
50+
var my_canvas = canvas.get(cmdarg());
51+
52+
var root = my_canvas.createGroup();
53+
var path = getprop("/sim/fg-root") ~ "/Nasal/ambient_editor/dialogs/amb-editor.png";
54+
var child = root.createChild("image")
55+
.setFile(path)
56+
.setSize(200, 139)
57+
.setTranslation(2,2);
58+
]]>
59+
</load>
60+
</nasal>
61+
62+
</canvas>
63+
64+
</group>
65+
66+
<group>
67+
<layout>vbox</layout>
68+
<textbox>
69+
<name>authors</name>
70+
<halign>fill</halign>
71+
<stretch>true</stretch>
72+
<width>150</width>
73+
<height>139</height>
74+
<pref-width>150</pref-width>
75+
<pref-height>139</pref-height>
76+
<editable>false</editable>
77+
<wrap>true</wrap>
78+
<live>true</live>
79+
<top-line>0</top-line>
80+
<property>/sim/addons/extended-traffic-lights/about</property>
81+
</textbox>
82+
</group>
83+
</group>
84+
</group>
85+
86+
</PropertyList>
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0"?>
2+
<PropertyList>
3+
<name>extended_traffic_lights_dialog</name>
4+
<layout>vbox</layout>
5+
<!--width>285</width-->
6+
<resizable>false</resizable>
7+
8+
<group>
9+
<layout>hbox</layout>
10+
<text>
11+
<halign>right</halign>
12+
<label>Extended Traffic Lights</label>
13+
</text>
14+
15+
<button>
16+
<halign>right</halign>
17+
<pref-width>16</pref-width>
18+
<pref-height>16</pref-height>
19+
<legend>?</legend>
20+
<binding>
21+
<command>dialog-show</command>
22+
<dialog-name>extended_traffic_lights_about</dialog-name>
23+
</binding>
24+
</button>
25+
26+
<button>
27+
<halign>right</halign>
28+
<pref-width>16</pref-width>
29+
<pref-height>16</pref-height>
30+
<legend>X</legend>
31+
<keynum>27</keynum>
32+
<border>2</border>
33+
<binding>
34+
<command>dialog-close</command>
35+
</binding>
36+
</button>
37+
</group>
38+
39+
<hrule/>
40+
41+
<checkbox>
42+
<label>Enable / Disable</label>
43+
<live>true</live>
44+
<halign>left</halign>
45+
<property>sim/addons/extended-traffic-lights/enable</property>
46+
<binding>
47+
<command>dialog-apply</command>
48+
</binding>
49+
</checkbox>
50+
51+
<checkbox>
52+
<label>Show info label (callsign, model, speed, altitude...) - DISABLED</label>
53+
<live>true</live>
54+
<halign>left</halign>
55+
<property>sim/addons/extended-traffic-lights/show-label</property>
56+
<binding>
57+
<command>dialog-apply</command>
58+
</binding>
59+
</checkbox>
60+
61+
<text>
62+
<label>http://flightgearbrasil.com.br</label>
63+
</text>
64+
65+
</PropertyList>

Nasal/ExtendedTrafficLights/Models/AircraftLights/LandingWhite/light.xml renamed to extended_traffic_lights/Models/AircraftLights/LandingWhite/light.xml

File renamed without changes.

0 commit comments

Comments
 (0)