Board index FlightGear Development Nasal

custom dialog position

Nasal is the scripting language of FlightGear.

custom dialog position

Postby gkick » Sun Jun 09, 2019 5:04 pm

Hi,

how can one change x y for a dialog that is not yet in the sim/gui/dialogs tree, e.g. position the instruments dialog off center ? And dialog related is there a way to place a tooltip on a button?

Thanks
gkick
 
Posts: 106
Joined: Sun Jan 01, 2017 11:04 pm

Re: custom dialog position

Postby Octal450 » Sun Jun 09, 2019 6:25 pm

Easy:
<x> and <y> tags under the top under <PropertyList>
I'm not 100% positive if they scale properly throughout different sizes.

Kind Regards,
Josh
Octal450

Lead Programmer, IDG (Join our Discord!)
Download High Quality Aircraft from Octal450 Hangar
User avatar
Octal450
 
Posts: 4227
Joined: Tue Oct 06, 2015 12:51 pm

Re: custom dialog position

Postby gkick » Sun Jun 09, 2019 8:27 pm

thanks Josh, thats fine if its a local dialog but does not seem to work if its one under the root gui/dialogs which you do not want to modify.
gkick
 
Posts: 106
Joined: Sun Jan 01, 2017 11:04 pm

Re: custom dialog position

Postby Octal450 » Sun Jun 09, 2019 9:38 pm

Not possible.
But you can copy the dialog locally into the gui/dialogs folder of your aircraft, and it will overwrite the sim.

Kind Regards,
Josh
Octal450

Lead Programmer, IDG (Join our Discord!)
Download High Quality Aircraft from Octal450 Hangar
User avatar
Octal450
 
Posts: 4227
Joined: Tue Oct 06, 2015 12:51 pm


Return to Nasal

Who is online

Users browsing this forum: No registered users and 1 guest