Ejemplo n.º 1
0
    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;
    }
Ejemplo n.º 2
0
    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);
    }