public LadderAreaControlGump(LadderAreaControl r) : base( 25, 25 ) { m_Controller = r; Closable = true; Dragable = true; Resizable = false; AddPage(0); AddBackground(23, 32, 412, 336, 9270); AddAlphaRegion(19, 29, 418, 443); AddButton(55, 46, 5569, 5570, (int)Buttons.SpellButton, GumpButtonType.Reply, 0); AddButton(55, 128, 5581, 5582, (int)Buttons.SkillButton, GumpButtonType.Reply, 0); AddButton(50, 205, 7006, 7006, (int)Buttons.AreaButton, GumpButtonType.Reply, 0); AddButton(50, 285, 227, 227, (int)Buttons.GateLocButton, GumpButtonType.Reply, 0); AddLabel(152, 70, 1152, "Edit Restricted Spells"); AddLabel(152, 153, 1152, "Edit Restricted Skills"); AddLabel(152, 234, 1152, "Add Region Area"); AddLabel(152, 314, 1152, "Set Gate Location" +"(" + m_Controller.GateSpot.ToString() + ")"); AddImage(353, 54, 3953); AddImage(353, 180, 3955); }
public override void Deserialize(GenericReader reader) { base.Deserialize(reader); int version = reader.ReadInt(); m_StartLoc1 = reader.ReadPoint3D(); m_StartLoc2 = reader.ReadPoint3D(); m_OutLoc = reader.ReadPoint3D(); m_GateLoc = reader.ReadPoint3D(); m_OutMap = reader.ReadMap(); m_InUse = reader.ReadBool(); m_Gate = (ConfirmationMoongate)reader.ReadItem(); m_LAC = (LadderAreaControl)reader.ReadItem(); TimeSpan span = reader.ReadTimeSpan(); m_CleanupTimeoutTime = DateTime.Now + span; if (span > TimeSpan.Zero) { m_Timer = new ArenaCleanUpTimer(span, this); m_Timer.Start(); } }
public GateLocTarget(LadderAreaControl store) : base( -1, true, TargetFlags.None ) { this.m_LAC = store; }