void MouseManager_MouseDown(object sender, Input.MouseEvent e) { if (e.Button == Input.MouseButton.RIGHT) { if (Level.RenderManager.getLayer(LayerEdit).HasMap) { Level.RenderManager.getLayer(LayerEdit).Map.setTile(getAppToWorld(e.Position), new ExtendedTileData(Level.RenderManager.getLayer(LayerEdit).Map.getTile(getAppToWorld(e.Position)).ID, !Level.RenderManager.getLayer(LayerEdit).Map.getTile(getAppToWorld(e.Position)).Flipped)); } } }
void MouseManager_MouseWheel(object sender, Input.MouseEvent e) { Console.WriteLine(tiledata); tiledata += e.WheelDelta; if (tiledata < 0) { tiledata = 0; } }