Example #1
0
 //Construct and make active the section
 public void ConstructSection(BaseGumpSection section)
 {
     if (section != null)
     {
         ConstructAddedSection(AddActiveSection(section));
     }
 }
Example #2
0
        public virtual BaseGumpSection GetDefaultSection()
        {
            if (m_DefaultActiveCategory >= 0 && m_Categories.Count > 0)
            {
                BaseGumpSection section = m_Categories[m_DefaultActiveCategory];
                if (section != null)
                {
                    return(section);
                }
            }

            return(null);
        }
 public BaseCategoryListSection( BaseGumpSection parent, int mod_x, int mod_y, int activecat )
     : this(parent, mod_x, mod_y)
 {
     m_DefaultActiveCategory = activecat;
 }
Example #4
0
 public abstract void DisplayCategory(int x, int y, BaseGumpSection section, GumpResponse response);
Example #5
0
 public GumpResponse(BaseGumpSection section, GumpResponseHandler handler) : this(section, handler, 0)
 {
 }
 public BaseGumpListSection( BaseGumpSection parent, int mod_x, int mod_y )
     : base(parent, mod_x, mod_y)
 {
 }
		public BaseGumpSection( BaseGumpSection parent, int mod_x, int mod_y ) : this( parent != null ? parent.RootParent : null, mod_x, mod_y )
		{
			m_Parent = parent;
		}
		public GumpResponse NewResponse( BaseGumpSection section, GumpResponseHandler handler )
		{
			return new GumpResponse( section, handler, 0 );
		}
		//Construct already active section
		public virtual void ConstructAddedSection( BaseGumpSection section )
		{
			section.ActiveSections.Clear();
			section.Construct( m_ButtonCount, m_TextEntryCount, m_SwitchCount );
		}
Example #10
0
		public GumpResponse( BaseGumpSection section, GumpResponseHandler handler, int localid )
		{
			m_Section = section;
			m_Handler = handler;
			m_LocalButtonID = localid;
		}
Example #11
0
		public GumpResponse( BaseGumpSection section, GumpResponseHandler handler ) : this ( section, handler, 0 )
		{
		}
Example #12
0
 public virtual void SetActiveCategory(BaseGumpSection section)
 {
     m_ActiveCategory = section;
 }
Example #13
0
 public BaseCategoryListSection(BaseGumpSection parent, int mod_x, int mod_y, int activecat) : this(parent, mod_x, mod_y)
 {
     m_DefaultActiveCategory = activecat;
 }
 public virtual void AddCategory( BaseGumpSection section )
 {
     m_Categories.Add( section );
 }
Example #15
0
 public virtual BaseGumpSection AddActiveSection(BaseGumpSection section)
 {
     m_ActiveSections.Add(section);
     return(section);
 }
		//Construct and make active the section
		public void ConstructSection( BaseGumpSection section )
		{
			if ( section != null )
				ConstructAddedSection( AddActiveSection( section ) );
		}
Example #17
0
 public GumpResponse NewResponse(BaseGumpSection section, GumpResponseHandler handler)
 {
     return(new GumpResponse(section, handler, 0));
 }
		public virtual BaseGumpSection AddActiveSection( BaseGumpSection section )
		{
			m_ActiveSections.Add( section );
			return section;
		}
Example #19
0
 public virtual GumpResponse NewResponse(BaseGumpSection section, GumpResponseHandler handler, int localid)
 {
     return(new GumpResponse(section, handler, localid));
 }
		public virtual GumpResponse NewResponse( BaseGumpSection section, GumpResponseHandler handler, int localid )
		{
			return new GumpResponse( section, handler, localid );
		}
Example #21
0
 public BaseGumpSection(BaseGumpSection parent, int mod_x, int mod_y) : this(parent != null ? parent.RootParent : null, mod_x, mod_y)
 {
     m_Parent = parent;
 }
Example #22
0
 public virtual void ConstructSection(BaseGumpSection section)
 {
     section.ActiveSections.Clear();
     section.Construct(m_ButtonCount, m_TextEntryCount, m_SwitchCount);
 }
 public abstract void DisplayCategory( int x, int y, BaseGumpSection section, GumpResponse response );
 public BaseGumpListSection(BaseGumpSection parent, int mod_x, int mod_y) : base(parent, mod_x, mod_y)
 {
 }
 public virtual void SetActiveCategory( BaseGumpSection section )
 {
     m_ActiveCategory = section;
 }
Example #26
0
 public GumpResponse(BaseGumpSection section, GumpResponseHandler handler, int localid)
 {
     m_Section       = section;
     m_Handler       = handler;
     m_LocalButtonID = localid;
 }
Example #27
0
 public virtual void AddCategory(BaseGumpSection section)
 {
     m_Categories.Add(section);
 }