void OnTileManEditValidated(WindowedWidget sender, ValidateEventArgs e) { CurrentTileList.Remove(CurrentEditedTileContainer.CurrentTile); Tile tile = e.GetArg<Tile>("Tile"); CurrentEditedTileContainer.SetContent(tile); CurrentTileList.Add(CurrentEditedTileContainer.CurrentTile); }
void OnTextureManValidated(WindowedWidget sender, ValidateEventArgs e) { CurrentTileSetTexture = e.GetArg<BlazeraLib.Texture>("Texture"); TextureButton.Text = CurrentTileSetTexture.Type; }
void OnTileManAddValidated(WindowedWidget sender, ValidateEventArgs e) { Tile tile = e.GetArg<Tile>("Tile"); AddTile(tile); TileSelector.AddTile(tile, OnTileClick); }
void MapHandler_OnFocusLoss(WindowedWidget sender, WindowedWidgetEventArgs e) { MapBox.RunMapUpdate(false); }
void DialogBox_Validated(WindowedWidget sender, ValidateEventArgs e) { CallOnDialogValidate(); }
void AddWarpPointCreator_Validated(WindowedWidget sender, ValidateEventArgs e) { AddWarpPoint(e.GetArg<WarpPoint>("WarpPoint"), true, e.GetArg<Boolean>("Default")); }
void MapCreator_Validated(WindowedWidget sender, ValidateEventArgs e) { Map map = e.GetArg<Map>("Map"); map.ToScript(); RefreshMaps(); }
/// <summary> /// Adds the window widget to the main window and showes or hides it /// </summary> /// <param name="window">Window to add</param> /// <param name="opened">If the window is shown</param> public void AddWindow(WindowedWidget window, bool opened = false) { Gui.AddWindow(window, opened); }
/// <summary> /// Adds the given window widget to the main window associated to a shortcut key /// </summary> /// <param name="window">Window to add</param> /// <param name="key">Shorcut key to show and hide the given window</param> public void AddWindow(WindowedWidget window, Keyboard.Key key) { Gui.AddWindow(window, true); Gui.AddKeyWindowBind(key, window); }
void OnTileSetManSelectValidated(WindowedWidget sender, ValidateEventArgs e) { TileSelector.SetTileSet(e.GetArg<TileSet>("TileSet"), tileContainer_Clicked); }
void OnTextureManValidated(WindowedWidget sender, ValidateEventArgs e) { TextureButton.Text = e.GetArg<Texture>("Texture").Type; }
void OnObjectManSelectPencilValidated(WindowedWidget sender, ValidateEventArgs e) { ObjectPencil.Instance.SetCurrentObject(e.GetArg<WorldObject>("Object")); }
void OnBoundingBoxCreatorEditValidated(WindowedWidget sender, ValidateEventArgs e) { CurrentSelectedObject.RemoveEventBoundingBox(CurrentSelectedObjectExternalBoundingBoxes[CurrentEditedBBButton], EventBoundingBoxType.External); EBoundingBox BB = e.GetArg<EBoundingBox>("BoundingBox"); BB.Holder = CurrentSelectedObject; CurrentSelectedObject.AddEventBoundingBox(BB, EventBoundingBoxType.External); CurrentEditedBBButton.Text = BoundingBoxCreator.Instance.BBToString(BB); CurrentSelectedObjectExternalBoundingBoxes[CurrentEditedBBButton] = BB; }
void OnBoundingBoxCreatorAddValidation(WindowedWidget sender, ValidateEventArgs e) { EBoundingBox BB = e.GetArg<EBoundingBox>("BoundingBox"); BB.Holder = CurrentSelectedObject; CurrentSelectedObject.AddEventBoundingBox(BB, EventBoundingBoxType.External); AddBoundingBoxToCurrentSelectedObject(BB); }
void OnActionCreatorAddValidated(WindowedWidget sender, ValidateEventArgs e) { AddAction(e.GetArg<BlazeraLib.Action>("Action")); }
/// <summary> /// Removes the given window from the main window /// </summary> /// <param name="window">Window to remove</param> /// <returns>If the deletion is successful</returns> public bool RemoveWindow(WindowedWidget window) { return Gui.RemoveWindow(window); }
void OnActionCreatorEditValidated(WindowedWidget sender, ValidateEventArgs e) { BlazeraLib.Action action = e.GetArg<BlazeraLib.Action>("Action"); CurrentEditedActionButton.Text = ActionCreator.Instance.ActionToString(action); Actions[CurrentEditedActionButton] = action; }
void OnPointCreatorValidated(WindowedWidget sender, ValidateEventArgs e) { CurrentPoint = new Vector2f(e.GetArg<Int32>("X"), e.GetArg<Int32>("Y")); PointButton.Text = PointCreator.Instance.PointToString(CurrentPoint); }
void CurrentWarpPointPointCreator_Validated(WindowedWidget sender, ValidateEventArgs e) { WarpPoint newWarpPoint = e.GetArg<WarpPoint>("WarpPoint"); WarpPoints[CurrentWarpPointButton] = newWarpPoint; Maps[CurrentMap.Type].SetWarpPoint(CurrentWarpPoint.Name, newWarpPoint, e.GetArg<Boolean>("Default")); CurrentWarpPoint = newWarpPoint; CurrentWarpPointButton.Text = WarpPointCreator.Instance.WarpPointToString(CurrentWarpPoint); }
void PointCreator_Validated(WindowedWidget sender, ValidateEventArgs e) { Log.Cl("Point : (" + e.GetArg<Int32>("X") + ", " + e.GetArg<Int32>("Y") + ")"); }
void OnObjectCreatorValidated(WindowedWidget sender, ValidateEventArgs e) { WorldObject wObj = e.GetArg<WorldObject>("Object"); wObj.ToScript(); AddType(e.GetArg<WorldObjectBaseType>("BaseType"), wObj.Type); }
void MapHandler_OnFocusGain(WindowedWidget sender, WindowedWidgetEventArgs e) { MapBox.RunMapUpdate(true); }