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; } }
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); }
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; } }
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")); }
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; } }