Skip to content

Swedish textures on cockpit controls and panels. #66

Description

@NikolaiVChr

Idea by Albin Stigö. This can be done by having duplicate textures for each control/panel.

For example when I want to make a panel having dual texture I first find the xml file that loads the AC3D file for the panel.

Then I add this to that xml file for a AC file that has an object called 'panel' which has a texture called Aircraft/JA37/Models/Instruments/Radar/radar-panel.png:

<animation>
        <type>material</type>
        <object-name>panel</object-name>
        <property-base>ja37/language</property-base>
        <texture-prop>textureRadarPanel</texture-prop>
        <texture>radar-panel.png</texture>
    </animation>

Then in Nasal/ja37.nas I go to the line called if (me.currentUnit) { and add a pair of setprops for swedish and english name of texture. Later on when many textures use this, can refactor this code as it will be sizeable.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions