Exemple #1
0
        public void Update()
        {
            if (_radios.IndexSelected == 0 || _radios.IndexSelected == 1)
            {
                Tiles.Update();
            }
            else
            {
                TilesPhysics.Update();
            }
            _transaprencyForeground.Update();
            _transaprencyBackground.Update();
            _transaprencyPhysics.Update();
            _radios.Update();
            ForegroundVisibility.Update();
            BackgroundVisibility.Update();
            PhysicsVisibility.Update();

            if (_radios.GetIndex().HasValue)
            {
                Editor.layerEdit = (LayerEditing)_radios.GetIndex().Value;
            }
            else
            {
                Editor.layerEdit = LayerEditing.noChoosed;
            }
        }
Exemple #2
0
 public void Draw()
 {
     if (_radios.IndexSelected == 0 || _radios.IndexSelected == 1)
     {
         Tiles.Draw(Game1.Win);
     }
     else
     {
         TilesPhysics.Draw(Game1.Win);
     }
     _transaprencyForeground.Draw();
     _transaprencyBackground.Draw();
     _transaprencyPhysics.Draw();
     ForegroundVisibility.Draw();
     BackgroundVisibility.Draw();
     PhysicsVisibility.Draw();
     _radios.Draw();
 }