コード例 #1
0
    private void apply(YGOSharp.Card card, Texture2D def, string tail)
    {
        if (card == null)
        {
            return;
        }
        string smallstr = "";

        if (card.Id != 0)
        {
            smallstr  = GameStringHelper.getName(card) + GameStringHelper.getSmall(card);
            smallstr += "\n";
        }
        if (tail == "")
        {
            description.Clear();
            description.Add(smallstr + card.Desc);
        }
        else
        {
            description.Clear();
            description.Add(smallstr + "[FFD700]" + tail + "[-]" + card.Desc);
        }
        picLoader.code        = card.Id;
        picLoader.defaults    = def;
        picLoader.loaded_code = -1;
        currentCard           = card;
        shiftCardShower(true);
        Program.go(50, () => { shiftCardShower(true); });
    }