示例#1
0
 public void refreshContentGraphic()
 {
     checkContentsNotNull();
     if (!IsEmpty())
     {
         fr.setContents(contents[0].color, contents[0].texture);
     }
     fr.showContents(!IsEmpty());
 }
    public void refreshContentGraphic()
    {
        if (thisCF != null)
        {
            fr.setContents(thisCF.color, thisCF.texture);
        }

        fr.showContents(fr != null);
    }
示例#3
0
    public void refreshContentGraphic()
    {
        checkContentsNotNull();
        if (!IsEmpty())
        {
            Color mix   = new Color();
            bool  first = true;
            foreach (ContainerFiller cooo in contents)
            {
                if (first)
                {
                    mix   = cooo.color;
                    first = false;
                }
                else
                {
                    mix += cooo.color;
                }
            }

            fr.setContents(contents[0].color, potionTexture);
        }
        fr.showContents(!IsEmpty());
    }