public override void AppendTo( IGumpWriter disp )
		{
			disp.AppendLayout( m_LayoutName );
			disp.AppendLayout( m_X );
			disp.AppendLayout( m_Y );
			disp.AppendLayout( m_GumpID );
		}
		public override void AppendTo( IGumpWriter disp )
		{
			disp.AppendLayout( m_LayoutName );
			disp.AppendLayout( m_X );
			disp.AppendLayout( m_Y );
			disp.AppendLayout( m_Hue );
			disp.AppendLayout( m_Text == null ? m_TextID : Parent.Intern( m_Text ) );
		}
Ejemplo n.º 3
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(m_LayoutName);
			disp.AppendLayout(m_X);
			disp.AppendLayout(m_Y);
			disp.AppendLayout(m_Width);
			disp.AppendLayout(m_Height);
		}
Ejemplo n.º 4
0
		public override void AppendTo( IGumpWriter disp )
		{
			disp.AppendLayout( m_LayoutName );
			disp.AppendLayout( m_Number );

            if (!string.IsNullOrEmpty(m_Args))
                disp.AppendLayout(m_Args);
		}
Ejemplo n.º 5
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(m_LayoutName);
			disp.AppendLayout(m_X);
			disp.AppendLayout(m_Y);
			disp.AppendLayout(m_Hue);
			disp.AppendLayout(Container.RootParent.Intern(m_Text));
		}
		public override void AppendTo( IGumpWriter 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 );
		}
Ejemplo n.º 7
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(m_LayoutName);
			disp.AppendLayout(m_X);
			disp.AppendLayout(m_Y);
			disp.AppendLayout(m_Width);
			disp.AppendLayout(m_Height);
			disp.AppendLayout(Container.RootParent.Intern(m_Text));
			disp.AppendLayout(m_Background);
			disp.AppendLayout(m_Scrollbar);
		}
Ejemplo n.º 8
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(_Layout1);
			disp.AppendLayout(_X);
			disp.AppendLayout(_Y);
			disp.AppendLayout(1);
			disp.AppendLayout(1);
			disp.AppendLayout(Parent.Intern(" ".WrapUOHtmlBG(_Color)));
			disp.AppendLayout(false);
			disp.AppendLayout(false);
		}
Ejemplo n.º 9
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(m_LayoutName);
			disp.AppendLayout(m_X);
			disp.AppendLayout(m_Y);
			disp.AppendLayout(m_GumpID);

			if (m_Hue != 0)
			{
				disp.AppendLayout(m_HueEquals);
				disp.AppendLayoutNS(m_Hue);
			}
		}
Ejemplo n.º 10
0
 public static void AppendTo(this GumpMasterGump g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(Gump.StringToBuffer("mastergump"));
     disp.AppendLayout(g.GumpID);
 }
Ejemplo n.º 11
0
        public override void AppendTo(IGumpWriter disp)
        {
            var first = true;

            if (_Background)
            {
                disp.AppendLayout(_Layout1A);
                disp.AppendLayout(_X);
                disp.AppendLayout(_Y);
                disp.AppendLayout(1417);

                if (_BackgroundHue > 0)
                {
                    disp.AppendLayout(_Layout1Hue);
                    disp.AppendLayoutNS(FixHue(_BackgroundHue));
                }

                first = false;
            }

            if (_Face)
            {
                disp.AppendLayout(first ? _Layout1A : _Layout1B);
                disp.AppendLayout(_X + 33);
                disp.AppendLayout(_Y + 33);
                disp.AppendLayout(1210);

                if (_FaceHue > 0)
                {
                    disp.AppendLayout(_Layout1Hue);
                    disp.AppendLayoutNS(FixHue(_FaceHue));
                }

                first = false;
            }

            if (_Numbers)
            {
                for (var number = 1; number <= 12; number++)
                {
                    AppendTo(disp, ref first, number, _NumbersColor);
                }
            }

            var center = new Point2D(_X + 40, _Y + 40);

            if (_Hours)
            {
                var ha = 2.0f * Math.PI * (_Time.Hour + _Time.Minute / 60.0f) / 12.0f;
                var hl = center.GetLine2D(center.Clone2D((int)(40 * Math.Sin(ha) / 1.5f), (int)(-40 * Math.Cos(ha) / 1.5f)));

                AppendTo(disp, ref first, hl, 3, _HoursColor);
            }

            if (_Minutes)
            {
                var ma = 2.0f * Math.PI * (_Time.Minute + _Time.Second / 60.0f) / 60.0f;
                var ml = center.GetLine2D(center.Clone2D((int)(40 * Math.Sin(ma)), (int)(-40 * Math.Cos(ma))));

                AppendTo(disp, ref first, ml, 3, _MinutesColor);
            }

            if (_Seconds)
            {
                var sa = 2.0f * Math.PI * _Time.Second / 60.0f;
                var sl = center.GetLine2D(center.Clone2D((int)(40 * Math.Sin(sa)), (int)(-40 * Math.Cos(sa))));

                AppendTo(disp, ref first, sl, 1, _SecondsColor);
            }

            if (first)
            {
                disp.AppendLayout(_Layout2A);
                disp.AppendLayout(_X);
                disp.AppendLayout(_Y);
                disp.AppendLayout(Width);
                disp.AppendLayout(Height);
                disp.AppendLayout(Parent.Intern(" ".WrapUOHtmlBG(Color.Transparent)));
                disp.AppendLayout(false);
                disp.AppendLayout(false);
            }
        }
Ejemplo n.º 12
0
		public virtual void AppendTo(IGumpWriter disp, int x, int y, int w, int h)
		{
			var first = _X == x && _Y == y;

			if (_GumpID >= 0)
			{
				disp.AppendLayout(first ? _Layout1A : _Layout1B);
				disp.AppendLayout(x);
				disp.AppendLayout(y);
				disp.AppendLayout(w);
				disp.AppendLayout(h);
				disp.AppendLayout(_GumpID);

				disp.AppendLayout(_Layout2B);
				disp.AppendLayout(x);
				disp.AppendLayout(y);
				disp.AppendLayout(w);
				disp.AppendLayout(h);
			}
			else
			{
				disp.AppendLayout(first ? _Layout2A : _Layout2B);
				disp.AppendLayout(x);
				disp.AppendLayout(y);
				disp.AppendLayout(w);
				disp.AppendLayout(h);
			}
		}
Ejemplo n.º 13
0
            public override void AppendTo(IGumpWriter disp)
            {
                base.AppendTo(disp);

                disp.AppendLayout(m_Class);
            }
Ejemplo n.º 14
0
 protected void AppendEmptyLayout(IGumpWriter disp)
 {
     disp.AppendLayout(_EmptyLayout);
 }
Ejemplo n.º 15
0
        public override void AppendTo( IGumpWriter 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++;
        }
Ejemplo n.º 16
0
        public override void AppendTo(IGumpWriter disp)
        {
            disp.AppendLayout(_Layout0);
            disp.AppendLayout(-1);

            var hue = _BodyHue & 0x7FFF;

            if (_SolidHue >= 0)
            {
                hue = _SolidHue;
            }

            var gump = ArtworkSupport.LookupGump(_Body);

            if (gump <= 0)
            {
                gump = ShrinkTable.Lookup(_Body, 0);

                if (gump > 0)
                {
                    if (hue > 0 || (_SolidHue >= 0 && hue == _SolidHue))
                    {
                        disp.AppendLayout(_Layout4);
                    }
                    else
                    {
                        disp.AppendLayout(_Layout3);
                    }

                    disp.AppendLayout(_X);
                    disp.AppendLayout(_Y);
                    disp.AppendLayout(gump);

                    if (hue > 0 || (_SolidHue >= 0 && hue == _SolidHue))
                    {
                        disp.AppendLayout(FixHue(hue));
                    }
                }

                return;
            }

            disp.AppendLayout(_Layout2);
            disp.AppendLayout(_X);
            disp.AppendLayout(_Y);
            disp.AppendLayout(gump);

            if (hue > 0 || (_SolidHue >= 0 && hue == _SolidHue))
            {
                disp.AppendLayout(_Layout2Hue);
                disp.AppendLayoutNS(FixHue(hue));
            }

            var hideHair  = _Body.IsGhost;
            var hidePants = false;
            var props     = String.Empty;

            AppendTo(disp, ref props, ref hidePants, ref hideHair);

            if (!_Body.IsGhost && _FacialHairID > 0)
            {
                gump = ArtworkSupport.LookupGump(_FacialHairID, _Body.IsFemale);

                if (gump > 0)
                {
                    disp.AppendLayout(_Layout2);
                    disp.AppendLayout(_X);
                    disp.AppendLayout(_Y);
                    disp.AppendLayout(gump);

                    hue = _SolidHue >= 0 ? _SolidHue : _FacialHairHue;

                    if (hue > 0 || (_SolidHue >= 0 && hue == _SolidHue))
                    {
                        disp.AppendLayout(_Layout2Hue);
                        disp.AppendLayoutNS(FixHue(hue));
                    }
                }
            }

            if (!hideHair && _HairID > 0)
            {
                gump = ArtworkSupport.LookupGump(_HairID, _Body.IsFemale);

                if (gump > 0)
                {
                    disp.AppendLayout(_Layout2);
                    disp.AppendLayout(_X);
                    disp.AppendLayout(_Y);
                    disp.AppendLayout(gump);

                    hue = _SolidHue >= 0 ? _SolidHue : _HairHue;

                    if (hue > 0 || (_SolidHue >= 0 && hue == _SolidHue))
                    {
                        disp.AppendLayout(_Layout2Hue);
                        disp.AppendLayoutNS(FixHue(hue));
                    }
                }
            }

            if (!_Properties || String.IsNullOrWhiteSpace(props))
            {
                return;
            }

            var noHue  = FixHue(0);
            var noText = Parent.Intern(" ");

            props = props.Trim(',');

            foreach (var item in props.Split(',').Select(Int32.Parse).Select(s => _Items.Find(i => i.Serial.Value == s)))
            {
                foreach (var b in item.GetGumpBounds())
                {
                    disp.AppendLayout(_Layout5);
                    disp.AppendLayout(_X + b.X);
                    disp.AppendLayout(_Y + b.Y);
                    disp.AppendLayout(b.Width);
                    disp.AppendLayout(b.Height);
                    disp.AppendLayout(noHue);
                    disp.AppendLayout(noText);

                    disp.AppendLayout(_Layout6);
                    disp.AppendLayout(item.Serial.Value);
                }
            }
        }
Ejemplo n.º 17
0
 public static void AppendTo(this GumpPage g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(GumpPage.LayoutName);
     disp.AppendLayout(g.Page);
 }
Ejemplo n.º 18
0
        public static void AppendToByType(this GumpEntry e, IGumpWriter disp, List <string> strings)
        {
            switch (e)
            {
            case GumpAlphaRegion g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpBackground g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpButton g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpCheck g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpGroup g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpECHandleInput g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpHtml g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpHtmlLocalized g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpImage g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpImageTileButton g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpImageTiled g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpItem g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpItemProperty g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpLabel g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpLabelCropped g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpMasterGump g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpPage g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpRadio g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpSpriteImage g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpTextEntry g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpTextEntryLimited g:
            {
                g.AppendTo(disp, strings);
                break;
            }

            case GumpTooltip g:
            {
                g.AppendTo(disp, strings);
                break;
            }
            }
        }
Ejemplo n.º 19
0
 public static void AppendTo(this GumpItemProperty g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(GumpItemProperty.LayoutName);
     disp.AppendLayout(g.Serial);
 }
Ejemplo n.º 20
0
 public static void AppendTo(this GumpMasterGump g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(GumpMasterGump.LayoutName);
     disp.AppendLayout(g.GumpID);
 }
Ejemplo n.º 21
0
 public static void AppendTo(this GumpECHandleInput g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(GumpECHandleInput.LayoutName);
 }
Ejemplo n.º 22
0
 public static void AppendTo(this GumpGroup g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(GumpGroup.LayoutName);
     disp.AppendLayout(g.Group);
 }
Ejemplo n.º 23
0
 public override void AppendTo(IGumpWriter disp)
 {
     disp.AppendLayout(m_LayoutName);
     disp.AppendLayout(this.m_Page);
 }
Ejemplo n.º 24
0
		public override void AppendTo( IGumpWriter 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++;
		}
Ejemplo n.º 25
0
		public override void AppendTo( IGumpWriter disp )
		{
			disp.AppendLayout( 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 );
		}
Ejemplo n.º 26
0
		public override void AppendTo(IGumpWriter disp)
		{
			var first = true;

			AppendTo(disp, ref first, _X, _Y, _Width, _Height, _BackgroundColor);

			int x = _X, y = _Y, w = _Width, h = _Height;

			if (FlowOffset(ref x, ref y, ref w, ref h))
			{
				AppendTo(disp, ref first, x, y, w, h, _ForegroundColor);
			}

			AppendTo(disp, ref first, _X, _Y, _Width, _BorderSize, _BorderColor);
			AppendTo(disp, ref first, _X + (_Width - _BorderSize), _Y, _BorderSize, _Height, _BorderColor);
			AppendTo(disp, ref first, _X, _Y + (_Height - _BorderSize), _Width, _BorderSize, _BorderColor);
			AppendTo(disp, ref first, _X, _Y, _BorderSize, _Height, _BorderColor);
		}
Ejemplo n.º 27
0
        public override void AppendTo(IGumpWriter disp)
        {
            var x = X;
            var y = Y;
            var w = Width;
            var h = Height;
            var t = Tile;
            var c = (int)Cursor;

            if (c == 0 || w * h <= 0)
            {
                disp.AppendLayout(_Layout0);
                disp.AppendLayout(0);

                return;
            }

            if (t > 0)
            {
                disp.AppendLayout(_Layout3A);
                disp.AppendLayout(x);
                disp.AppendLayout(y);
                disp.AppendLayout(w);
                disp.AppendLayout(h);
                disp.AppendLayout(t);
            }
            else
            {
                disp.AppendLayout(_Layout4A);
                disp.AppendLayout(x);
                disp.AppendLayout(y);
                disp.AppendLayout(w);
                disp.AppendLayout(h);
            }

            disp.AppendLayout(Hue <= 0 ? _Layout1 : _Layout2);
            disp.AppendLayout(x);
            disp.AppendLayout(y);
            disp.AppendLayout(c);

            if (Hue > 0)
            {
                disp.AppendLayout(FixHue(Hue, true));
            }

            const int bw = 2;

            if (t > 0)
            {
                disp.AppendLayout(_Layout3B);
                disp.AppendLayout(x);
                disp.AppendLayout(y);
                disp.AppendLayout(w);
                disp.AppendLayout(bw);
                disp.AppendLayout(t);

                disp.AppendLayout(_Layout3B);
                disp.AppendLayout(x);
                disp.AppendLayout(y);
                disp.AppendLayout(bw);
                disp.AppendLayout(h);
                disp.AppendLayout(t);

                disp.AppendLayout(_Layout3B);
                disp.AppendLayout(x);
                disp.AppendLayout(y + (h - bw));
                disp.AppendLayout(w);
                disp.AppendLayout(bw);
                disp.AppendLayout(t);

                disp.AppendLayout(_Layout3B);
                disp.AppendLayout(x + (w - bw));
                disp.AppendLayout(y);
                disp.AppendLayout(bw);
                disp.AppendLayout(h);
                disp.AppendLayout(t);
            }
            else
            {
                disp.AppendLayout(_Layout4B);
                disp.AppendLayout(x);
                disp.AppendLayout(y);
                disp.AppendLayout(w);
                disp.AppendLayout(bw);

                disp.AppendLayout(_Layout4B);
                disp.AppendLayout(x);
                disp.AppendLayout(y);
                disp.AppendLayout(bw);
                disp.AppendLayout(h);

                disp.AppendLayout(_Layout4B);
                disp.AppendLayout(x);
                disp.AppendLayout(y + (h - bw));
                disp.AppendLayout(w);
                disp.AppendLayout(bw);

                disp.AppendLayout(_Layout4B);
                disp.AppendLayout(x + (w - bw));
                disp.AppendLayout(y);
                disp.AppendLayout(bw);
                disp.AppendLayout(h);
            }
        }
        public override void AppendTo(IGumpWriter disp)
        {
            disp.AppendLayout(m_LayoutName);
            disp.AppendLayout(m_X);
            disp.AppendLayout(m_Y);
            disp.AppendLayout(m_ID1);
            disp.AppendLayout(m_ID2);
            disp.AppendLayout((int)m_Type);
            disp.AppendLayout(m_Param);
            disp.AppendLayout(m_ButtonID);
            disp.AppendLayout(m_ItemID);
            disp.AppendLayout(m_Hue);
            disp.AppendLayout(m_Width);
            disp.AppendLayout(m_Height);

            if (m_LocalizedTooltip > 0)
            {
                disp.AppendLayout(m_LayoutTooltip);
                disp.AppendLayout(m_LocalizedTooltip);
            }

        }
Ejemplo n.º 29
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(_Layout1);
			disp.AppendLayout(_Serial);
		}
Ejemplo n.º 30
0
 public override void AppendTo(NetState ns, IGumpWriter disp)
 {
     disp.AppendLayout(m_LayoutName);
     disp.AppendLayout(Number);
     disp.AppendLayout(Args);
 }
Ejemplo n.º 31
0
 public static void AppendTo(this GumpPage g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(Gump.StringToBuffer("page"));
     disp.AppendLayout(g.Page);
 }
Ejemplo n.º 32
0
            public override void AppendTo(NetState ns, IGumpWriter disp)
            {
                base.AppendTo(ns, disp);

                disp.AppendLayout(m_Class);
            }
Ejemplo n.º 33
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(_LayoutName);
			disp.AppendLayout(_X);
			disp.AppendLayout(_Y);
			disp.AppendLayout(_Width);
			disp.AppendLayout(_Height);
			disp.AppendLayout(_Hue);
			disp.AppendLayout(_EntryID);
			disp.AppendLayout(Container.RootParent.Intern(_InitialText));
			disp.AppendLayout(_Size);

			disp.TextEntries++;
		}
Ejemplo n.º 34
0
 public sealed override void AppendTo(IGumpWriter disp)
 {
     disp.AppendLayout(_Layout);
     disp.AppendLayout(GetHashCode());
 }
Ejemplo n.º 35
0
 public abstract void AppendTo(NetState ns, IGumpWriter disp);
Ejemplo n.º 36
0
 public override void AppendTo(IGumpWriter disp)
 {
     disp.AppendLayout(_Layout);
 }
Ejemplo n.º 37
0
		public abstract void AppendTo( NetState ns, IGumpWriter disp );
Ejemplo n.º 38
0
		public override void AppendTo(IGumpWriter disp)
		{
			if (_Width <= 1024 && _Height <= 786)
			{
				AppendTo(disp, _X, _Y, _Width, _Height);
				return;
			}

			var xx = _X;
			var ww = _Width;

			while (ww > 0)
			{
				var yy = _Y;
				var hh = _Height;

				var mw = Math.Min(1024, ww);

				while (hh > 0)
				{
					var mh = Math.Min(786, hh);

					AppendTo(disp, xx, yy, mw, mh);

					yy += mh;
					hh -= mh;
				}

				xx += mw;
				ww -= mw;
			}
		}
Ejemplo n.º 39
0
        public override void AppendTo(NetState ns, IGumpWriter disp)
        {
            StringEntry entry = ns.LTable[m_Number];

            if (entry != null)
            {
                if (entry.State == LState.Original)                   //Client Localized
                {
                    switch (m_Type)
                    {
                    case GumpHtmlLocalizedType.Plain:
                    {
                        disp.AppendLayout(m_LayoutNamePlain);

                        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);

                        break;
                    }

                    case GumpHtmlLocalizedType.Color:
                    {
                        disp.AppendLayout(m_LayoutNameColor);

                        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);
                        disp.AppendLayout(m_Color);

                        break;
                    }

                    case GumpHtmlLocalizedType.Args:
                    {
                        disp.AppendLayout(m_LayoutNameArgs);

                        disp.AppendLayout(m_X);
                        disp.AppendLayout(m_Y);
                        disp.AppendLayout(m_Width);
                        disp.AppendLayout(m_Height);
                        disp.AppendLayout(m_Background);
                        disp.AppendLayout(m_Scrollbar);
                        disp.AppendLayout(m_Color);
                        disp.AppendLayout(m_Number);
                        disp.AppendLayout(m_Args);

                        break;
                    }
                    }
                }
                else
                {
                    disp.AppendLayout(m_LayoutName);
                    disp.AppendLayout(m_X);
                    disp.AppendLayout(m_Y);
                    disp.AppendLayout(m_Width);
                    disp.AppendLayout(m_Height);

                    switch (m_Type)
                    {
                    case GumpHtmlLocalizedType.Plain:
                        disp.AppendLayout(Parent.Intern(entry.Text));
                        break;

                    case GumpHtmlLocalizedType.Color:
                        disp.AppendLayout(Parent.Intern(String.Format("<BASEFONT COLOR=#{1:X6}>{0}</BASEFONT>", entry.Text, m_Color)));
                        break;

                    case GumpHtmlLocalizedType.Args:
                        disp.AppendLayout(Parent.Intern(String.Format("<BASEFONT COLOR=#{1:X6}>{0}</BASEFONT>", entry.CombinedWithArguments(m_Args), m_Color)));
                        break;
                    }

                    disp.AppendLayout(m_Background);
                    disp.AppendLayout(m_Scrollbar);
                }
            }
        }
Ejemplo n.º 40
0
		public override void AppendTo(IGumpWriter disp)
		{
			var s = _ShadowAngle.GetPoint2D(_X, _Y, _ShadowOffset);

			disp.AppendLayout(_ShadowHue > 0 ? _Layout2A : _Layout1A);
			disp.AppendLayout(s.X);
			disp.AppendLayout(s.Y);
			disp.AppendLayout(_ItemID);

			if (_ShadowHue > 0)
			{
				disp.AppendLayout(FixHue(_ShadowHue));
			}

			disp.AppendLayout(_ItemHue > 0 ? _Layout2B : _Layout1B);
			disp.AppendLayout(_X);
			disp.AppendLayout(_Y);
			disp.AppendLayout(_ItemID);

			if (_ItemHue > 0)
			{
				disp.AppendLayout(FixHue(_ItemHue));
			}
		}
Ejemplo n.º 41
0
 public abstract void AppendTo(IGumpWriter disp);
		public override void AppendTo( IGumpWriter disp )
		{
			disp.AppendLayout( m_LayoutName );
			disp.AppendLayout( m_X );
			disp.AppendLayout( m_Y );
			disp.AppendLayout( m_ID1 );
			disp.AppendLayout( m_ID2 );
			disp.AppendLayout( (int) m_Type );
			disp.AppendLayout( m_Param );
			disp.AppendLayout( m_ButtonID );
		}
Ejemplo n.º 43
0
		public virtual void AppendTo(IGumpWriter disp, ref bool first, int x, int y, int w, int h, Color c)
		{
			disp.AppendLayout(first ? _Layout1A : _Layout1B);
			disp.AppendLayout(x);
			disp.AppendLayout(y);
			disp.AppendLayout(w);
			disp.AppendLayout(h);
			disp.AppendLayout(Parent.Intern(" ".WrapUOHtmlBG(c)));
			disp.AppendLayout(false);
			disp.AppendLayout(false);

			first = false;
		}
Ejemplo n.º 44
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(_LayoutName);
			disp.AppendLayout(_X);
			disp.AppendLayout(_Y);
			disp.AppendLayout(_ID1);
			disp.AppendLayout(_ID2);
			disp.AppendLayout((int)_Type);
			disp.AppendLayout(_Param);
			disp.AppendLayout(_EntryID);

			disp.AppendLayout(_ItemID);
			disp.AppendLayout(_Hue);
			disp.AppendLayout(_Width);
			disp.AppendLayout(_Height);

			if (_LocalizedTooltip > 0)
			{
				disp.AppendLayout(_LayoutTooltip);
				disp.AppendLayout(_LocalizedTooltip);
			}
		}
		public override void AppendTo( IGumpWriter 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( Parent.Intern( m_Text ) );
		}
Ejemplo n.º 46
0
 public static void AppendTo(this GumpItemProperty g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(Gump.StringToBuffer("itemproperty"));
     disp.AppendLayout(g.Serial);
 }
Ejemplo n.º 47
0
 public static void AppendTo(this GumpECHandleInput g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(Gump.StringToBuffer("echandleinput"));
 }
Ejemplo n.º 48
0
		public override void AppendTo(IGumpWriter disp)
		{
			switch (m_Type)
			{
				case GumpHtmlLocalizedType.Plain:
					{
						disp.AppendLayout(m_LayoutNamePlain);

						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);

						break;
					}

				case GumpHtmlLocalizedType.Color:
					{
						disp.AppendLayout(m_LayoutNameColor);

						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);
						disp.AppendLayout(m_Color);

						break;
					}

				case GumpHtmlLocalizedType.Args:
					{
						disp.AppendLayout(m_LayoutNameArgs);

						disp.AppendLayout(m_X);
						disp.AppendLayout(m_Y);
						disp.AppendLayout(m_Width);
						disp.AppendLayout(m_Height);
						disp.AppendLayout(m_Background);
						disp.AppendLayout(m_Scrollbar);
						disp.AppendLayout(m_Color);
						disp.AppendLayout(m_Number);
						disp.AppendLayout(m_Args);

						break;
					}
			}
		}
Ejemplo n.º 49
0
 public override void AppendTo(IGumpWriter disp)
 {
     disp.AppendLayout(m_LayoutName);
     disp.AppendLayout(m_Serial);
 }
Ejemplo n.º 50
0
            public override void AppendTo( IGumpWriter disp )
            {
                base.AppendTo( disp );

                disp.AppendLayout( m_Class );
            }
Ejemplo n.º 51
0
 public override void AppendTo(NetState ns, IGumpWriter disp)
 {
     disp.AppendLayout(m_LayoutName);
     disp.AppendLayout(m_Group);
 }
Ejemplo n.º 52
0
		public override void AppendTo(IGumpWriter disp)
		{
			var first = true;

			Color[] colors;
			int[] sizes;
			int count;

			if (GetSegments(out colors, out sizes, out count))
			{
				Color c;
				int s;

				for (int i = 0, o = 0; i < count; i++)
				{
					c = colors[i];
					s = sizes[i];

					if (!c.IsEmpty && c != Color.Transparent && s > 0)
					{
						switch (_Direction)
						{
							case Direction45.Down:
								AppendTo(disp, ref first, _X, _Y + o, _Width, s, c);
								break;
							case Direction45.Up:
								AppendTo(disp, ref first, _X, _Y + (_Height - (o + s)), _Width, s, c);
								break;
							case Direction45.Right:
								AppendTo(disp, ref first, _X + o, _Y, s, _Height, c);
								break;
							case Direction45.Left:
								AppendTo(disp, ref first, _X + (_Width - (o + s)), _Y, s, _Height, c);
								break;
						}
					}

					o += s;
				}
			}

			if (first)
			{
				AppendTo(disp, ref first, _X, _Y, _Width, _Height, Color.Transparent);
			}
		}
Ejemplo n.º 53
0
 public abstract void AppendTo(IGumpWriter disp);
Ejemplo n.º 54
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(_LayoutName);
			disp.AppendLayout(_X);
			disp.AppendLayout(_Y);
			disp.AppendLayout(_ID1);
			disp.AppendLayout(_ID2);
			disp.AppendLayout((int)_Type);
			disp.AppendLayout(_Param);
			disp.AppendLayout(_EntryID);
		}
Ejemplo n.º 55
0
        public override void AppendTo(IGumpWriter disp)
        {
            var x = _X;
            var y = _Y;

            if (_Centering.HasFlag(Axis.Horizontal))
            {
                x -= Width / 2;
            }

            if (_Centering.HasFlag(Axis.Vertical))
            {
                y -= Height / 2;
            }

            var val = GetString();

            for (int i = 0, s = 0; i < val.Length; i++)
            {
                switch (val[i])
                {
                case '-':
                {
                    disp.AppendLayout(_Layout1A);
                    disp.AppendLayout(x + s);
                    disp.AppendLayout(y + 12);
                    disp.AppendLayout(1433);

                    if (_Hue > 0)
                    {
                        disp.AppendLayout(_Layout1Hue);
                        disp.AppendLayoutNS(FixHue(_Hue));
                    }

                    s += 20;
                }
                    continue;

                case ':':
                {
                    disp.AppendLayout(_Layout1B);
                    disp.AppendLayout(x + s);
                    disp.AppendLayout(y + 7);
                    disp.AppendLayout(1433);

                    if (_Hue > 0)
                    {
                        disp.AppendLayout(_Layout1Hue);
                        disp.AppendLayoutNS(FixHue(_Hue));
                    }

                    disp.AppendLayout(_Layout1B);
                    disp.AppendLayout(x + s);
                    disp.AppendLayout(y + 17);
                    disp.AppendLayout(1433);

                    if (_Hue > 0)
                    {
                        disp.AppendLayout(_Layout1Hue);
                        disp.AppendLayoutNS(FixHue(_Hue));
                    }

                    s += 5;
                }
                    continue;

                default:
                {
                    disp.AppendLayout(i == 0 ? _Layout1A : _Layout1B);
                    disp.AppendLayout(x + s);
                    disp.AppendLayout(y);
                    disp.AppendLayout(1423 + Byte.Parse(val.Substring(i, 1)));

                    if (_Hue > 0)
                    {
                        disp.AppendLayout(_Layout1Hue);
                        disp.AppendLayoutNS(FixHue(_Hue));
                    }

                    s += 20;
                }
                    continue;
                }
            }
        }
Ejemplo n.º 56
0
		public override void AppendTo(IGumpWriter disp)
		{
			disp.AppendLayout(m_LayoutName);
			disp.AppendLayout(m_Number);
		}
Ejemplo n.º 57
0
 public static void AppendTo(this GumpGroup g, IGumpWriter disp, List <string> strings)
 {
     disp.AppendLayout(Gump.StringToBuffer("group"));
     disp.AppendLayout(g.Group);
 }