Exemple #1
0
        void OnObjectCreatorValidated(WindowedWidget sender, ValidateEventArgs e)
        {
            WorldObject wObj = e.GetArg<WorldObject>("Object");
            wObj.ToScript();

            AddType(e.GetArg<WorldObjectBaseType>("BaseType"), wObj.Type);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        void MapCreator_Validated(WindowedWidget sender, ValidateEventArgs e)
        {
            Map map = e.GetArg<Map>("Map");

            map.ToScript();

            RefreshMaps();
        }
Exemple #4
0
        void OnActionCreatorEditValidated(WindowedWidget sender, ValidateEventArgs e)
        {
            BlazeraLib.Action action = e.GetArg<BlazeraLib.Action>("Action");

            CurrentEditedActionButton.Text = ActionCreator.Instance.ActionToString(action);
            Actions[CurrentEditedActionButton] = action;
        }
Exemple #5
0
 void AddWarpPointCreator_Validated(WindowedWidget sender, ValidateEventArgs e)
 {
     AddWarpPoint(e.GetArg<WarpPoint>("WarpPoint"), true, e.GetArg<Boolean>("Default"));
 }
Exemple #6
0
 void OnTileManEditValidated(WindowedWidget sender, ValidateEventArgs e)
 {
     CurrentTileList.Remove(CurrentEditedTileContainer.CurrentTile);
     Tile tile = e.GetArg<Tile>("Tile");
     CurrentEditedTileContainer.SetContent(tile);
     CurrentTileList.Add(CurrentEditedTileContainer.CurrentTile);
 }
Exemple #7
0
 void OnActionCreatorAddValidated(WindowedWidget sender, ValidateEventArgs e)
 {
     AddAction(e.GetArg<BlazeraLib.Action>("Action"));
 }
Exemple #8
0
 void OnTextureManValidated(WindowedWidget sender, ValidateEventArgs e)
 {
     CurrentTileSetTexture = e.GetArg<BlazeraLib.Texture>("Texture");
     TextureButton.Text = CurrentTileSetTexture.Type;
 }
Exemple #9
0
        void OnTileManAddValidated(WindowedWidget sender, ValidateEventArgs e)
        {
            Tile tile = e.GetArg<Tile>("Tile");

            AddTile(tile);

            TileSelector.AddTile(tile, OnTileClick);
        }
Exemple #10
0
 void OnPointCreatorValidated(WindowedWidget sender, ValidateEventArgs e)
 {
     CurrentPoint = new Vector2f(e.GetArg<Int32>("X"), e.GetArg<Int32>("Y"));
     PointButton.Text = PointCreator.Instance.PointToString(CurrentPoint);
 }
Exemple #11
0
 void PointCreator_Validated(WindowedWidget sender, ValidateEventArgs e)
 {
     Log.Cl("Point : (" + e.GetArg<Int32>("X") + ", " + e.GetArg<Int32>("Y") + ")");
 }
Exemple #12
0
 void OnTextureManValidated(WindowedWidget sender, ValidateEventArgs e)
 {
     TextureButton.Text = e.GetArg<Texture>("Texture").Type;
 }
Exemple #13
0
 void OnTileSetManSelectValidated(WindowedWidget sender, ValidateEventArgs e)
 {
     TileSelector.SetTileSet(e.GetArg<TileSet>("TileSet"), tileContainer_Clicked);
 }
Exemple #14
0
 void OnObjectManSelectPencilValidated(WindowedWidget sender, ValidateEventArgs e)
 {
     ObjectPencil.Instance.SetCurrentObject(e.GetArg<WorldObject>("Object"));
 }
Exemple #15
0
        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;
        }
Exemple #16
0
 void OnBoundingBoxCreatorAddValidation(WindowedWidget sender, ValidateEventArgs e)
 {
     EBoundingBox BB = e.GetArg<EBoundingBox>("BoundingBox");
     BB.Holder = CurrentSelectedObject;
     CurrentSelectedObject.AddEventBoundingBox(BB, EventBoundingBoxType.External);
     AddBoundingBoxToCurrentSelectedObject(BB);
 }