Jump to content

Recommended Posts

Posted

Hello, i need some help on a custom HUD pages change.

 

I created a custom HUD with several pages, but my problem is how to change from page to page with a click of button ot keyboad key.

 

Thank you

MOD Logo - 100.png

Posted

Thank you for your answer, i do have all of that, a clickabale cockpit is on, but what behavoir to do in order to make the HUD change page.

A start i have 3 page.

 

BASE = 1

INDICATION = 2

NAV=3

 

page_subsets = {

[bASE] = LockOn_Options.script_path.."HUD/Indicator/base_page.lua",

[iNDICATION] = LockOn_Options.script_path.."HUD/Indicator/indication_page.lua",

[NAV] = LockOn_Options.script_path.."HUD/Indicator/indication_page.lua",

}

pages =

{

{ BASE ,INDICATION},

{ BASE ,NAV},

}

 

init_pageID = 1

initialy i start showing page one here INDICATION

my question is how to switch to NAV page with a click of button or keyoard key ? like other HUDs for example Mig29 NAV/ AA mode /AG Mode ???

MOD Logo - 100.png

Posted

if you are looking for the LUA function to switch pages, there is none available.

easiest way is to have a base-element for every page and parent everything else to that element.

then you can hide/show that with Parameters

'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction.

Posted
if you are looking for the LUA function to switch pages, there is none available.

easiest way is to have a base-element for every page and parent everything else to that element.

then you can hide/show that with Parameters

 

Nice that's a good way to seek for. thumbup.gif

But I am wondering what pages declaration is ther for ? :book:

any suggestion for the controller name ?

MOD Logo - 100.png

Posted

Page-Declaration: its for when you dont have to work exclusivly in LUA enviroment

'controlling' the Ka50 feels like a discussion with the Autopilot and trim system about the flight direction.

Posted (edited)

Iam asking, if it's just a matter of Hide and Show, so i have to see all my pages showen on HUD, and then I'll show or hide in funtion of command what i want, but like you can see in my previouse example with just changing from init_pageID = 1 to init_pageID = 2 I switch from INDICATION page to NAV page but, I have to do it in LUA code and have to restart mission :), that's what make me think that there's a way to do so without restarting the mission, and if you check the other's plan cockpit you can find a function like set_page_mode or similar ?!

For the way of hide/show i tested it with changing opacity of the parent elements but still il only one page, and i needed that changes of opacity to swith on/off le HUD (scrolling knob).

 

And every thing is in LUA, no arguments (Model animation), drawing and texture called from LUA.

Edited by freebirddz

MOD Logo - 100.png

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...