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