1
1
forked from 0ad/0ad

Revert overlay resizing (forgot about translations) and minor fixes to my last changes.

This was SVN commit r15010.
This commit is contained in:
JoshuaJB 2014-04-26 19:52:56 +00:00
parent 2ae1e16628
commit 9a809c3131
3 changed files with 10 additions and 2 deletions

View File

@ -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()

View File

@ -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>

View File

@ -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;