gump errata (thanks vorspire)
This commit is contained in:
parent
ddcc4e7a20
commit
0e31731d01
2 changed files with 11 additions and 13 deletions
|
|
@ -330,6 +330,9 @@ namespace Server.Gumps
|
|||
|
||||
public void Remove( GumpEntry g )
|
||||
{
|
||||
if (g == null || !m_Entries.Contains(g))
|
||||
return;
|
||||
|
||||
Invalidate();
|
||||
m_Entries.Remove( g );
|
||||
g.Parent = null;
|
||||
|
|
|
|||
|
|
@ -70,24 +70,19 @@ namespace Server.Gumps
|
|||
}
|
||||
}
|
||||
|
||||
public Gump Parent
|
||||
{
|
||||
get
|
||||
{
|
||||
public Gump Parent {
|
||||
get {
|
||||
return m_Parent;
|
||||
}
|
||||
set
|
||||
{
|
||||
if ( m_Parent != value )
|
||||
{
|
||||
if ( m_Parent != null )
|
||||
{
|
||||
m_Parent.Remove( this );
|
||||
}
|
||||
set {
|
||||
if (m_Parent != value) {
|
||||
if (m_Parent != null)
|
||||
m_Parent.Remove(this);
|
||||
|
||||
m_Parent = value;
|
||||
|
||||
m_Parent.Add( this );
|
||||
if (m_Parent != null)
|
||||
m_Parent.Add(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue