public ObjectsEditorFilter(Panel displayPanel, RoomSettingsEditor editor, Room room) { _room = room; _panel = displayPanel; _editor = editor; _selectedObject = null; _propertyObjectChangedDelegate = new GUIController.PropertyObjectChangedHandler(GUIController_OnPropertyObjectChanged); RoomItemRefs = new SortedDictionary <string, RoomObject>(); DesignItems = new SortedDictionary <string, DesignTimeProperties>(); InitGameEntities(); }
public CharactersEditorFilter(Panel displayPanel, RoomSettingsEditor editor, Room room, Game game) { _room = room; _panel = displayPanel; _game = game; _editor = editor; _propertyObjectChangedDelegate = new GUIController.PropertyObjectChangedHandler(GUIController_OnPropertyObjectChanged); RoomItemRefs = new SortedDictionary <string, Character>(); DesignItems = new SortedDictionary <string, DesignTimeProperties>(); InitGameEntities(); Components.CharactersComponent cmp = ComponentController.Instance.FindComponent <Components.CharactersComponent>(); if (cmp != null) { cmp.OnCharacterIDChanged += OnCharacterIDChanged; cmp.OnCharacterRoomChanged += OnCharacterRoomChanged; } }
public BaseAreasEditorFilter(Panel displayPanel, RoomSettingsEditor editor, Room room) { if (!_registeredIcons) { Factory.GUIController.RegisterIcon("SelectAreaIcon", Resources.ResourceManager.GetIcon("findarea.ico")); Factory.GUIController.RegisterIcon("DrawLineIcon", Resources.ResourceManager.GetIcon("drawline.ico")); Factory.GUIController.RegisterIcon("DrawFreehandIcon", Resources.ResourceManager.GetIcon("drawfree.ico")); Factory.GUIController.RegisterIcon("DrawRectIcon", Resources.ResourceManager.GetIcon("drawrect.ico")); Factory.GUIController.RegisterIcon("DrawFillIcon", Resources.ResourceManager.GetIcon("drawfill.ico")); Factory.GUIController.RegisterIcon("ImportMaskIcon", Resources.ResourceManager.GetIcon("importmask.ico")); Factory.GUIController.RegisterImage("ExportMaskIcon", Resources.ResourceManager.GetBitmap("exportmask.png")); Factory.GUIController.RegisterIcon("CopyWalkableAreaMaskIcon", Resources.ResourceManager.GetIcon("copymask.ico")); Factory.GUIController.RegisterIcon("GreyedOutMasksIcon", Resources.ResourceManager.GetIcon("greymasks.ico")); _selectCursor = Resources.ResourceManager.GetCursor("findarea.cur"); _lockCursor = Resources.ResourceManager.GetCursor("lock_cur.cur"); _registeredIcons = true; } _tooltip = new ToolTip(); _tooltip.IsBalloon = true; _toolbarIcons = new List <MenuCommand>(); _toolbarIcons.Add(new MenuCommand(SELECT_AREA_COMMAND, "Select area (Ctrl+C)", "SelectAreaIcon")); _toolbarIcons.Add(new MenuCommand(DRAW_LINE_COMMAND, "Line tool (Ctrl+N)", "DrawLineIcon")); _toolbarIcons.Add(new MenuCommand(DRAW_FREEHAND_COMMAND, "Freehand tool (Ctrl+D)", "DrawFreehandIcon")); _toolbarIcons.Add(new MenuCommand(DRAW_RECTANGLE_COMMAND, "Rectangle tool (Ctrl+E)", "DrawRectIcon")); _toolbarIcons.Add(new MenuCommand(DRAW_FILL_COMMAND, "Fill area (Ctrl+F)", "DrawFillIcon")); _toolbarIcons.Add(new MenuCommand(UNDO_COMMAND, "Undo (Ctrl+Z)", "UndoIcon")); _toolbarIcons.Add(new MenuCommand(IMPORT_MASK_COMMAND, "Import mask from file", "ImportMaskIcon")); _toolbarIcons.Add(new MenuCommand(EXPORT_MASK_COMMAND, "Export mask to file", "ExportMaskIcon")); _toolbarIcons.Add(new MenuCommand(COPY_WALKABLE_AREA_MASK_COMMAND, "Copy walkable area mask to regions", "CopyWalkableAreaMaskIcon")); _toolbarIcons.Add(new MenuCommand(GREYED_OUT_MASKS_COMMAND, "Show non-selected masks greyed out", "GreyedOutMasksIcon")); _toolbarIcons[(int)_drawMode].Checked = true; _toolbarIcons[TOOLBAR_INDEX_GREY_OUT_MASKS].Checked = _greyedOutMasks; _room = room; _panel = displayPanel; _editor = editor; _propertyObjectChangedDelegate = new GUIController.PropertyObjectChangedHandler(GUIController_OnPropertyObjectChanged); UpdateUndoButtonEnabledState(); RoomItemRefs = new SortedDictionary <string, int>(); DesignItems = new SortedDictionary <string, DesignTimeProperties>(); InitGameEntities(); }
public WalkableAreasEditorFilter(Panel displayPanel, RoomSettingsEditor editor, Room room) : base(displayPanel, editor, room) { }
public RegionsEditorFilter(Panel displayPanel, RoomSettingsEditor editor, Room room) : base(displayPanel, editor, room) { }
public WalkBehindsEditorFilter(Panel displayPanel, RoomSettingsEditor editor, Room room) : base(displayPanel, editor, room) { }