Adds missing gump components. (#111)
This commit is contained in:
parent
18b7cee52a
commit
c116dff3e8
25 changed files with 531 additions and 1045 deletions
|
|
@ -28,9 +28,9 @@ namespace Server.Gumps
|
|||
Text = text;
|
||||
}
|
||||
|
||||
public int EntryID{ get; }
|
||||
public int EntryID { get; }
|
||||
|
||||
public string Text{ get; }
|
||||
public string Text { get; }
|
||||
}
|
||||
|
||||
public class RelayInfo
|
||||
|
|
@ -42,15 +42,15 @@ namespace Server.Gumps
|
|||
TextEntries = textEntries;
|
||||
}
|
||||
|
||||
public int ButtonID{ get; }
|
||||
public int ButtonID { get; }
|
||||
|
||||
public int[] Switches{ get; }
|
||||
public int[] Switches { get; }
|
||||
|
||||
public TextRelay[] TextEntries{ get; }
|
||||
public TextRelay[] TextEntries { get; }
|
||||
|
||||
public bool IsSwitched(int switchID)
|
||||
{
|
||||
for (int i = 0; i < Switches.Length; ++i)
|
||||
for (var i = 0; i < Switches.Length; ++i)
|
||||
if (Switches[i] == switchID)
|
||||
return true;
|
||||
|
||||
|
|
@ -59,11 +59,11 @@ namespace Server.Gumps
|
|||
|
||||
public TextRelay GetTextEntry(int entryID)
|
||||
{
|
||||
for (int i = 0; i < TextEntries.Length; ++i)
|
||||
for (var i = 0; i < TextEntries.Length; ++i)
|
||||
if (TextEntries[i].EntryID == entryID)
|
||||
return TextEntries[i];
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue