Revert overlay resizing (forgot about translations) and minor fixes to my last changes.
This was SVN commit r15010.
This commit is contained in:
parent
2ae1e16628
commit
9a809c3131
@ -675,6 +675,8 @@ function toggleDeveloperOverlay()
|
|||||||
submitChatDirectly(translate("The Developer Overlay was closed."));
|
submitChatDirectly(translate("The Developer Overlay was closed."));
|
||||||
// Update the options dialog
|
// Update the options dialog
|
||||||
devCommands.hidden = !devCommands.hidden;
|
devCommands.hidden = !devCommands.hidden;
|
||||||
|
// Save the changes
|
||||||
|
Engine.ConfigDB_CreateValue("user", "developeroverlay.enable", String(!devCommands.hidden) );
|
||||||
}
|
}
|
||||||
|
|
||||||
function closeOpenDialogs()
|
function closeOpenDialogs()
|
||||||
|
@ -239,10 +239,10 @@
|
|||||||
/>
|
/>
|
||||||
|
|
||||||
<!-- Dev/cheat commands -->
|
<!-- Dev/cheat commands -->
|
||||||
<object name="devCommands" size="100%-125 50%-88 100%-8 50%+104" type="image" sprite="devCommandsBackground" z="40"
|
<object name="devCommands" size="100%-225 50%-88 100%-8 50%+104" type="image" sprite="devCommandsBackground" z="40"
|
||||||
hidden="true" hotkey="session.devcommands.toggle">
|
hidden="true" hotkey="session.devcommands.toggle">
|
||||||
<action on="Press">toggleDeveloperOverlay();</action>
|
<action on="Press">toggleDeveloperOverlay();</action>
|
||||||
<action on="tick">
|
<action on="Tick">
|
||||||
if (this.hidden != (Engine.ConfigDB_GetValue("user", "developeroverlay.enable") === "false"))
|
if (this.hidden != (Engine.ConfigDB_GetValue("user", "developeroverlay.enable") === "false"))
|
||||||
toggleDeveloperOverlay();
|
toggleDeveloperOverlay();
|
||||||
</action>
|
</action>
|
||||||
|
@ -724,6 +724,12 @@ void CRenderer::SetOptionBool(enum Option opt,bool value)
|
|||||||
case OPT_SHOWSKY:
|
case OPT_SHOWSKY:
|
||||||
m_Options.m_ShowSky = value;
|
m_Options.m_ShowSky = value;
|
||||||
break;
|
break;
|
||||||
|
case OPT_SMOOTHLOS:
|
||||||
|
m_Options.m_SmoothLOS = value;
|
||||||
|
break;
|
||||||
|
case OPT_POSTPROC:
|
||||||
|
m_Options.m_Postproc = value;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
debug_warn(L"CRenderer::SetOptionBool: unknown option");
|
debug_warn(L"CRenderer::SetOptionBool: unknown option");
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user