Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ===========================================================================
- DefaultMessageHandler[KeyEvents.KeyUp] =
- function( pInputStruct:table )
- local uiKey = pInputStruct:GetKey();
- if( uiKey == Keys.VK_ESCAPE ) then
- if( Controls.TopOptionsMenu:IsHidden() ) then
- OpenInGameOptionsMenu();
- return true;
- end
- return false; -- Already open, let it handle it.
- elseif( uiKey == Keys.B and pInputStruct:IsShiftDown() and pInputStruct:IsAltDown() and (not UI.IsFinalRelease()) ) then
- -- DEBUG: Force unhiding
- local msg:string = "***PLAYER Force Bulk unhiding SHIFT+ALT+B ***";
- UI.DataError(msg);
- m_bulkHideTracker = 1;
- BulkHide(false, msg);
- elseif( uiKey == Keys.J and pInputStruct:IsShiftDown() and pInputStruct:IsAltDown() and (not UI.IsFinalRelease()) ) then
- if m_bulkHideTracker < 1 then
- BulkHide(true, "Forced" );
- else
- BulkHide(false, "Forced" );
- end
- ------------- Toggle banners and icons ----------------------
- elseif ( uiKey == Keys.U ) then
- Controls.UnitFlagManager:SetHide( not Controls.UnitFlagManager:IsHidden() );
- UI.PlaySound("Play_UI_Click");
- return true;
- elseif ( uiKey == Keys.L ) then
- Controls.CityBannerManager:SetHide( not Controls.CityBannerManager:IsHidden() );
- UI.PlaySound("Play_UI_Click");
- return true;
- end
- return false;
- end
Advertisement
Add Comment
Please, Sign In to add comment