Exemplo n.º 1
0
        public GPropertyHuePicker(GPropertyEntry entry) : base(0, 0, 200, 150)
        {
            int num = (int)entry.Entry.Property.GetValue(entry.Object, null);

            this.m_Entry     = entry;
            base.m_CanDrag   = false;
            base.FillColor   = GumpColors.Control;
            base.BorderColor = GumpColors.ControlDarkDark;
            base.FillAlpha   = 1f;
            GHuePicker toAdd = this.m_HuePicker = new GHuePicker(7, 7);

            toAdd.m_CanDrag   = false;
            toAdd.OnHueSelect = new OnHueSelect(this.HueSelected);
            base.m_Children.Add(toAdd);
            GBrightnessBar bar = this.m_Bar = new GBrightnessBar((toAdd.X + toAdd.Width) + 1, toAdd.Y, 15, toAdd.Height, toAdd);

            bar.m_CanDrag = false;
            base.m_Children.Add(bar);
            if ((num >= 2) && (num <= 0x3e9))
            {
                num             -= 2;
                toAdd.ShadeX     = (num / 5) % 20;
                toAdd.ShadeY     = (num / 5) / 20;
                toAdd.Brightness = num % 5;
                bar.Refresh();
            }
            GSingleBorder border = new GSingleBorder(bar.X - 1, bar.Y, 1, bar.Height);

            base.m_Children.Add(border);
            this.Width  = ((7 + toAdd.Width) + bar.Width) + 7;
            this.Height = (7 + toAdd.Height) + 7;
        }
Exemplo n.º 2
0
 public GPropertyHuePicker(GPropertyEntry entry)
     : base(0, 0, 200, 150)
 {
     int num = (int) entry.Entry.Property.GetValue(entry.Object, null);
     this.m_Entry = entry;
     base.m_CanDrag = false;
     base.FillColor = GumpColors.Control;
     base.BorderColor = GumpColors.ControlDarkDark;
     base.FillAlpha = 1f;
     GHuePicker toAdd = this.m_HuePicker = new GHuePicker(7, 7);
     toAdd.m_CanDrag = false;
     toAdd.OnHueSelect = new OnHueSelect(this.HueSelected);
     base.m_Children.Add(toAdd);
     GBrightnessBar bar = this.m_Bar = new GBrightnessBar((toAdd.X + toAdd.Width) + 1, toAdd.Y, 15, toAdd.Height, toAdd);
     bar.m_CanDrag = false;
     base.m_Children.Add(bar);
     if ((num >= 2) && (num <= 0x3e9))
     {
         num -= 2;
         toAdd.ShadeX = (num / 5) % 20;
         toAdd.ShadeY = (num / 5) / 20;
         toAdd.Brightness = num % 5;
         bar.Refresh();
     }
     GSingleBorder border = new GSingleBorder(bar.X - 1, bar.Y, 1, bar.Height);
     base.m_Children.Add(border);
     this.Width = ((7 + toAdd.Width) + bar.Width) + 7;
     this.Height = (7 + toAdd.Height) + 7;
 }
Exemplo n.º 3
0
 public SetItemPropertyTarget(GPropertyEntry entry)
 {
     this.m_Entry = entry;
 }
Exemplo n.º 4
0
 public SetItemPropertyTarget(GPropertyEntry entry)
 {
     this.m_Entry = entry;
 }