コード例 #1
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(GumpAlphaRegion.m_LayoutName);
     disp.AppendLayout(this.m_X);
     disp.AppendLayout(this.m_Y);
     disp.AppendLayout(this.m_Width);
     disp.AppendLayout(this.m_Height);
 }
コード例 #2
0
ファイル: GumpLabel.cs プロジェクト: zerodowned/angelisland
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(m_LayoutName);
     disp.AppendLayout(m_X);
     disp.AppendLayout(m_Y);
     disp.AppendLayout(m_Hue);
     disp.AppendLayout(Parent.Intern(m_Text));
 }
コード例 #3
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(GumpLabel.m_LayoutName);
     disp.AppendLayout(this.m_X);
     disp.AppendLayout(this.m_Y);
     disp.AppendLayout(this.m_Hue);
     disp.AppendLayout(base.Parent.Intern(this.m_Text));
 }
コード例 #4
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(m_LayoutName);
     disp.AppendLayout(m_X);
     disp.AppendLayout(m_Y);
     disp.AppendLayout(m_Width);
     disp.AppendLayout(m_Height);
 }
コード例 #5
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(((this.m_Hue == 0) ? GumpItem.m_LayoutName : GumpItem.m_LayoutNameHue));
     disp.AppendLayout(this.m_X);
     disp.AppendLayout(this.m_Y);
     disp.AppendLayout(this.m_ItemID);
     if (this.m_Hue != 0)
     {
         disp.AppendLayout(this.m_Hue);
     }
 }
コード例 #6
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(GumpImage.m_LayoutName);
     disp.AppendLayout(this.m_X);
     disp.AppendLayout(this.m_Y);
     disp.AppendLayout(this.m_GumpID);
     if (this.m_Hue != 0)
     {
         disp.AppendLayout(GumpImage.m_HueEquals);
         disp.AppendLayoutNS(this.m_Hue);
     }
 }
コード例 #7
0
        public override void AppendTo(DisplayGumpFast disp)
        {
            disp.AppendLayout(m_Hue == 0 ? m_LayoutName : m_LayoutNameHue);
            disp.AppendLayout(m_X);
            disp.AppendLayout(m_Y);
            disp.AppendLayout(m_ItemID);

            if (m_Hue != 0)
            {
                disp.AppendLayout(m_Hue);
            }
        }
コード例 #8
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(GumpButton.m_LayoutName);
     disp.AppendLayout(this.m_X);
     disp.AppendLayout(this.m_Y);
     disp.AppendLayout(this.m_ID1);
     disp.AppendLayout(this.m_ID2);
     disp.AppendLayout(((int)this.m_Type));
     disp.AppendLayout(this.m_Param);
     disp.AppendLayout(this.m_ButtonID);
 }
コード例 #9
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(GumpTextEntry.m_LayoutName);
     disp.AppendLayout(this.m_X);
     disp.AppendLayout(this.m_Y);
     disp.AppendLayout(this.m_Width);
     disp.AppendLayout(this.m_Height);
     disp.AppendLayout(this.m_Hue);
     disp.AppendLayout(this.m_EntryID);
     disp.AppendLayout(base.Parent.Intern(this.m_InitialText));
 }
コード例 #10
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(m_LayoutName);
     disp.AppendLayout(m_X);
     disp.AppendLayout(m_Y);
     disp.AppendLayout(m_Width);
     disp.AppendLayout(m_Height);
     disp.AppendLayout(Parent.Intern(m_Text));
     disp.AppendLayout(m_Background);
     disp.AppendLayout(m_Scrollbar);
 }
コード例 #11
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout((this.m_UseColor ? GumpHtmlLocalized.m_LayoutNameColor : GumpHtmlLocalized.m_LayoutName));
     disp.AppendLayout(this.m_X);
     disp.AppendLayout(this.m_Y);
     disp.AppendLayout(this.m_Width);
     disp.AppendLayout(this.m_Height);
     disp.AppendLayout(this.m_Number);
     disp.AppendLayout(this.m_Background);
     disp.AppendLayout(this.m_Scrollbar);
     if (this.m_UseColor)
     {
         disp.AppendLayout(this.m_Color);
     }
 }
コード例 #12
0
        public override void AppendTo(DisplayGumpFast disp)
        {
            disp.AppendLayout(m_UseColor ? m_LayoutNameColor : m_LayoutName);
            disp.AppendLayout(m_X);
            disp.AppendLayout(m_Y);
            disp.AppendLayout(m_Width);
            disp.AppendLayout(m_Height);
            disp.AppendLayout(m_Number);
            disp.AppendLayout(m_Background);
            disp.AppendLayout(m_Scrollbar);

            if (m_UseColor)
            {
                disp.AppendLayout(m_Color);
            }
        }
コード例 #13
0
        public override void AppendTo(DisplayGumpFast disp)
        {
            disp.AppendLayout(m_LayoutName);
            disp.AppendLayout(m_X);
            disp.AppendLayout(m_Y);
            disp.AppendLayout(m_Width);
            disp.AppendLayout(m_Height);
            disp.AppendLayout(m_Hue);
            disp.AppendLayout(m_EntryID);
            disp.AppendLayout(Parent.Intern(m_InitialText));

            disp.TextEntries++;
        }
コード例 #14
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(GumpRadio.m_LayoutName);
     disp.AppendLayout(this.m_X);
     disp.AppendLayout(this.m_Y);
     disp.AppendLayout(this.m_ID1);
     disp.AppendLayout(this.m_ID2);
     disp.AppendLayout(this.m_InitialState);
     disp.AppendLayout(this.m_SwitchID);
 }
コード例 #15
0
        public override void AppendTo(DisplayGumpFast disp)
        {
            disp.AppendLayout(m_LayoutName);
            disp.AppendLayout(m_X);
            disp.AppendLayout(m_Y);
            disp.AppendLayout(m_ID1);
            disp.AppendLayout(m_ID2);
            disp.AppendLayout(m_InitialState);
            disp.AppendLayout(m_SwitchID);

            disp.Switches++;
        }
コード例 #16
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(GumpImageTiled.m_LayoutName);
     disp.AppendLayout(this.m_X);
     disp.AppendLayout(this.m_Y);
     disp.AppendLayout(this.m_Width);
     disp.AppendLayout(this.m_Height);
     disp.AppendLayout(this.m_GumpID);
 }
コード例 #17
0
        private Packet Compile()
        {
            if (m_Packet == null)
            {
                DisplayGumpFast disp = new DisplayGumpFast(this);

                if (!m_Dragable)
                {
                    disp.AppendLayout(m_NoMove);
                }

                if (!m_Closable)
                {
                    disp.AppendLayout(m_NoClose);
                }

                if (!m_Disposable)
                {
                    disp.AppendLayout(m_NoDispose);
                }

                if (!m_Resizable)
                {
                    disp.AppendLayout(m_NoResize);
                }

                int       count = m_Entries.Count;
                GumpEntry e;

                for (int i = 0; i < count; ++i)
                {
                    e = (GumpEntry)m_Entries[i];

                    disp.AppendLayout(m_BeginLayout);
                    e.AppendTo(disp);
                    disp.AppendLayout(m_EndLayout);
                }

                //disp.WriteText( m_Strings );
                List <string> strings = new List <string>();
                for (int i = 0; i < m_Strings.Count; i++)
                {
                    strings.Add(m_Strings[i] as string);
                }
                disp.WriteStrings(strings);

                m_TextEntries = disp.TextEntries;
                m_Switches    = disp.Switches;

                m_Packet = disp;
            }

            return(m_Packet);
        }
コード例 #18
0
ファイル: GumpUtilities.cs プロジェクト: 3HMonkey/DefianceUOR
        public static Packet Compile(this Gump g, NetState ns = null)
        {
            IGumpWriter disp = new DisplayGumpFast(g);

            // IGumpWriter disp = new DisplayGumpPacked(g);

            if (!g.Draggable)
            {
                disp.AppendLayout(Gump.NoMove);
            }

            if (!g.Closable)
            {
                disp.AppendLayout(Gump.NoClose);
            }

            if (!g.Disposable)
            {
                disp.AppendLayout(Gump.NoDispose);
            }

            if (!g.Resizable)
            {
                disp.AppendLayout(Gump.NoResize);
            }

            var count   = g.Entries.Count;
            var strings = new List <string>();

            for (var i = 0; i < count; ++i)
            {
                var e = g.Entries[i];

                disp.AppendLayout(m_BeginLayout);
                e.AppendToByType(disp, strings);
                disp.AppendLayout(m_EndLayout);
            }

            disp.WriteStrings(strings);

            disp.Flush();

            return((Packet)disp);
        }
コード例 #19
0
ファイル: Gump.cs プロジェクト: urusai88/wow-emulator-archive
        private Packet Compile()
        {
            DisplayGumpFast fast1;
            int             num1;
            GumpEntry       entry1;
            int             num2;

            if (this.m_Packet == null)
            {
                fast1 = new DisplayGumpFast(this);
                if (!this.m_Dragable)
                {
                    fast1.AppendLayout(Gump.m_NoMove);
                }
                if (!this.m_Closable)
                {
                    fast1.AppendLayout(Gump.m_NoClose);
                }
                if (!this.m_Disposable)
                {
                    fast1.AppendLayout(Gump.m_NoDispose);
                }
                if (!this.m_Resizable)
                {
                    fast1.AppendLayout(Gump.m_NoResize);
                }
                num1 = this.m_Entries.Count;
                for (num2 = 0; (num2 < num1); ++num2)
                {
                    entry1 = ((GumpEntry)this.m_Entries[num2]);
                    fast1.AppendLayout(Gump.m_BeginLayout);
                    entry1.AppendTo(fast1);
                    fast1.AppendLayout(Gump.m_EndLayout);
                }
                fast1.WriteText(this.m_Strings);
                this.m_Packet = fast1;
            }
            return(this.m_Packet);
        }
コード例 #20
0
            public override void AppendTo(DisplayGumpFast disp)
            {
                base.AppendTo(disp);

                disp.AppendLayout(m_Class);
            }
コード例 #21
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(GumpGroup.m_LayoutName);
     disp.AppendLayout(this.m_Group);
 }
コード例 #22
0
 public override void AppendTo(DisplayGumpFast disp)
 {
     disp.AppendLayout(m_LayoutName);
     disp.AppendLayout(m_Page);
 }