示例#1
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;
            }
        }
示例#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;
            }
        }
示例#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 "TileSetMan_Edit_Mode":

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

                    break;
            }
        }