Page 1 of 1

[Solved] need help ui hud reticle - what xml control it ? picture inside

Posted: Sun, 29. Aug 21, 14:27
by bioscmos303
Solved i was busting my head here trying to find the xml to control it , just to change some Basic position for the hud reticle - https://imgur.com/a/6JYlTfl
well - its the last connection , all the way down inside the cockpits xmls .. 'con_crosshair
Image


Solved :lol:
thanks to user - John Colman

file : units_player_cockpit_1.xml /etc
connection name : con_crosshair
tags name : uianchor_crosshair

Code: Select all

<replace sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='con_crosshair']/offset"> 
	<offset>
		<position x="3.084773E-05" y="0" z="2.286153"/>
		<quaternion qx="0.131611" qy="-0" qz="-0" qw="-0.9913015"/>
	</offset> 
	</replace> 
extra info :
i changed the long - position x="3.084773E-05
to - position x="3.084773 without the E-05 works better (for me at least)

in - ui\core\presentations\cockpit_crosshair\cockpit_crosshair.dae
Dae files for Blender import if needed

Re: need help ui hud reticle - what xml control it ? picture inside

Posted: Sun, 29. Aug 21, 14:33
by bioscmos303
i know its under my nose please help

Re: need help ui hud reticle - what xml control it ? picture inside

Posted: Sun, 29. Aug 21, 16:11
by John Colman
Maybe uianchor_crosshair ?

Re: need help ui hud reticle - what xml control it ? picture inside

Posted: Sun, 29. Aug 21, 16:38
by bioscmos303
John Colman wrote:
Sun, 29. Aug 21, 16:11
Maybe uianchor_crosshair ?
yes !!! :lol: :lol: :lol: :lol: :) :) :o :P

thank you !!!!!!
the reason i didnt found it- because its the last connection all the way down last one on the xml list :shock:

thank you !! really made my day - now here is the code to control it so i will never forget it o7

Code: Select all

<replace sel="/components/component[@name='units_player_cockpit_1']/connections/connection[@name='con_crosshair']/offset"> 
	<offset>
		<position x="3.084773E-05" y="0" z="2.286153"/>
		<quaternion qx="0.131611" qy="-0" qz="-0" qw="-0.9913015"/>
	</offset> 
	</replace>