public static void ShowItemQuality(UISprite sprite, int itemID) { if (sprite == null) { return; } DItem itemDB = ReadCfgItem.GetDataById(itemID); DQuality db = ReadCfgQuality.GetDataById(itemDB.Quality); sprite.gameObject.SetActive(true); sprite.spriteName = db.Icon; }
public static void ShowItemQuality(UILabel la, int quality) { if (la == null) { return; } DQuality db = ReadCfgQuality.GetDataById(quality); if (db == null) { return; } la.text = GTTools.Format("[{0}]{1}[-]", db.Encode, db.Desc); }