Beispiel #1
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

            if (openingInfo == null)
                return;

            if (!openingInfo.IsValid(1))
                return;

            String mode = openingInfo.GetMode();

            switch (mode)
            {
                case "TileManEditMode":

                    String tileType = openingInfo.GetArg<String>("Type");
                    String textureType = openingInfo.GetArg<String>("TextureType");

                    OldType = tileType;

                    TypeTextBox.TextBox.Reset(tileType);
                    TextureButton.Text = textureType;

                    TypeTextBox.TextBox.TextAdded += new TextAddedEventHandler(TextBox_TextAdded);

                    Closed += new CloseEventHandler(TileCreator_Closed);

                    break;
            }
        }
Beispiel #2
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

            if (openingInfo == null)
                return;

            if (!openingInfo.IsModeValid())
                return;

            switch (OpeningMode = openingInfo.GetMode())
            {
                case "EventCreator_Edit_Mode":

                    BlazeraLib.Action action = openingInfo.GetArg<BlazeraLib.Action>("Action");
                    TypeDownList.DownList.SetCurrent(action.Type.ToString());

                    switch (action.Type)
                    {
                        case ActionType.Warp:
                            WarpActionBox.SetSettings((WarpAction)action);
                            break;
                    }

                    break;
            }
        }
Beispiel #3
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

            if (openingInfo == null)
                return;

            if (!openingInfo.IsModeValid())
                return;

            switch (OpeningMode = openingInfo.GetMode())
            {
                case "BoundingBoxCreator_Edit_Mode":

                    CurrentEditedEvent = openingInfo.GetArg<ObjectEvent>("Event");

                    TypeDownList.DownList.SetCurrent(CurrentEditedEvent.Type.ToString());
                    if (CurrentEditedEvent.ActionKeyMode)
                    {
                        ActionKeyModeCheckBox.SetIsChecked(true);
                        ActionKeyDownList.DownList.SetCurrent(CurrentEditedEvent.ActionKey.ToString());
                    }

                    foreach (BlazeraLib.Action action in CurrentEditedEvent.Actions)
                        AddAction(action);

                    break;
            }
        }
Beispiel #4
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

            if (openingInfo == null)
                return;

            if (!openingInfo.IsModeValid())
                return;

            switch (OpeningMode = openingInfo.GetMode())
            {
                case "TileSetMan_Edit_Mode":

                    TypeTextBox.TextBox.Reset(openingInfo.GetArg<String>("TileSetType"));
                    TileSelector.SetTileSet(openingInfo.GetArg<TileSet>("TileSet"));

                    break;
            }
        }