Page 2 of 5

Re: Yet another contribution to the collection of HUD´s

Posted: Wed Mar 09, 2011 4:38 pm
by Cody
Many thanks, admiral... has that little problem mentioned in the above link been sorted?

Re: Yet another contribution to the collection of HUD´s

Posted: Wed Mar 09, 2011 4:39 pm
by another_commander
El Viejo wrote:
Many thanks, admiral... has that little problem mentioned in the above link been sorted?
Yes, it's all good now.

Re: Yet another contribution to the collection of HUD´s

Posted: Wed Mar 09, 2011 10:29 pm
by Gimi
Thank you Smivs and A_C.
My first micro-OXP (for personal use only) works fine. Reticle turns red, com and message gui has moved to the left. Now, to start adjusting so that I can have one on each side.

Re: Yet another contribution to the collection of HUD´s

Posted: Wed Mar 09, 2011 11:14 pm
by Smivs
Make the 'x' co-ordinate into a positive number, say 200.

Re: Yet another contribution to the collection of HUD´s

Posted: Thu Mar 10, 2011 12:16 am
by Cody
Tinker with the 'row size' as well... you'll get more text in using a smaller row.

Re: Yet another contribution to the collection of HUD´s

Posted: Thu Mar 10, 2011 8:05 am
by Gimi
El Viejo wrote:
Tinker with the 'row size' as well... you'll get more text in using a smaller row.
This one I have already discovered. Thanks.

Re: Yet another contribution to the collection of HUD´s

Posted: Fri Mar 11, 2011 9:43 pm
by Captain Beatnik
Commander McLane wrote:
What happens while the clock is adjusted? Will the ' (adjusting)' be printed only outside the screen?
there is enough room left beside the HUD, the picture I posted shows only a detail.

@smivs and another_commander: Thanks for the code to change the position of the comlog and the message gui. That will come in handy.

btw: Is there a documentation or summary about all the possible settings in the hud.plist available?

greetings

CB

Re: Yet another contribution to the collection of HUD´s

Posted: Sun Mar 13, 2011 9:37 am
by Cmdr Radan
Hi, is it possible to move the message that keeps blocking my view :? Using just notepad++ ?

I'm using the milhud.plist

I looked at what is typed here on this thread, but in note pad it all looks different :shock:

I've no idea what to put or where to put it,I just want to move the message over to the left.

:oops:

Re: Yet another contribution to the collection of HUD´s

Posted: Sun Mar 13, 2011 9:07 pm
by Kaks
plists can be written in either xml
<key>something</key>
<float>1.5</float>
or openstep format
something = 1.5;
Most oxps of late use the easier to read openstep, but you probably opened an xml formatted plist...

Re: Yet another contribution to the collection of HUD´s

Posted: Mon Mar 14, 2011 7:18 am
by Cmdr Radan
yeah, it looked like the first one.

can it be done , or do I need to open it in a different way?

(total noob on this btw)

Re: Yet another contribution to the collection of HUD´s

Posted: Mon Mar 14, 2011 10:37 am
by Kaks
Having had a look at this thread, it looks like your best bet - if you're on windows - is to convert the openstep stuff from the examples above to xml using the program mentioned there, then insert the xml-ified bit it in the right spot! :)

If you're on a mac, you should be able to convert between the two formats at will!

Re: Yet another contribution to the collection of HUD´s

Posted: Fri Apr 29, 2011 12:33 pm
by Killer Wolf
reet, it's not working for me. i've got

Code: Select all

<key>comm_log_gui</key>
	<dict>
		<key>height</key>
		<string>100</string>
		<key>row_height</key>
		<string>10</string>
		<key>width</key>
		<string>250</string>
		<key>x</key>
		<string>-195</string>
		<key>y</key>
		<string>100</string>
	</dict>
	<key>message_gui</key>
	<dict>
		<key>height</key>
		<string>160</string>
		<key>row_height</key>
		<string>12</string>
		<key>width</key>
		<string>210</string>
		<key>x</key>
		<string>-200</string>
		<key>y</key>
		<string>-50</string>
	</dict>
in my hud plist, and i got an error about a missing selector. did a bit seach, found this https://bb.oolite.space/viewtopic.php?p=39454#p39454
so i've tried

Code: Select all

<key>comm_log_gui</key>
	<dict>
		<key>height</key>
		<string>100</string>
		<key>row_height</key>
		<string>10</string>
		<key>width</key>
		<string>250</string>
		<key>x</key>
		<string>-195</string>
		<key>y</key>
		<string>100</string>
					<key>selector</key>
			<string>resizeGuis:</string>

	</dict>
	<key>message_gui</key>
	<dict>
		<key>height</key>
		<string>160</string>
		<key>row_height</key>
		<string>12</string>
		<key>width</key>
		<string>210</string>
		<key>x</key>
		<string>-200</string>
		<key>y</key>
		<string>-50</string>
							<key>selector</key>
			<string>resizeGuis:</string>
	</dict>
and now i get

Code: Select all

[hud.dial.invalidSelector]: ***** ERROR: HUD dial in phantomNormalHUD.plist uses selector "resizeGuis:" which is not in whitelist, and will be ignored.
[hud.dial.invalidSelector]: ***** ERROR: HUD dial in phantomNormalHUD.plist uses selector "resizeGuis:" which is not in whitelist, and will be ignored.
[hud.dial.invalidSelector]: ***** ERROR: HUD dial in phantomNormalHUD.plist uses selector "resizeGuis:" which is not in whitelist, and will be ignored.
[hud.dial.invalidSelector]: ***** ERROR: HUD dial in phantomNormalHUD.plist uses selector "resizeGuis:" which is not in whitelist, and will be ignored.
[gameController.exitApp]: .GNUstepDefaults synchronized.
any help would be appreciated, ta.

Re: Yet another contribution to the collection of HUD´s

Posted: Fri Apr 29, 2011 11:06 pm
by Kaks
Resizeguis is an old key that has been dropped from the code yonks ago.

it might well be a nesting issue,

comm_log_gui & message_gui need to both be at the same nesting level as overall_alpha, reticle_target_sensitive, dials and legends

Can you actually show us the whole of the plist? (the one without the useless resizeguis thing?)

Re: Yet another contribution to the collection of HUD´s

Posted: Sat Apr 30, 2011 4:50 am
by JensAyton
You’ll note that the linked post does say resuzeGuis: wasn’t actually useful for HUDs at the time.

Re: Yet another contribution to the collection of HUD´s

Posted: Sat Apr 30, 2011 11:20 am
by Killer Wolf
this is the whole thing so far

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>dials</key><!-- these are drawn, in order, after the legends -->
	<array>
		<dict><!-- Targetting enhancement -->
			<key>equipment_required</key>
			<string>EQ_SCANNER_SHOW_MISSILE_TARGET</string>
			<key>selector</key>
			<string>drawTargetReticle:</string>
		</dict>
		
<key>comm_log_gui</key>
	<dict>
		<key>height</key>
		<string>100</string>
		<key>row_height</key>
		<string>10</string>
		<key>width</key>
		<string>250</string>
		<key>x</key>
		<string>-195</string>
		<key>y</key>
		<string>100</string>
	</dict>
	<key>message_gui</key>
	<dict>
		<key>height</key>
		<string>160</string>
		<key>row_height</key>
		<string>12</string>
		<key>width</key>
		<string>210</string>
		<key>x</key>
		<string>-200</string>
		<key>y</key>
		<string>-50</string>
	</dict>

		<dict><!-- station aegis, uses Images/aegis.png as indicator -->
			<key>alpha</key>
			<real>0.7</real>
			<key>selector</key>
			<string>drawAegis:</string>
			<key>x</key>
			<integer>240</integer>
			<key>y</key>
			<integer>205</integer>
			<key>width</key>
			<integer>14</integer>
			<key>height</key>
			<integer>25</integer>
		</dict>

		<dict><!-- status indicator light, x and y give the location, the size defines the icon size -->
		<key>alpha</key>
			<real>1.50</real>
			<key>height</key>
			<integer>14</integer>
			<key>width</key>
			<integer>14</integer>
			<key>selector</key>
			<string>drawStatusLight:</string>
			<key>x</key>
			<integer>131</integer>
			<key>y</key>
			<integer>225</integer>
		</dict>
		<dict><!-- status indicator light, x and y give the location, the size defines the icon size -->
			<key>alpha</key>
			<real>1.50</real>
			<key>height</key>
			<integer>14</integer>
			<key>width</key>
			<integer>14</integer>
			<key>selector</key>
			<string>drawStatusLight:</string>
			<key>x</key>
			<integer>-128</integer>
			<key>y</key>
			<integer>225</integer>
		</dict>
	
		<dict><!-- ship's clock, x and y give the location, the size defines the character size -->
			<key>height</key>
			<integer>7</integer>
			<key>selector</key>
			<string>drawClock:</string>
			<key>width</key>
			<integer>14</integer>
			<key>x</key>
			<integer>-20</integer>
			<key>y</key>
			<integer>-90</integer>
		</dict>
	
		<dict><!-- speed bar, can draw a surround 2 units out from the dial size specified -->
			<key>draw_surround</key>
			<false/>
			<key>height</key>
			<integer>13</integer>
			<key>width</key>
			<integer>90</integer>
			<key>selector</key>
			<string>drawSpeedBar:</string>
			<key>x</key>
			<integer>253</integer>
			<key>y</key>
			<integer>-140</integer>
		</dict>
		
		<dict><!-- fuel bar -->
			<key>height</key>
			<integer>13</integer>
			<key>width</key>
			<integer>60</integer>
			<key>selector</key>
			<string>drawFuelBar:</string>
			<key>x</key>
			<integer>-262</integer>
			<key>y</key>
			<integer>214</integer>
		</dict>
		
		<dict><!-- scanner -->
			<key>alpha</key>
			<real>0.8</real>
			<key>selector</key>
			<string>drawScanner:</string>
			<key>x</key>
			<integer>0</integer>
			<key>y</key>
			<integer>-173</integer>
			<key>height</key>
			<real>66</real>
			<key>width</key>
			<real>173</real>
         		<key>rgb_color</key>
         		<array>
            		<real>0.25</real>
            		<real>0.46</real>
            		<real>0.89</real>
         		</array>
		</dict>
		
		<dict><!-- scanner zoom indicator, uses Images/zoom.png to provide 5 levels -->
			<key>alpha</key>
			<real>1.0</real>
			<key>selector</key>
			<string>drawScannerZoomIndicator:</string>
			<key>height</key>
			<integer>10</integer>
			<key>x</key>
			<integer>80</integer>
			<key>y</key>
			<integer>-217</integer>
         		<key>rgb_color</key>
         		<array>
            		<real>0.0</real>
            		<real>1.0</real>
            		<real>0.0</real>
         		</array>
		</dict> 
		
		<dict><!-- energy gauge, can draw a surround 2 units out from the dial size specified -->
			<key>draw_surround</key>
			<false/>
			<key>height</key>
			<integer>95</integer>
			<key>width</key>
			<integer>52</integer>
			<key>selector</key>
			<string>drawEnergyGauge:</string>
			<key>x</key>
			<integer>271</integer>
			<key>y</key>
			<integer>-181</integer>
			<key>labelled</key>
			<false/>
		</dict>
		
		<dict><!-- compass, uses Images/compass.png as background and Images/reddot.png and Images/greendot.png -->
			<key>alpha</key>
			<real>0.75</real>
			<key>selector</key>
			<string>drawCompass:</string>
			<key>height</key>
			<integer>56</integer>
			<key>width</key>
			<real>59</real>
			<key>x</key>
			<integer>0</integer>
			<key>y</key>
			<integer>188</integer>
			<key>rgb_color</key>
         		<array>
            		<real>0.0</real>
            		<real>1.0</real>
            		<real>0.00</real>
         		</array>
		</dict>
		
		<dict><!-- wasp indicator status -->
			<key>alpha</key>
			<real>0.75</real>
			<key>selector</key>
			<string>drawScoopStatus:</string>
			<key>height</key>
			<integer>17</integer>
			<key>width</key>
			<integer>14</integer>
			<key>x</key>
			<integer>-55</integer>
			<key>y</key>
			<integer>211</integer>
		</dict>

		<dict><!-- weapon temperature bar -->
			<key>height</key>
			<integer>13</integer>
			<key>width</key>
			<integer>133</integer>
			<key>selector</key>
			<string>drawWeaponTempBar:</string>
			<key>x</key>
			<integer>-178</integer>
			<key>y</key>
			<integer>210</integer>
		</dict>

		<dict><!-- missile display, x and y give the location, the x-spacing is given by spacing, the size defines the icon size -->
			<key>height</key>
			<integer>10</integer>
			<key>width</key>
			<integer>15</integer>
			<key>selector</key>
			<string>drawMissileDisplay:</string>
			<key>spacing</key>
			<integer>30</integer>
			<key>x</key>
			<integer>140</integer>
			<key>y</key>
			<integer>213</integer>
		</dict>

		<dict><!-- forward shield bar, can draw a surround 2 units out from the dial size specified -->
			<key>draw_surround</key>
			<false/>
			<key>height</key>
			<integer>82</integer>
			<key>width</key>
			<integer>20</integer>
			<key>selector</key>
			<string>drawForwardShieldBar:</string>
			<key>x</key>
			<integer>-287</integer>
			<key>y</key>
			<integer>-184</integer>
		</dict>
		<dict><!-- aft shield bar, can draw a surround 2 units out from the dial size specified -->
			<key>draw_surround</key>
			<false/>
			<key>height</key>
			<integer>82</integer>
			<key>width</key>
			<integer>20</integer>
			<key>selector</key>
			<string>drawAftShieldBar:</string>
			<key>x</key>
			<integer>-250</integer>
			<key>y</key>
			<integer>-184</integer>
		</dict>
		<dict><!-- cabin temperature bar -->
			<key>height</key>
			<integer>88</integer>
			<key>width</key>
			<integer>19</integer>
			<key>selector</key>
			<string>drawCabinTempBar:</string>
			<key>x</key>
			<integer>277</integer>
			<key>y</key>
			<integer>170</integer>
		</dict>
		
		<dict><!-- altitude bar -->
			<key>height</key>
			<integer>88</integer>
			<key>width</key>
			<integer>19</integer>
			<key>selector</key>
			<string>drawAltitudeBar:</string>
			<key>x</key>
			<integer>-277</integer>
			<key>y</key>
			<integer>170</integer>
		</dict>
	</array>
	
	<key>legends</key><!-- these are drawn, in order, before the dials, add any other images you want here -->
	<array>
		<dict>
			<key>image</key>
			<string>phantomHUDgreen.png</string>
			<key>width</key>
			<real>640</real>
			<key>height</key>
			<real>480</real>
			<key>x</key>
			<integer>0</integer>
			<key>y</key>
			<integer>0</integer>
			<key>alpha</key>
			<real>1.00</real>
		</dict>
    </array>
</dict>
</plist>