Exemple #1
0
        private void OnScroll(double vNew, double vOld, Gump g)
        {
            int  y    = (int)vNew;
            Gump gump = (Gump)g.GetTag("toScroll");
            int  num  = (int)g.GetTag("yBase");
            int  h    = (int)g.GetTag("viewHeight");

            gump.Y = num - y;
            ((GHtmlLabel)gump).Scissor(0, y, gump.Width, h);
        }
Exemple #2
0
        private void Slider_OnValueChange(double vNew, double vOld, Gump sender)
        {
            double num1 = (double)(int)vNew / (double)(int)sender.GetTag("Max");
            int    num2 = (int)-((double)((int)sender.GetTag("Max") - this.m_Height) * num1);

            foreach (Gump gump in this.m_Children.ToArray())
            {
                Type type = gump.GetType();
                if (type == GSkillList.tGLabel)
                {
                    gump.Y = num2 + (int)gump.GetTag("yBase");
                }
                else if (type == GSkillList.tGSkillGump)
                {
                    gump.Y = num2 + ((GSkillGump)gump).yBase;
                }
            }
        }
Exemple #3
0
        private static void ChangeCircle_OnClick(Gump sender)
        {
            Gump   parent    = sender.Parent;
            Item   container = (Item)parent.GetTag("Container");
            object tag       = sender.GetTag("Circle");

            if (container == null)
            {
                return;
            }
            int circle = tag == null ? 0 : (int)tag;
            int x      = parent.X;
            int y      = parent.Y;

            Gumps.Destroy(parent);
            Gump ToAdd = Spells.OpenSpellbook(circle, container.LastSpell, container);

            ToAdd.X = x;
            ToAdd.Y = y;
            Gumps.Desktop.Children.Add(ToAdd);
        }
Exemple #4
0
 private void Entry_OnClick(Gump Sender)
 {
     Network.Send((Packet) new PPopupResponse(this.m_Owner, (int)Sender.GetTag("EntryID")));
     Gumps.Destroy((Gump)this);
 }