Пример #1
0
		public GumpNotResizable( string[] commands, BaseGump parent ) : base( commands, parent )
		{
		}
Пример #2
0
		public GumpItemColor( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_GumpId = GetInt32( 3 );
			m_Color = GetInt32( 4 );
		}
Пример #3
0
 public GumpPage(string[] commands, BaseGump parent) : base(commands, parent)
 {
     m_Page = GetInt32(1);
 }
Пример #4
0
		public GumpHtmlLocalizedArgs( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_Width = GetInt32( 3 );
			m_Height = GetInt32( 4 );
			m_Background = GetBoolean( 5 );
			m_Scrollbar = GetBoolean( 6 );
			m_Color = GetInt32( 7 );
			m_Number = GetInt32( 8 );
			m_Args = GetString( 9 );
		}
Пример #5
0
		public GumpImageTiled( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_Width = GetInt32( 3 );
			m_Height = GetInt32( 4 );
			m_GumpId = GetInt32( 5 );
		}
Пример #6
0
		public GumpCheck( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_InactiveId = GetInt32( 3 );
			m_ActiveId = GetInt32( 4 );
			m_InitialState = GetBoolean( 5 );
			m_SwitchId = GetInt32( 6 );
		}
Пример #7
0
		public GumpHtml( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_Width = GetInt32( 3 );
			m_Height = GetInt32( 4 );
			m_Text = GetText( GetInt32( 5 ) );
			m_Background = GetBoolean( 6 );
			m_Scrollbar = GetBoolean( 7 );
		}
Пример #8
0
 public GumpGroup(string[] commands, BaseGump parent) : base(commands, parent)
 {
     m_Group = GetInt32(1);
 }
Пример #9
0
		public GumpLabelCropped( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_Width = GetInt32( 3 );
			m_Height = GetInt32( 4 );
			m_Color = GetInt32( 5 );
			m_Text = GetText( GetInt32( 6 ) );
		}
Пример #10
0
 public GumpNotDisposable(string[] commands, BaseGump parent) : base(commands, parent)
 {
 }
Пример #11
0
 public GumpNotResizable(string[] commands, BaseGump parent) : base(commands, parent)
 {
 }
Пример #12
0
 public GumpEntry(string[] commands, BaseGump parent)
 {
     m_Commands = commands;
     m_Parent   = parent;
 }
Пример #13
0
        public static GumpEntry Create(string[] commands, BaseGump parent)
        {
            string command = commands[0].ToLower();

            switch (command)
            {
            case "nomove":
                return(new GumpNotDragable(commands, parent));

            case "noclose":
                return(new GumpNotClosable(commands, parent));

            case "nodispose":
                return(new GumpNotDisposable(commands, parent));

            case "noresize":
                return(new GumpNotResizable(commands, parent));

            case "checkertrans":
                return(new GumpAlphaRegion(commands, parent));

            case "resizepic":
                return(new GumpBackground(commands, parent));

            case "button":
                return(new GumpButton(commands, parent));

            case "checkbox":
                return(new GumpCheck(commands, parent));

            case "group":
                return(new GumpGroup(commands, parent));

            case "htmlgump":
                return(new GumpHtml(commands, parent));

            case "xmfhtmlgump":
                return(new GumpHtmlLocalized(commands, parent));

            case "xmfhtmlgumpcolor":
                return(new GumpHtmlLocalizedColor(commands, parent));

            case "xmfhtmltok":
                return(new GumpHtmlLocalizedArgs(commands, parent));

            case "gumppic":
                return(new GumpImage(commands, parent));

            case "gumppictiled":
                return(new GumpImageTiled(commands, parent));

            case "buttontileart":
                return(new GumpImageTiledButton(commands, parent));

            case "tilepic":
                return(new GumpItem(commands, parent));

            case "tilepichue":
                return(new GumpItemColor(commands, parent));

            case "text":
                return(new GumpLabel(commands, parent));

            case "croppedtext":
                return(new GumpLabelCropped(commands, parent));

            case "page":
                return(new GumpPage(commands, parent));

            case "radio":
                return(new GumpRadio(commands, parent));

            case "textentry":
                return(new GumpTextEntry(commands, parent));

            case "tooltip":
                return(new GumpTooltip(commands, parent));

            default:
                throw new ArgumentException();
            }
        }
Пример #14
0
 public GumpTooltip(string[] commands, BaseGump parent) : base(commands, parent)
 {
     m_Number = GetInt32(1);
 }
Пример #15
0
		public GumpAlphaRegion( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_Width = GetInt32( 3 );
			m_Height = GetInt32( 4 );
		}
Пример #16
0
		public GumpPage( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_Page = GetInt32( 1 );
		}
Пример #17
0
		public GumpButton( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_NormalId = GetInt32( 3 );
			m_PressedId = GetInt32( 4 );
			m_Type = GetInt32( 5 );
			m_Param = GetInt32( 6 );
			m_ButtonId = GetInt32( 7 );
		}
Пример #18
0
		public GumpTextEntry( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_Width = GetInt32( 3 );
			m_Height = GetInt32( 4 );
			m_Color = GetInt32( 5 );
			m_EntryId = GetInt32( 6 );
			m_InitialText = GetText( GetInt32( 7 ) );
		}
Пример #19
0
		public GumpGroup( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_Group = GetInt32( 1 );
		}
Пример #20
0
		public GumpTooltip( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_Number = GetInt32( 1 );
		}
Пример #21
0
		public GumpHtmlLocalized( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_Width = GetInt32( 3 );
			m_Height = GetInt32( 4 );
			m_Number = GetInt32( 5 );

			if ( commands.Length < 8 )
			{
				m_Background = false;
				m_Scrollbar = false;
			}
			else
			{
				m_Background = GetBoolean( 6 );
				m_Scrollbar = GetBoolean( 7 );
			}
		}
Пример #22
0
		public static GumpEntry Create( string[] commands, BaseGump parent )
		{
			string command = commands[0].ToLower();
			switch ( command )
			{
				case "nomove":
					return new GumpNotDragable( commands, parent );
				case "noclose":
					return new GumpNotClosable( commands, parent );
				case "nodispose":
					return new GumpNotDisposable( commands, parent );
				case "noresize":
					return new GumpNotResizable( commands, parent );
				case "checkertrans":
					return new GumpAlphaRegion( commands, parent );
				case "resizepic":
					return new GumpBackground( commands, parent );
				case "button":
					return new GumpButton( commands, parent );
				case "checkbox":
					return new GumpCheck( commands, parent );
				case "group":
					return new GumpGroup( commands, parent );
				case "htmlgump":
					return new GumpHtml( commands, parent );
				case "xmfhtmlgump":
					return new GumpHtmlLocalized( commands, parent );
				case "xmfhtmlgumpcolor":
					return new GumpHtmlLocalizedColor( commands, parent );
				case "xmfhtmltok":
					return new GumpHtmlLocalizedArgs( commands, parent );
				case "gumppic":
					return new GumpImage( commands, parent );
				case "gumppictiled":
					return new GumpImageTiled( commands, parent );
				case "buttontileart":
					return new GumpImageTiledButton( commands, parent );
				case "tilepic":
					return new GumpItem( commands, parent );
				case "tilepichue":
					return new GumpItemColor( commands, parent );
				case "text":
					return new GumpLabel( commands, parent );
				case "croppedtext":
					return new GumpLabelCropped( commands, parent );
				case "page":
					return new GumpPage( commands, parent );
				case "radio":
					return new GumpRadio( commands, parent );
				case "textentry":
					return new GumpTextEntry( commands, parent );
				case "tooltip":
					return new GumpTooltip( commands, parent );

				default:
					throw new ArgumentException();
			}
		}
Пример #23
0
		public GumpImage( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_GumpId = GetInt32( 3 );

			if ( commands.Length > 4 )
				m_Color = Int32.Parse( commands[4].Substring( 4 ) );
			else
				m_Color = 0;
		}
Пример #24
0
		public GumpEntry( string[] commands, BaseGump parent )
		{
			m_Commands = commands;
			m_Parent = parent;
		}
Пример #25
0
		public GumpImageTiledButton( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_NormalID = GetInt32( 3 );
			m_PressedID = GetInt32( 4 );
			m_Type = GetInt32( 5 );
			m_Param = GetInt32( 6 );
			m_ButtonID = GetInt32( 7 );
			m_ItemID = GetInt32( 8 );
			m_Hue = GetInt32( 9 );
			m_Width = GetInt32( 10 );
			m_Height = GetInt32( 11 );
		}
Пример #26
0
		public GumpNotDisposable( string[] commands, BaseGump parent ) : base( commands, parent )
		{
		}
Пример #27
0
		public GumpLabel( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_X = GetInt32( 1 );
			m_Y = GetInt32( 2 );
			m_Color = GetInt32( 3 );
			m_Text = GetText( GetInt32( 4 ) );
		}
Пример #28
0
 public GumpItem(string[] commands, BaseGump parent) : base(commands, parent)
 {
     m_X      = GetInt32(1);
     m_Y      = GetInt32(2);
     m_GumpId = GetInt32(3);
 }