protected SpawnEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine) { Editor = editor; SpawnPoint = spawnPoint; Figurine = figurine; KeepOpen = true; }
protected SpawnEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine) { this.Editor = editor; this.SpawnPoint = spawnPoint; this.Figurine = figurine; this.KeepOpen = true; }
public SpawnPointEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine) : base(editor, spawnPoint, figurine) { this.AddItem((GossipMenuItemBase) new LocalizedGossipMenuItem( (GossipActionHandler)(convo => this.MoveTo(convo.Character)), RealmLangKey.EditorSpawnPointMenuMoveOverHere, new object[0])); this.AddQuitMenuItem(RealmLangKey.Done); }
public SpawnPointEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine) : base(editor, spawnPoint, figurine) { AddItem(new LocalizedGossipMenuItem( convo => MoveTo(convo.Character), RealmLangKey.EditorSpawnPointMenuMoveOverHere)); AddQuitMenuItem(RealmLangKey.Done); }
/// <summary>Called periodically on editing Characters</summary> private void UpdateCallback(WorldObject obj) { Character chr = (Character)obj; if (obj.Map != Map || !obj.IsInWorld) { Leave(chr); } else { EditorArchitectInfo architectInfo = MapEditorMgr.GetOrCreateArchitectInfo(chr); EditorFigurine target = chr.Target as EditorFigurine; if (architectInfo.CurrentTarget == target) { return; } EditorFigurine editorFigurine = target; architectInfo.CurrentTarget = editorFigurine; } }
public WaypointEditorMenu(MapEditor editor, NPCSpawnPoint spawnPoint, EditorFigurine figurine) : base(editor, spawnPoint, figurine) { }