mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
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:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user