Some inconsequential style adjustments.

This was SVN commit r14809.
This commit is contained in:
JoshuaJB 2014-03-06 02:24:06 +00:00
parent ef76d24e66
commit 8f30e722ab
2 changed files with 64 additions and 81 deletions

View File

@ -35,14 +35,6 @@
<!-- HOTKEYS (For some reason, they won't work properly unless outside menu) -->
<!-- ================================ ================================ -->
<!-- Exit button Hotkey -->
<!--
<action on="Press"><![CDATA[
messageBox(400, 200, "Do you really want to quit?", "Confirmation", 0,
["Yes", "No!"], [leaveGame, null]);
]]></action>
-->
<object hotkey="leave">
<action on="Press">closeOpenDialogs();</action>
</object>
@ -232,6 +224,7 @@
<object hotkey="selection.cancel">
<action on="Press">clearSelection()</action>
</object>
<!-- ================================ ================================ -->
<!-- Developer / Debug items -->
<!-- ================================ ================================ -->
@ -1330,11 +1323,8 @@
</repeat>
</object>
</object>
</object> <!-- END OF UNIT COMMANDS -->
</object><!-- END OF BOTTOM PANEL -->
</object> <!-- END OF SN OBJECT -->
<!-- ================================ ================================ -->
@ -1355,7 +1345,6 @@
<object size="0 0 100% 100%" type="text" style="CenteredButtonText" name="disconnectedExitButtonText" ghost="true">Exit</object>
<action on="Press">leaveGame()</action>
</object>
</object>
</objects>

View File

@ -151,18 +151,14 @@ void CMiniMap::HandleMessage(SGUIMessage &Message)
case GUIM_MOUSE_RELEASE_LEFT:
{
if(m_MouseHovering && m_Clicking)
{
SetCameraPos();
}
m_Clicking = false;
break;
}
case GUIM_MOUSE_DBLCLICK_LEFT:
{
if(m_MouseHovering && m_Clicking)
{
SetCameraPos();
}
m_Clicking = false;
break;
}
@ -190,9 +186,7 @@ void CMiniMap::HandleMessage(SGUIMessage &Message)
case GUIM_MOUSE_MOTION:
{
if (m_MouseHovering && m_Clicking)
{
SetCameraPos();
}
break;
}
case GUIM_MOUSE_WHEEL_DOWN: