41 | | <action on="Load">this.checked = Engine.Renderer_GetShadowPCFEnabled();</action> |
42 | | <action on="Press">Engine.Renderer_SetShadowPCFEnabled(this.checked);</action> |
| 53 | <action on="Load"> |
| 54 | Engine.ConfigDB_GetValue("user", "shadowpcf") === "true" ? this.checked = true : this.checked = false; |
| 55 | </action> |
| 56 | <action on="Press"> |
| 57 | Engine.Renderer_SetShadowPCFEnabled(this.checked); |
| 58 | Engine.ConfigDB_CreateValue("user", "shadowpcf", String(this.checked)); |
| 59 | </action> |
| 60 | </object> |
| 61 | |
| 62 | <object size="0 75 65% 100" type="text" style="RightLabelText" ghost="true">Normal water</object> |
| 63 | <object name="normalWaterCFG" size="70% 80 70%+25 105" type="checkbox" style="StoneCrossBox"> |
| 64 | <action on="Load"> |
| 65 | Engine.ConfigDB_GetValue("user", "waternormals") === "true" ? this.checked = true : this.checked = false; |
| 66 | </action> |
| 67 | <action on="Press"> |
| 68 | Engine.Renderer_SetWaterNormalEnabled(this.checked); |
| 69 | Engine.ConfigDB_CreateValue("user", "waternormals", String(this.checked)); |
| 70 | </action> |
| 71 | </object> |
| 72 | |
| 73 | <object size="0 100 65% 125" type="text" style="RightLabelText" ghost="true">Real depth water</object> |
| 74 | <object name="realDepthWaterCFG" size="70% 105 70%+25 130" type="checkbox" style="StoneCrossBox"> |
| 75 | <action on="Load"> |
| 76 | Engine.ConfigDB_GetValue("user", "waterrealdepth") === "true" ? this.checked = true : this.checked = false; |
| 77 | </action> |
| 78 | <action on="Press"> |
| 79 | Engine.Renderer_SetWaterRealDepthEnabled(this.checked); |
| 80 | Engine.ConfigDB_CreateValue("user", "waterrealdepth", String(this.checked)); |
| 81 | </action> |
| 82 | </object> |
| 83 | |
| 84 | <object size="0 125 65% 150" type="text" style="RightLabelText" ghost="true">Water foam</object> |
| 85 | <object name="waterFoamCFG" size="70% 130 70%+25 155" type="checkbox" style="StoneCrossBox"> |
| 86 | <action on="Load"> |
| 87 | Engine.ConfigDB_GetValue("user", "waterfoam") === "true" ? this.checked = true : this.checked = false; |
| 88 | </action> |
| 89 | <action on="Press"> |
| 90 | Engine.Renderer_SetWaterFoamEnabled(this.checked); |
| 91 | Engine.ConfigDB_CreateValue("user", "waterfoam", String(this.checked)); |
| 92 | </action> |
| 93 | </object> |
| 94 | |
| 95 | <object size="0 150 65% 175" type="text" style="RightLabelText" ghost="true">Coastal Waves</object> |
| 96 | <object name="coastalWavesCFG" size="70% 155 70%+25 180" type="checkbox" style="StoneCrossBox"> |
| 97 | <action on="Load"> |
| 98 | Engine.ConfigDB_GetValue("user", "watercoastalwaves") === "true" ? this.checked = true : this.checked = false; |
| 99 | </action> |
| 100 | <action on="Press"> |
| 101 | Engine.Renderer_SetWaterCoastalWavesEnabled(this.checked); |
| 102 | Engine.ConfigDB_CreateValue("user", "watercoastalwaves", String(this.checked)); |
| 103 | </action> |
| 104 | </object> |
| 105 | |
| 106 | <object size="0 175 65% 200" type="text" style="RightLabelText" ghost="true">Water reflection</object> |
| 107 | <object name="waterReflectionCFG" size="70% 180 70%+25 205" type="checkbox" style="StoneCrossBox"> |
| 108 | <action on="Load"> |
| 109 | Engine.ConfigDB_GetValue("user", "waterreflection") === "true" ? this.checked = true : this.checked = false; |
| 110 | </action> |
| 111 | <action on="Press"> |
| 112 | Engine.Renderer_SetWaterReflectionEnabled(this.checked); |
| 113 | Engine.ConfigDB_CreateValue("user", "waterreflection", String(this.checked)); |
| 114 | </action> |
| 115 | </object> |
| 116 | |
| 117 | <object size="0 200 65% 225" type="text" style="RightLabelText" ghost="true">Water refraction</object> |
| 118 | <object name="waterRefractionCFG" size="70% 205 70%+25 230" type="checkbox" style="StoneCrossBox"> |
| 119 | <action on="Load"> |
| 120 | Engine.ConfigDB_GetValue("user", "waterrefraction") === "true" ? this.checked = true : this.checked = false; |
| 121 | </action> |
| 122 | <action on="Press"> |
| 123 | Engine.Renderer_SetWaterReafraction(this.checked); |
| 124 | Engine.ConfigDB_CreateValue("user", "waterrefraction", String(this.checked)); |
| 125 | </action> |
| 127 | |
| 128 | <object size="0 225 65% 250" type="text" style="RightLabelText" ghost="true">Water shadows</object> |
| 129 | <object name="waterShadowsCFG" size="70% 230 70%+25 255" type="checkbox" style="StoneCrossBox"> |
| 130 | <action on="Load"> |
| 131 | Engine.ConfigDB_GetValue("user", "watershadows") === "true" ? this.checked = true : this.checked = false; |
| 132 | </action> |
| 133 | <action on="Press"> |
| 134 | Engine.Renderer_SetWaterShadowEnabled(this.checked); |
| 135 | Engine.ConfigDB_CreateValue("user", "watershadows", String(this.checked)); |
| 136 | </action> |
| 137 | </object> |
| 138 | |
| 139 | <object size="0 250 65% 275" type="text" style="RightLabelText" ghost="true">Particles</object> |
| 140 | <object name="particlesCFG" size="70% 255 70%+25 280" type="checkbox" style="StoneCrossBox"> |
| 141 | <action on="Load"> |
| 142 | Engine.ConfigDB_GetValue("user", "particles") === "true" ? this.checked = true : this.checked = false; |
| 143 | </action> |
| 144 | <action on="Press"> |
| 145 | Engine.Renderer_SetParticlesEnabled(this.checked); |
| 146 | Engine.ConfigDB_CreateValue("user", "particles", String(this.checked)); |
| 147 | </action> |
| 148 | </object> |
| 149 | |
| 150 | <object size="0 275 65% 300" type="text" style="RightLabelText" ghost="true">Silhouettes</object> |
| 151 | <object name="silhouettesCFG" size="70% 280 70%+25 305" type="checkbox" style="StoneCrossBox"> |
| 152 | <action on="Load"> |
| 153 | Engine.ConfigDB_GetValue("user", "silhouettes") === "true" ? this.checked = true : this.checked = false; |
| 154 | </action> |
| 155 | <action on="Press"> |
| 156 | Engine.Renderer_SetSilhouettesEnabled(this.checked); |
| 157 | Engine.ConfigDB_CreateValue("user", "silhouettes", String(this.checked)); |
| 158 | </action> |
| 159 | </object> |
| 160 | |
| 161 | <object size="0 300 65% 325" type="text" style="RightLabelText" ghost="true">Show sky</object> |
| 162 | <object name="showSkyCFG" size="70% 305 70%+25 330" type="checkbox" style="StoneCrossBox"> |
| 163 | <action on="Load"> |
| 164 | Engine.ConfigDB_GetValue("user", "showsky") === "true" ? this.checked = true : this.checked = false; |
| 165 | </action> |
| 166 | <action on="Press"> |
| 167 | Engine.Renderer_SetShowSkyEnabled(this.checked); |
| 168 | Engine.ConfigDB_CreateValue("user", "showsky", String(this.checked)); |
| 169 | </action> |
| 170 | </object> |
| 171 | |
| 172 | <object size="0 325 65% 350" type="text" style="RightLabelText" ghost="true">Use OpenGL VBO</object> |
| 173 | <object name="noGLVBOCFG" size="70% 330 70%+25 355" type="checkbox" style="StoneCrossBox"> |
| 174 | <action on="Load"> |
| 175 | if (Engine.Renderer_GetGLVBOAvailable()) { |
| 176 | Engine.ConfigDB_GetValue("user", "novbo") === "true" ? this.checked = false : this.checked = true; |
| 177 | } else { |
| 178 | this.enabled = false; |
| 179 | this.checked = false; |
| 180 | } |
| 181 | </action> |
| 182 | <action on="Press"> |
| 183 | Engine.Renderer_SetWaterRealDepthEnabled(this.checked); |
| 184 | Engine.ConfigDB_CreateValue("user", "novbo", String(this.checked)); |
| 185 | </action> |
| 186 | </object> |
| 187 | |
63 | | Settings / shadows |
64 | | <object size="0 10 100%-80 35" type="text" style="RightLabelText" ghost="true">Enable Shadows</object> |
65 | | <object name="shadowsCheckbox" size="100%-56 15 100%-30 40" type="checkbox" style="StoneCrossBox" checked="true"> |
66 | | <action on="Load">this.checked = Engine.Renderer_GetShadowsEnabled();</action> |
67 | | <action on="Press">Engine.Renderer_SetShadowsEnabled(this.checked);</action> |
68 | | </object> |
69 | | Settings / Shadow PCF |
70 | | <object size="0 35 100%-80 60" type="text" style="RightLabelText" ghost="true">Enable Shadow Filtering</object> |
71 | | <object name="shadowPCFCheckbox" size="100%-56 40 100%-30 65" type="checkbox" style="StoneCrossBox" checked="true"> |
72 | | <action on="Load">this.checked = Engine.Renderer_GetShadowPCFEnabled();</action> |
73 | | <action on="Press">Engine.Renderer_SetShadowPCFEnabled(this.checked);</action> |
74 | | </object> |
75 | | |
76 | | Settings / Water |
77 | | <object size="0 60 100%-80 85" type="text" style="RightLabelText" ghost="true">Enable Water Reflections</object> |
78 | | <object name="fancyWaterCheckbox" size="100%-56 65 100%-30 90" type="checkbox" style="StoneCrossBox" checked="true"> |
79 | | <action on="Load">this.checked = Engine.Renderer_GetWaterNormalEnabled();</action> |
80 | | <action on="Press">Engine.Renderer_SetWaterNormalEnabled(this.checked);</action> |
81 | | </object> |
82 | | |