Board index FlightGear Support Flying

Transtarent as standard for the map ?

Controlling your aircraft, using the autopilot etc.

Transtarent as standard for the map ?

Postby meitoma » Wed Mar 24, 2021 4:12 pm

Hello together,
it´s possible to set the map-setings to transparent as standard ? Every time if I fly with the map I change to transparent. if If yes where or what is necessary to change that ?

https://abload.de/image.php?img=screenshot_02olkzv.png

Thanks.
____________________
greetings meitoma
meitoma
 
Posts: 87
Joined: Thu Feb 07, 2019 5:54 am

Re: Transtarent as standard for the map ?

Postby zakalawe » Wed Mar 24, 2021 5:29 pm

Changing the default would likely annoy some people, but could make the map settings user-archvied, then they would be saved between sessions.
zakalawe
 
Posts: 1259
Joined: Sat Jul 19, 2008 5:48 pm
Location: Edinburgh, Scotland
Callsign: G-ZKLW
Version: next
OS: Mac

Re: Transtarent as standard for the map ?

Postby meitoma » Thu Mar 25, 2021 8:23 pm

Hello, I don´t no how it´s possible to make a user-archived ? What is necessary to do this and create this ? Thanks.
____________________
greetings meitoma
meitoma
 
Posts: 87
Joined: Thu Feb 07, 2019 5:54 am

Re: Transtarent as standard for the map ?

Postby Hooray » Thu Mar 25, 2021 8:47 pm

https://wiki.flightgear.org/FlightGear_ ... on_via_XML
https://wiki.flightgear.org/Properties_ ... n_sessions

(open the corresponding dialog file to look up the proper property name)
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Transtarent as standard for the map ?

Postby zakalawe » Fri Mar 26, 2021 11:49 am

I made the change so that map settings are saved between runs, will be included in future nightly builds and should be back-portable for inclusion in 2020.3.9.
zakalawe
 
Posts: 1259
Joined: Sat Jul 19, 2008 5:48 pm
Location: Edinburgh, Scotland
Callsign: G-ZKLW
Version: next
OS: Mac

Re: Transtarent as standard for the map ?

Postby meitoma » Sat Mar 27, 2021 6:57 am

Hello, I have found the defaults.xml and autosave.xml. But I don´t know what is necessary to change in the files to make the map set to transparent as default. Thanks.
____________________
greetings meitoma
meitoma
 
Posts: 87
Joined: Thu Feb 07, 2019 5:54 am

Re: Transtarent as standard for the map ?

Postby Hooray » Sat Mar 27, 2021 9:15 am

You only need to set the userarchive attribute to make/have the property persistent/restored. Look for "userarchive" in the files to see how this works, or refer to the wiki pages linked to previously.
Alternatively, look at the recent fgdata commit touching the corresponding files:

https://sourceforge.net/p/flightgear/fg ... c7c8508c2/
Please don't send support requests by PM, instead post your questions on the forum so that all users can contribute and benefit
Thanks & all the best,
Hooray
Help write next month's newsletter !
pui2canvas | MapStructure | Canvas Development | Programming resources
Hooray
 
Posts: 12707
Joined: Tue Mar 25, 2008 9:40 am
Pronouns: THOU

Re: Transtarent as standard for the map ?

Postby meitoma » Sun Mar 28, 2021 7:20 am

Hello, I have found the right file. It was map.xml. Patch: fg-root/data/gui/dialogs/mal.xml

Change only from:

<nasal>
<open>
var mapDialog = cmdarg();
var setTransparency = func(updateDialog){
var alpha = (getprop("/gui/map/transparent") or 0);

to:

<nasal>
<open>
var mapDialog = cmdarg();
var setTransparency = func(updateDialog){
var alpha = (getprop("/gui/map/transparent") or 1);


By the way ...... it´s possile toi position the map in a corner of the screen ? If I open the map he is at the center of the screen. And can I change the standard zoom to another level ?

Thaks in advance and kind regards ....
____________________
greetings meitoma
meitoma
 
Posts: 87
Joined: Thu Feb 07, 2019 5:54 am

Re: Transtarent as standard for the map ?

Postby Thorsten » Sun Mar 28, 2021 7:33 am

Hello, I have found the right file.


Not... really. Of course you can always change the code to change anything you fancy, but in the event you see that the code is reading in a configuration - with the idea of not having to change the code.

So a much better solution is to make the configuration property /gui/map/transparent persistent.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Transtarent as standard for the map ?

Postby meitoma » Sun Mar 28, 2021 9:18 am

Hello, I don´t have a subfolder /gui/map/. I have only

fg-root/data/gui
____________________
greetings meitoma
meitoma
 
Posts: 87
Joined: Thu Feb 07, 2019 5:54 am

Re: Transtarent as standard for the map ?

Postby meitoma » Sun Mar 28, 2021 9:21 am

Hello, I don´t have a subfolder /gui/map/. I have only

fg-root/data/gui/
- dialogs
- icons
- images
- style

Thanks in advance.
____________________
greetings meitoma
meitoma
 
Posts: 87
Joined: Thu Feb 07, 2019 5:54 am

Re: Transtarent as standard for the map ?

Postby Thorsten » Sun Mar 28, 2021 12:59 pm

You do know what a 'property' is, right? If not, you best look that up in the wiki before anything else, it'll make your life with FG much, much easier to understand that.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: Transtarent as standard for the map ?

Postby meitoma » Mon Mar 29, 2021 4:14 am

Ok, I understand. Thanks so far.
____________________
greetings meitoma
meitoma
 
Posts: 87
Joined: Thu Feb 07, 2019 5:54 am


Return to Flying

Who is online

Users browsing this forum: No registered users and 1 guest