Could HUD be player ship or system dependent?
Posted: Sun Mar 25, 2007 7:17 pm
Not sure if this has been discussed before. A brief search didn't turn up anything along this line so figuring I'll post and see what happens.
I'm wondering if there is a way to make the ship's HUD dependent upon the ship itself. For example, if a ship is among the default available group, that ship's HUD would be drawn using the system default, whether through an OXP or the installed default. When a ship that has a HUD definition is added via OXP, the OXPs HUD is only drawn if it is the player's ship, otherwise the default HUD is used. Yeah, I know this could create a problem when a system-wide HUD OXP is added, however a system-wide HUD could easily be identified by a simple key in the plist. Maybe something on the line of the snippet below to define a player ship only HUD:
while a system-wide HUD would be defined as:
It may be more reasonable to add a line similar to the one below to the ship's plist definition:
or:
Since I'm not familiar with the guts of Oolite, I can't say exactly how to implement either idea. The latter doesn't seem like it would be too terribly difficult.
Anyway, just a thought.
Michael
I'm wondering if there is a way to make the ship's HUD dependent upon the ship itself. For example, if a ship is among the default available group, that ship's HUD would be drawn using the system default, whether through an OXP or the installed default. When a ship that has a HUD definition is added via OXP, the OXPs HUD is only drawn if it is the player's ship, otherwise the default HUD is used. Yeah, I know this could create a problem when a system-wide HUD OXP is added, however a system-wide HUD could easily be identified by a simple key in the plist. Maybe something on the line of the snippet below to define a player ship only HUD:
Code: Select all
<key>scope</key>
<string>player</string>
Code: Select all
<key>scope</key>
<string>system</string>
It may be more reasonable to add a line similar to the one below to the ship's plist definition:
Code: Select all
<key>useHUD</key>
<string>lightwave</string>
Code: Select all
<key>useHUD</key>
<string>default</string>
Anyway, just a thought.
Michael