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."));
|
||||
// Update the options dialog
|
||||
devCommands.hidden = !devCommands.hidden;
|
||||
// Save the changes
|
||||
Engine.ConfigDB_CreateValue("user", "developeroverlay.enable", String(!devCommands.hidden) );
|
||||
}
|
||||
|
||||
function closeOpenDialogs()
|
||||
|
@ -239,10 +239,10 @@
|
||||
/>
|
||||
|
||||
<!-- 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">
|
||||
<action on="Press">toggleDeveloperOverlay();</action>
|
||||
<action on="tick">
|
||||
<action on="Tick">
|
||||
if (this.hidden != (Engine.ConfigDB_GetValue("user", "developeroverlay.enable") === "false"))
|
||||
toggleDeveloperOverlay();
|
||||
</action>
|
||||
|
@ -724,6 +724,12 @@ void CRenderer::SetOptionBool(enum Option opt,bool value)
|
||||
case OPT_SHOWSKY:
|
||||
m_Options.m_ShowSky = value;
|
||||
break;
|
||||
case OPT_SMOOTHLOS:
|
||||
m_Options.m_SmoothLOS = value;
|
||||
break;
|
||||
case OPT_POSTPROC:
|
||||
m_Options.m_Postproc = value;
|
||||
break;
|
||||
default:
|
||||
debug_warn(L"CRenderer::SetOptionBool: unknown option");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user