/// <summary> /// Gets the selected object information /// </summary> /// <returns>Object information</returns> private string GetSelectedInfo() { if (_mainForm == null || _selectedObject == null) { return("Nothing"); } string type = ""; if (tabMain.SelectedTab == tabSprite || tabMain.SelectedTab == tabSpriteLab) { type = "Sprite: "; } else if (tabMain.SelectedTab == tabSpriteTilesets) { type = "Sprite Tileset: "; } else if (tabMain.SelectedTab == tabSpriteTileMaps) { type = "Sprite Tile Map: "; } else if (tabMain.SelectedTab == tabTilesets) { type = "Tileset: "; } else if (tabMain.SelectedTab == tabTileMaps) { type = "Tile Map: "; } else if (tabMain.SelectedTab == tabPalettes) { type = "Palette Group: "; } ObjectID clone = _selectedObject.Clone(); clone.Name = type + clone.Name; return(MainForm.GetSelectedInformation(clone)); }