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

            if (!MapMan.Instance.WarpPointAreShown())
                Close();
        }
Beispiel #2
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 #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 "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 #4
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

            if (openingInfo == null || !openingInfo.IsValid())
                return;

            NameTextBox.TextBox.Reset(openingInfo.GetArg<String>("Name"));
            CurrentPoint = openingInfo.GetArg<Vector2f>("Point");
            PointButton.Text = PointCreator.Instance.PointToString(CurrentPoint);
            DirectionDownList.DownList.SetCurrent(openingInfo.GetArg<Direction>("Direction").ToString());
            DefaultCheckBox.SetIsChecked(openingInfo.GetArg<Boolean>("Default"));
        }
Beispiel #5
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

            if (openingInfo == null)
                return;

            if (!openingInfo.IsValid())
                return;

            TextureToRemove = openingInfo.GetArg<String>("TextureToRemove");
            ImageToRemove = openingInfo.GetArg<String>("ImageToRemove");

            ConfirmationLabel.Text = ConfirmationDialogBox.Instance.GetDeletionStr("Texture", TextureToRemove);
        }
Beispiel #6
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 #7
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;
            }
        }
Beispiel #8
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            if (openingInfo == null)
                openingInfo = new OpeningInfo(true);

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

            if (ScrollBox == null)
                return;

            ScrollBox.Close();
        }
Beispiel #10
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

            if (ExtendedItems == null)
                return;

            foreach (Widget widget in ExtendedItems)
                widget.Open(openingInfo);
        }
Beispiel #11
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

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

            if (openingInfo == null)
                return;

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

            String mode = openingInfo.GetArg<String>("Mode");

            switch (mode)
            {
                case "PointCreatorMode":

                    ToolMainBox.Seal();
                    Closed += new CloseEventHandler(MapHandler_Closed);
                    TmpCurrentTool = CurrentTool;
                    CurrentTool = null;

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

            if (Combat == null)
                return;

            if (!Combat.Map.ContainsObjectToDraw(DrawOrder.Cursor, Cursor))
                Combat.Map.AddObjectToDraw(DrawOrder.Cursor, Cursor);
        }
Beispiel #14
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

            ShowCursor(false);
        }
Beispiel #15
0
 public override void Open(OpeningInfo openingInfo = null)
 {
     base.Open(openingInfo);
 }
Beispiel #16
0
        public override void Open(OpeningInfo openingInfo = null)
        {
            base.Open(openingInfo);

            if (ScrollCursor == null)
                return;

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

            if (openingInfo == null)
                return;

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

            String mode = openingInfo.GetArg<String>("Mode");

            switch (mode)
            {
                case "ObjectPencilSelectMode":

                    SelectButton.Seal(false);
                    SelectButton.Clicked += new ClickEventHandler(SelectButton_Clicked);

                    DisplayScreen.ScreenClicked += new ClickEventHandler(DisplayScreen_ScreenClicked);

                    Closed += new CloseEventHandler(ObjectMan_Closed);

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

            if (Configurations == null)
                return;

            EnableCurrentConfiguration();
        }