public void OnMenuInfo() { infoMode = true; cursorAni.Background = "[email protected]?20-23"; cursorAni.Background.Animation.Progressive = false; menu.RemoveLine(0); menu.AddLine(0, "@burn?360", (CommandHandler)OnMenuTravel); }
public MapScene(Module App) : base(App) { Size = app.Engine.GameResolution; view = new ClassicMapView(this, App); view.Position = new Vector2(16, 0); view.Size = new Vector2(Size.x - 32, Size.y - 40); //view.Position = new Vector2(0, 0); //view.Size = new Vector2(Size.x, Size.y - 16); view.Overlays.Add(new Maps.MapViewOverlayFlags(app)); view.Overlays.Add(new Maps.MapViewOverlayPlayer(app)); view.Overlays.Add(new Maps.MapViewOverlayHoverText(app)); view.Scroll += new EventHandler <MapScrollArgs>(view_Scroll); Windows += view; menu = new MenuWindow(App); menu.Layer += 50; menu.AddLine("@burn?351", (CommandHandler)OnMenuInfo); menu.AddLine("@burn?367", (CommandHandler)OnMenuInventory); menu.AddLine("@burn?359", (CommandHandler)OnMenuStatistics); menu.AddLine("@burn?361", (CommandHandler)OnMenuOptions); menu.AddLine("@burn?357", (CommandHandler)OnMenuTurn); menu.Hide(); Windows += menu; cursorAni = new Image(App); cursorAni.Background = "[email protected]?24-27"; cursorAni.Background.Animation.Progressive = false; cursorAni.Layer += 59; Windows += cursorAni; gui = new MapGuiWindow(App); gui.Layer += 60; Windows += gui; BurntimeClassic classic = app as BurntimeClassic; debugNoTravel = classic.Settings["debug"].GetBool("no_travel") && classic.Settings["debug"].GetBool("enable_cheats"); }
void ShowMenu(Vector2 position) { menu.Clear(); if (!view.Location.IsCity) { menu.AddLine("@burn?351", (CommandHandler)OnMenuInfo); if (fightMode) { menu.AddLine("@burn?350", (CommandHandler)OnMenuSpeak); } else { menu.AddLine("@burn?352", (CommandHandler)OnMenuFight); } } if (view.Player.Group.Count > 1) { if (!view.Player.SingleMode) { menu.AddLine("@burn?358", (CommandHandler)OnMenuSingle); } else { menu.AddLine("@burn?356", (CommandHandler)OnMenuAll); } } if (charOverlay.SelectedCharacter != view.Player.Character) { menu.AddLine("@burn?363", (CommandHandler)OnMenuDismiss); if (view.Player.Group.Contains(charOverlay.SelectedCharacter)) { menu.AddLine("@burn?364", (CommandHandler)OnMenuMakeCamp); } else { menu.AddLine("@burn?365", (CommandHandler)OnMenuLeaveCamp); } } menu.AddLine("@burn?362", (CommandHandler)OnMenuMap); menu.AddLine("@burn?367", (CommandHandler)OnMenuInventory); menu.AddLine("@burn?357", (CommandHandler)OnMenuTurn); menu.Show(position, view.Boundings); }