20,741
edits
Line 994: | Line 994: | ||
{{WIP}} | {{WIP}} | ||
You can find more sophisticated examples in the Airbus style created by Artix, he also had to touch a bunch of MapStructure files to make that work. | You can find more sophisticated examples in the Airbus style created by Artix, he also had to touch a bunch of MapStructure files to make that work. | ||
For a list of MapStructure files (meanwhile incomplete), see: [[Canvas MapStructure Layers]] | |||
Once you have found a layer that is not yet style-able, you need to encode style-able attributes using the relevant_keys vector.<ref>{{cite web | |||
|url = https://forum.flightgear.org/viewtopic.php?p=297586#p297586 | |||
|title = <nowiki> Re: [SOLVED] How to modify symbols in MapStructure layers </nowiki> | |||
|author = <nowiki> Hooray </nowiki> | |||
|date = Oct 27th, 2016 | |||
|added = Oct 27th, 2016 | |||
|script_version = 0.40 | |||
}}</ref> | |||
For example, open the VOR.symbol file and see how it sets up a default style hash (df_style) here: https://sourceforge.net/p/flightgear/fgdata/ci/next/tree/Nasal/canvas/map/VOR.symbol<ref>{{cite web | |||
|url = https://forum.flightgear.org/viewtopic.php?p=297586#p297586 | |||
|title = <nowiki> Re: [SOLVED] How to modify symbols in MapStructure layers </nowiki> | |||
|author = <nowiki> Hooray </nowiki> | |||
|date = Oct 27th, 2016 | |||
|added = Oct 27th, 2016 | |||
|script_version = 0.40 | |||
}}</ref> | |||
In the drawVOR callback it is then using those variables (as per the hash). | In the drawVOR callback it is then using those variables (as per the hash). | ||