HUD positioning
-
czesiek77
- Posts: 26
- Joined: 2014-04-20 18:56
HUD positioning
Hi I have tried to make new HUD for AH1Z, to look more like like in Battlefield 3 (not exact copy, just similiar). So I ve started from making new horizon. I edited F15 horizon(it is used by Ah1Z), I resize to 256x500 from 256x8. I had to move it up becouse it was too low. And here is the problem. I can change X but I cant change Y. After changing Y nothing happens. Anyone help?
- Mats391
- PR:BF2 Lead Developer
- Posts: 7643
- Joined: 2010-08-06 18:06
Re: HUD positioning
Im not understanding you 100%, could you post the code you are having trouble with?
-
czesiek77
- Posts: 26
- Joined: 2014-04-20 18:56
Re: HUD positioning
Code:
I am talking about numbers 272(X) and 172(Y) which stants for positioning HUD picture in game. When I change 172 to any other number nothing changes.
Code: Select all
hudBuilder.createPictureNode Ah1zPilotHud Ah1zMissileHorizon 272 172 256 8
hudBuilder.setPictureNodeTexture Ingame\Vehicles\Icons\Hud\Air\Attack\F15\Navigation\horizon.tga
hudBuilder.setNodeColor 0 0.8 0 1
hudBuilder.setNodePosVariable 1 AngleOfAttack
hudBuilder.setPictureNodeRotateVariable VehicleBanking
hudBuilder.setPictureNodeCenterPoint 0 0
- Mats391
- PR:BF2 Lead Developer
- Posts: 7643
- Joined: 2010-08-06 18:06
Re: HUD positioning
That is because you have "hudBuilder.setNodePosVariable 1 AngleOfAttack". This is needed for the horizon to move on the Y axis. You can change its position by using "hudBuilder.setNodeOffset X Y".
For reference you could check the Tiger pilot hud (menu/HUD/HudSetup/Vehicles/Air/HudElementsTigerUHPilot.con)
For reference you could check the Tiger pilot hud (menu/HUD/HudSetup/Vehicles/Air/HudElementsTigerUHPilot.con)
Code: Select all
hudBuilder.createPictureNode TigerUHTPilotHud TigerUHTHorizonAngleOfAttack 368 236 64 128
hudBuilder.setPictureNodeTexture Ingame\Vehicles\Icons\Hud\Air\Attack\tiger\tiger_horizon2.tga
hudBuilder.setNodeColor 0 1 0 1
hudBuilder.setNodePosVariable 1 AngleOfAttack
hudBuilder.setPictureNodeRotateVariable VehicleBanking
hudBuilder.setPictureNodeCenterPoint 0 0
hudBuilder.setNodeOffset 0 -64