This repository has been archived on 2021-09-26. You can view files and clone it, but cannot push or open issues or pull requests.
IDG-A32X/AircraftConfig/rendering.xml

156 lines
3.3 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="UTF-8" ?>
2019-01-01 06:03:06 +00:00
<!-- Copyright (c) 2019 Joshua Davidson (it0uchpods) -->
<!-- A3XX Aircraft Config Dialog -->
<PropertyList>
<name>aircraft-config-rendering</name>
<layout>vbox</layout>
<group>
<layout>hbox</layout>
<text>
<halign>left</halign>
<label>Rendering Settings</label>
</text>
<button>
<halign>right</halign>
<pref-width>20</pref-width>
<pref-height>20</pref-height>
<legend>X</legend>
<key>Esc</key>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
<hrule/>
<group>
<layout>vbox</layout>
<text>
<halign>left</halign>
<label>IDG Aircraft Config has detected that rendering settings are not set properly!</label>
</text>
<text>
<halign>left</halign>
<label>This means lighting effects on the exterior and in the virtual cockpit will not be visible.</label>
</text>
<text>
<halign>left</halign>
<label>ALS, and custom shader settings must be on.</label>
</text>
<text>
<halign>left</halign>
<label>Landmass shader must be at least 4 for lightspots to work.</label>
</text>
<text>
<halign>left</halign>
2019-01-25 20:34:35 +00:00
<label>Model shader must be at least 2 for lightmaps to work.</label>
</text>
<hrule/>
<text>
<halign>left</halign>
<label>Would you like IDG Aircraft Config to automatically turn on ALS and fix shader settings?</label>
</text>
<text>
<halign>left</halign>
<label>If the settings do not save after fixing, try quitting FlightGear through File -&gt; Exit after fixing.</label>
</text>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<checkbox>
<label>Do not warn me about rendering settings again</label>
<halign>center</halign>
<property>/systems/acconfig/options/no-rendering-warn</property>
<binding>
<command>property-toggle</command>
<property>/systems/acconfig/options/no-rendering-warn</property>
</binding>
<binding>
<command>dialog-apply</command>
</binding>
<binding>
<command>nasal</command>
<script>
acconfig.writeSettings();
</script>
</binding>
<live>true</live>
</checkbox>
</group>
<hrule/>
<group>
<layout>hbox</layout>
<button>
<halign>center</halign>
<legend>Yes, fix all settings</legend>
<pref-width>180</pref-width>
<binding>
<command>nasal</command>
<script>
acconfig.renderingSettings.fixAll();
</script>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<button>
<halign>center</halign>
<legend>Yes, but I'll fix shaders myself</legend>
<pref-width>180</pref-width>
<binding>
<command>nasal</command>
<script>
acconfig.renderingSettings.fixCore();
</script>
</binding>
<binding> <!-- Close the non-ALS shader dialog if it is open for some bizarre reason -->
<command>dialog-close</command>
<dialog-name>shaders</dialog-name>
</binding>
<binding>
<command>dialog-show</command>
<dialog-name>shaders-lightfield</dialog-name>
</binding>
<binding>
<command>dialog-close</command>
</binding>
</button>
<button>
<halign>center</halign>
<legend>I don't care</legend>
<pref-width>180</pref-width>
<binding>
<command>dialog-close</command>
</binding>
</button>
</group>
</PropertyList>