Exemple #1
0
        protected override void Func_27260_a(int par1, int par2, Tessellator par3Tessellator)
        {
            base.Func_27260_a(par1, par2, par3Tessellator);

            if (Field_27268_b == 0)
            {
                GuiStats.DrawSprite(Field_27275_a, ((par1 + 115) - 18) + 1, par2 + 1 + 1, 72, 18);
            }
            else
            {
                GuiStats.DrawSprite(Field_27275_a, (par1 + 115) - 18, par2 + 1, 72, 18);
            }

            if (Field_27268_b == 1)
            {
                GuiStats.DrawSprite(Field_27275_a, ((par1 + 165) - 18) + 1, par2 + 1 + 1, 18, 18);
            }
            else
            {
                GuiStats.DrawSprite(Field_27275_a, (par1 + 165) - 18, par2 + 1, 18, 18);
            }

            if (Field_27268_b == 2)
            {
                GuiStats.DrawSprite(Field_27275_a, ((par1 + 215) - 18) + 1, par2 + 1 + 1, 36, 18);
            }
            else
            {
                GuiStats.DrawSprite(Field_27275_a, (par1 + 215) - 18, par2 + 1, 36, 18);
            }
        }
        protected override void Func_27260_a(int par1, int par2, Tessellator par3Tessellator)
        {/*
          * if (Mouse.GetState().LeftButton != ButtonState.Pressed)
          * {
          *     Field_27268_b = -1;
          * }
          */
            if (Field_27268_b == 0)
            {
                GuiStats.DrawSprite(Field_27269_g, (par1 + 115) - 18, par2 + 1, 0, 0);
            }
            else
            {
                GuiStats.DrawSprite(Field_27269_g, (par1 + 115) - 18, par2 + 1, 0, 18);
            }

            if (Field_27268_b == 1)
            {
                GuiStats.DrawSprite(Field_27269_g, (par1 + 165) - 18, par2 + 1, 0, 0);
            }
            else
            {
                GuiStats.DrawSprite(Field_27269_g, (par1 + 165) - 18, par2 + 1, 0, 18);
            }

            if (Field_27268_b == 2)
            {
                GuiStats.DrawSprite(Field_27269_g, (par1 + 215) - 18, par2 + 1, 0, 0);
            }
            else
            {
                GuiStats.DrawSprite(Field_27269_g, (par1 + 215) - 18, par2 + 1, 0, 18);
            }

            if (Field_27271_e != -1)
            {
                char  c     = 'O';
                sbyte byte0 = 18;

                if (Field_27271_e == 1)
                {
                    c = '\u0201';
                }
                else if (Field_27271_e == 2)
                {
                    c = '\u0263';
                }
                if (Field_27270_f == 1)
                {
                    byte0 = 36;
                }
                GuiStats.DrawSprite(Field_27269_g, par1 + c, par2 + 1, byte0, 0);
            }
        }
 /// <summary>
 /// Draws a sprite from /gui/slot.png.
 /// </summary>
 public static void DrawSprite(GuiStats par0GuiStats, int par1, int par2, int par3, int par4)
 {
     par0GuiStats.DrawSprite(par1, par2, par3, par4);
 }