// ------------------------------------------------------------------- // textBoxGraphic_SelectedValueChanged // ------------------------------------------------------------------- public void textBoxGraphic_SelectedValueChanged(object sender, EventArgs e) { SystemAutotile autotile = (SystemAutotile)listBoxComplete.GetListBox().SelectedItem; autotile.Graphic = textBoxGraphic.Graphic; collisionSettings.InitializeParameters(autotile.Collision, autotile.Graphic); }
// ------------------------------------------------------------------- // listBoxComplete_SelectedIndexChanged // ------------------------------------------------------------------- public void listBoxComplete_SelectedIndexChanged(object sender, EventArgs e) { SystemAutotile autotile = (SystemAutotile)listBoxComplete.GetListBox().SelectedItem; if (autotile != null) { textBoxName.Text = autotile.Name; textBoxGraphic.InitializeParameters(autotile.Graphic); collisionSettings.InitializeParameters(autotile.Collision, autotile.Graphic); } }
// ------------------------------------------------------------------- // Constructor // ------------------------------------------------------------------- public TilesetsDatas() { TilesetsList = SystemTileset.GetDefaultTilesets(); Autotiles = SystemAutotile.GetDefaultAutotiles(); Reliefs = SystemRelief.GetDefaultReliefs(); }