void OnObjectCreatorValidated(WindowedWidget sender, ValidateEventArgs e) { WorldObject wObj = e.GetArg<WorldObject>("Object"); wObj.ToScript(); AddType(e.GetArg<WorldObjectBaseType>("BaseType"), wObj.Type); }
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 MapCreator_Validated(WindowedWidget sender, ValidateEventArgs e) { Map map = e.GetArg<Map>("Map"); map.ToScript(); RefreshMaps(); }
void OnActionCreatorEditValidated(WindowedWidget sender, ValidateEventArgs e) { BlazeraLib.Action action = e.GetArg<BlazeraLib.Action>("Action"); CurrentEditedActionButton.Text = ActionCreator.Instance.ActionToString(action); Actions[CurrentEditedActionButton] = action; }
void AddWarpPointCreator_Validated(WindowedWidget sender, ValidateEventArgs e) { AddWarpPoint(e.GetArg<WarpPoint>("WarpPoint"), true, e.GetArg<Boolean>("Default")); }
void OnTileManEditValidated(WindowedWidget sender, ValidateEventArgs e) { CurrentTileList.Remove(CurrentEditedTileContainer.CurrentTile); Tile tile = e.GetArg<Tile>("Tile"); CurrentEditedTileContainer.SetContent(tile); CurrentTileList.Add(CurrentEditedTileContainer.CurrentTile); }
void OnActionCreatorAddValidated(WindowedWidget sender, ValidateEventArgs e) { AddAction(e.GetArg<BlazeraLib.Action>("Action")); }
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 OnPointCreatorValidated(WindowedWidget sender, ValidateEventArgs e) { CurrentPoint = new Vector2f(e.GetArg<Int32>("X"), e.GetArg<Int32>("Y")); PointButton.Text = PointCreator.Instance.PointToString(CurrentPoint); }
void PointCreator_Validated(WindowedWidget sender, ValidateEventArgs e) { Log.Cl("Point : (" + e.GetArg<Int32>("X") + ", " + e.GetArg<Int32>("Y") + ")"); }
void OnTextureManValidated(WindowedWidget sender, ValidateEventArgs e) { TextureButton.Text = e.GetArg<Texture>("Texture").Type; }
void OnTileSetManSelectValidated(WindowedWidget sender, ValidateEventArgs e) { TileSelector.SetTileSet(e.GetArg<TileSet>("TileSet"), tileContainer_Clicked); }
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); }