Ticket #3155: developer-overlay-only-with-cheats.patch
File developer-overlay-only-with-cheats.patch, 916 bytes (added by , 9 years ago) |
---|
-
binaries/data/mods/public/gui/session/menu.js
658 658 659 659 function toggleDeveloperOverlay() 660 660 { 661 // The developer overlay is disabled in ranked games662 if ( Engine.HasXmppClient() && Engine.IsRankedGame())661 // Disable developer overlay if cheats are inactive 662 if (!g_Players[Engine.GetPlayerID()].cheatsEnabled) 663 663 return; 664 664 665 665 var devCommands = Engine.GetGUIObjectByName("devCommands"); … … 667 667 submitChatDirectly(translate("The Developer Overlay was opened.")); 668 668 else 669 669 submitChatDirectly(translate("The Developer Overlay was closed.")); 670 670 671 // Toggle the overlay 671 672 devCommands.hidden = !devCommands.hidden; 672 673 }