bool HandleNonClassicKey(Key key) { if (key == Keys[KeyBind.HideGui]) { game.HideGui = !game.HideGui; } else if (key == Keys[KeyBind.SmoothCamera]) { Toggle(key, ref game.SmoothCamera, " &eSmooth camera is &aenabled", " &eSmooth camera is &cdisabled"); } else if (key == Keys[KeyBind.AxisLines]) { Toggle(key, ref game.ShowAxisLines, " &eAxis lines (&4X&e, &2Y&e, &1Z&e) now show", " &eAxis lines no longer show"); } else if (key == Keys[KeyBind.Autorotate]) { Toggle(key, ref game.AutoRotate, " &eAuto rotate is &aenabled", " &eAuto rotate is &cdisabled"); } else if (key == Keys[KeyBind.ThirdPerson]) { game.CycleCamera(); } else if (key == game.Mapping(KeyBind.DropBlock)) { Inventory inv = game.Inventory; if (inv.CanChangeSelected() && inv.Selected != Block.Air) { // Don't assign Selected directly, because we don't want held block // switching positions if they already have air in their inventory hotbar. inv[inv.SelectedIndex] = Block.Air; Events.RaiseHeldBlockChanged(); } } else if (key == Keys[KeyBind.IDOverlay]) { if (game.Gui.overlays.Count > 0) { return(true); } game.Gui.ShowOverlay(new TexIdsOverlay(game), false); } else if (key == Keys[KeyBind.BreakableLiquids]) { Toggle(key, ref game.BreakableLiquids, " &eBreakable liquids is &aenabled", " &eBreakable liquids is &cdisabled"); } else { return(false); } return(true); }