Merged from revision: 7678

Editor Fixes (by Buggler):
- '~' (tilde) hotkey to toggle level cursor if applicable; CTRL hotkey for placing objects on roof removed 
- Fixed missing roof cursor for non-vanilla size maps
- Updated editor popup text

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7679 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2014-12-09 15:57:15 +00:00
parent eaa153b310
commit eebb57ed38
12 changed files with 55 additions and 27 deletions
+25
View File
@@ -774,6 +774,8 @@ BOOLEAN DrawTempMouseCursorObject(void)
{
if ( (iCurBankMapIndex = MAPROWCOLTOPOS( sMouseY_M, sMouseX_M )) < 0x80000000 )
{
if( gfRoofPlacement && FlatRoofAboveGridNo( iCurBankMapIndex ) )
iCurBankMapIndex += ROOF_OFFSET;
//Hook into the smart methods to override the selection window methods.
if( iDrawMode == DRAW_MODE_SMART_WALLS )
@@ -1709,6 +1711,29 @@ void HandleKeyboardShortcuts( )
iCurrentAction = ACTION_SHADE_DWN;
break;
case '`':
// Buggler: Swap Cursor Level
if( !gfRoofPlacement )
{
gfRoofPlacement = TRUE;
if( !fBuildingShowRoofs )
{
fBuildingShowRoofs = TRUE;
ClickEditorButton( BUILDING_TOGGLE_ROOF_VIEW );
}
}
else
{
gfRoofPlacement = FALSE;
if( fBuildingShowRoofs )
{
fBuildingShowRoofs = FALSE;
UnclickEditorButton( BUILDING_TOGGLE_ROOF_VIEW );
}
}
UpdateRoofsView();
break;
case '0':
case '1':
case '2':