コード例 #1
0
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		public GumpNotResizable( string[] commands, BaseGump parent ) : base( commands, parent )
		{
		}
コード例 #2
0
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		public GumpPage( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_Page = GetInt32( 1 );
		}
コード例 #17
0
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		public GumpGroup( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_Group = GetInt32( 1 );
		}
コード例 #20
0
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		public GumpTooltip( string[] commands, BaseGump parent ) : base( commands, parent )
		{
			m_Number = GetInt32( 1 );
		}
コード例 #21
0
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		public GumpEntry( string[] commands, BaseGump parent )
		{
			m_Commands = commands;
			m_Parent = parent;
		}
コード例 #25
0
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		public GumpNotDisposable( string[] commands, BaseGump parent ) : base( commands, parent )
		{
		}
コード例 #27
0
ファイル: BaseGump.cs プロジェクト: cbnolok/SphereSvrSource
		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);
 }