Пример #1
0
        public SkillEditor(LotuzForm editor)
        {
            Editor = editor;
            InitializeComponent();

            LoadSkills();
        }
Пример #2
0
        public EnemyEditorForm(LotuzForm parent)
        {
            InitializeComponent();

            Editor = parent;
            spriteSelectionControl1.Editor = Editor;
            spritePreviewControl1.Editor = Editor;

            cbbActionType.DataSource = Enum.GetNames(typeof(ActionType));
            cbbConditionType.DataSource = Enum.GetNames(typeof(ConditionType));
            cbbConditionTarget.DataSource = Enum.GetNames(typeof(ConditionTarget));
            cbbNewBehavior.DataSource = Enum.GetNames(typeof(BehaviorType));
            cbbDefaultBehavior.DataSource = Enum.GetNames(typeof(BehaviorType));
            spriteSelectionControl1.SelectedIndexChanged += new SpriteSelectionControl.SelectedIndexChangedHandler(spriteSelectionControl1_SelectedIndexChanged);
            lbxItems.DataSource = null;
            lbxItems.DisplayMember = "Name";
            lbxItems.ValueMember = "Id";
            lbxItems.DataSource = Editor.Project.Items;

            lbxActions.DisplayMember = "Label";

            spriteAnimationTimer.Start();

            LoadEnemies();
            LoadSkills();

            enemyDetailsTabs.Enabled = false;
        }
Пример #3
0
        public SpriteEditor(LotuzForm editor)
        {
            Editor = editor;

            InitializeComponent();
            LoadItems(lbxSprites, Editor.SpriteCollection);
            cbbAnimationType.DataSource = Enum.GetNames(typeof(AnimationType));
        }
Пример #4
0
 public QuestEditor(LotuzForm editor)
 {
     Editor = editor;
     InitializeComponent();
     cbbGoalType.DataSource = Enum.GetNames(typeof(QuestGoalType));
     LoadGoalItems();
     LoadGoalCreatures();
     LoadQuestList();
 }
        public ObjectEditorForm(LotuzForm editor)
        {
            Editor = editor;
            InitializeComponent();

            LoadObjects();
            LoadAssetList();
            UpdateTilesetPreviewSize();
        }
Пример #6
0
        public NpcEditorForm(LotuzForm editor)
        {
            Editor = editor;

            InitializeComponent();

            LoadDialogFunctionOptions();
            LoadDialogOpeningTypes();
            LoadItems(lbxNpcs, Npcs);
        }
Пример #7
0
        public ItemEditorForm(LotuzForm editor)
        {
            Editor = editor;
            SelectedItemIndex = -1;
            SelectedTextureIndex = -1;

            InitializeComponent();
            cbbNewItemType.Items.AddRange(Enum.GetNames(typeof(ItemTypes)));
            cbbEquipType.DataSource = Enum.GetNames(typeof(EquipmentTypes));

            LoadAssetList();
            LoadItems();
        }
Пример #8
0
        public TilesetEditor(LotuzForm editor)
        {
            Editor = editor;

            InitializeComponent();

            lbxTilesetFiles.Enabled = false;

            LoadTilesets();
            LoadTilesetFiles();

            txtName.LostFocus += TxtName_LostFocus;
            txtColumns.LostFocus += TxtColumns_LostFocus;
            txtSize.LostFocus += TxtSize_LostFocus;

            tilesetPreviewControl.Zoom = 1;

            UpdateTilesetPreviewSize();
        }
Пример #9
0
 public ClassEditor(LotuzForm editor)
 {
     Editor = editor;
     InitializeComponent();
 }