using System; using System.Diagnostics; using System.Globalization; using LavishScriptAPI; using MRBot.IsxEq2.Helpers; namespace MRBot.IsxEq2.Utility { /// /// This DataType includes all of the data available through ISXEQ2 that is related to your radar. /// public class Radar : LavishScriptObject { #region Construct /// /// Constructor /// /// LS Object public Radar(LavishScriptObject copy) : base(copy) { } #endregion #region Members /// /// True if text clipping is on /// public bool ClippingTextOn { get { Trace.WriteLine(String.Format("Radar:ClippingTextOn")); return this.GetBoolFromLSO("ClippingTextOn"); } } /// /// True if radius clipping is on /// public bool ClipRadiusOn { get { Trace.WriteLine(String.Format("Radar:ClipRadiusOn")); return this.GetBoolFromLSO("ClipRadiusOn"); } } /// /// True if labels are colorized /// public bool ColorizingLabels { get { Trace.WriteLine(String.Format("Radar:ColorizingLabels")); return this.GetBoolFromLSO("ColorizingLabels"); } } /// /// Returns the filter at the selected index /// /// the index /// custom filter public string CustomFilter(int index) { Trace.WriteLine(String.Format("Radar:CustomFilter")); return this.GetStringFromLSO("CustomFilter", index.ToString(CultureInfo.InvariantCulture)); } /// /// A list of the custom filters in effect /// public string CustomFiltersList { get { Trace.WriteLine(String.Format("Radar:CustomFiltersList")); return this.GetStringFromLSO("CustomFiltersList"); } } /// /// The name of the object on the radar /// public string Name { get { Trace.WriteLine(String.Format("Radar:Name")); return this.GetStringFromLSO("Name"); } } /// /// Returns the number of filters active on the radar /// public int NumCustomFilters { get { Trace.WriteLine(String.Format("Radar:NumCustomFilters")); return this.GetIntFromLSO("NumCustomFilters"); } } /// /// True if radar rotation is on /// public bool RotationOn { get { Trace.WriteLine(String.Format("Radar:RotationOn")); return this.GetBoolFromLSO("RotationOn"); } } /// /// True if the radar is displaying Aggro NPCs /// public bool ShowingAggroNPCs { get { Trace.WriteLine(String.Format("Radar:ShowingAggroNPCs")); return this.GetBoolFromLSO("ShowingAggroNPCs"); } } /// /// True if the radar is displating chests /// public bool ShowingChests { get { Trace.WriteLine(String.Format("Radar:ShowingChests")); return this.GetBoolFromLSO("ShowingChests"); } } /// /// True if the radar is displaying corpses /// public bool ShowingCorpses { get { Trace.WriteLine(String.Format("Radar:ShowingCorpses")); return this.GetBoolFromLSO("ShowingCorpses"); } } /// /// True if the radar is showing doors /// public bool ShowingDoors { get { Trace.WriteLine(String.Format("Radar:ShowingDoors")); return this.GetBoolFromLSO("ShowingDoors"); } } /// /// True if the radar is showing labels /// public bool ShowingLabels { get { Trace.WriteLine(String.Format("Radar:ShowingLabels")); return this.GetBoolFromLSO("ShowingLabels"); } } /// /// True if the radar is showing the client /// public bool ShowingMe { get { Trace.WriteLine(String.Format("Radar:ShowingMe")); return this.GetBoolFromLSO("ShowingMe"); } } /// /// True if Showing Mercenaries /// public bool ShowingMercenaries { get { Trace.WriteLine(String.Format("Radar:ShowingMercenaries")); return this.GetBoolFromLSO("ShowingMercenaries"); } } /// /// True if the radar is displaying client's pet /// public bool ShowingMyPet { get { Trace.WriteLine(String.Format("Radar:ShowingMyPet")); return this.GetBoolFromLSO("ShowingMyPet"); } } /// /// True if the radar is showing Named NPCs /// public bool ShowingNamedNPCs { get { Trace.WriteLine(String.Format("Radar:ShowingNamedNPCs")); return this.GetBoolFromLSO("ShowingNamedNPCs"); } } /// /// True if the radar is displaying NPCs that cannot be attacked /// public bool ShowingNoKillNPCs { get { Trace.WriteLine(String.Format("Radar:ShowingNoKillNPCs")); return this.GetBoolFromLSO("ShowingNoKillNPCs"); } } /// /// True if the radar is showing NPCs /// public bool ShowingNPCs { get { Trace.WriteLine(String.Format("Radar:ShowingNPCs")); return this.GetBoolFromLSO("ShowingNPCs"); } } /// /// True if the radar is displaying PCs /// public bool ShowingPCs { get { Trace.WriteLine(String.Format("Radar:ShowingPCs")); return this.GetBoolFromLSO("ShowingPCs"); } } /// /// True if the radar is displaying pets /// public bool ShowingPets { get { Trace.WriteLine(String.Format("Radar:ShowingPets")); return this.GetBoolFromLSO("ShowingPets"); } } /// /// True if the radar is showing Resources /// public bool ShowingResources { get { Trace.WriteLine(String.Format("Radar:ShowingResources")); return this.GetBoolFromLSO("ShowingResources"); } } /// /// True if the radar is showing Specials /// public bool ShowingSpecials { get { Trace.WriteLine(String.Format("Radar:ShowingSpecials")); return this.GetBoolFromLSO("ShowingSpecials"); } } /// /// True if the radar is displaying Tradeskill units /// public bool ShowingTSUnits { get { Trace.WriteLine(String.Format("Radar:ShowingTSUnits")); return this.GetBoolFromLSO("ShowingTSUnits"); } } /// /// True if the radar is displaying unknowns /// public bool ShowingUnknowns { get { Trace.WriteLine(String.Format("Radar:ShowingUnknowns")); return this.GetBoolFromLSO("ShowingUnknowns"); } } /// /// The value used for "zooming" /// public int Size { get { Trace.WriteLine(String.Format("Radar:Size")); return this.GetIntFromLSO("Size"); } } /// /// True if Y Axis Clipping is on /// public bool YAxisClippingOn { get { Trace.WriteLine(String.Format("Radar:YAvisClippingOn")); return this.GetBoolFromLSO("YAxisClippingOn"); } } #endregion #region Methods /// /// Toggles the custom filter "Clip Radius" /// /// call success public bool ClipRadius() { Trace.WriteLine(String.Format("Radar:ClipRadius()")); return this.ExecuteMethod("ClipRadius"); } /// /// Toggles the custom filter "Show Text" /// /// call success public bool ClipText() { Trace.WriteLine(String.Format("Radar:ClipText()")); return this.ExecuteMethod("ClipText"); } /// /// Toggles the custom filter "Show Con Color" /// /// call success public bool ColorizeLabels() { Trace.WriteLine(String.Format("Radar:ColorizeLabels()")); return this.ExecuteMethod("ColorizeLabels"); } /// /// Toggles the custom filter "Show Aggro" /// /// call success public bool FilterAggroNPCs() { Trace.WriteLine(String.Format("Radar:FilterAggroNPCs()")); return this.ExecuteMethod("FilterAggroNPCs"); } /// /// Toggles the custom filter "Show Chests" /// /// call success public bool FilterChests() { Trace.WriteLine(String.Format("Radar:FilterChests()")); return this.ExecuteMethod("FilterChests"); } /// /// Toggles the custom filter "Show Corpses" /// /// call success public bool FilterCorpses() { Trace.WriteLine(String.Format("Radar:FilterCorpses()")); return this.ExecuteMethod("FilterCorpses"); } /// /// Toggles the custom filter "Show Doors" /// /// call success public bool FilterDoors() { Trace.WriteLine(String.Format("Radar:FilterDoors()")); return this.ExecuteMethod("FilterDoors"); } /// /// Toggles the custom filter "Show Me" /// /// call success public bool FilterMe() { Trace.WriteLine(String.Format("Radar:FilterMe()")); return this.ExecuteMethod("FilterMe"); } /// /// Toggle the "Show Mercenaries" filter /// /// call success public bool FilterMercenaries() { Trace.WriteLine(String.Format("Radar:FilterMercenaries()")); return this.ExecuteMethod("FilterMercenaries"); } /// /// Toggles the custom filter "Show My Pet" /// /// call success public bool FilterMyPet() { Trace.WriteLine(String.Format("Radar:FilterMyPet()")); return this.ExecuteMethod("FilterMyPet"); } /// /// Toggles the custom filter "Show Named" /// /// call success public bool FilterNamedNPCs() { Trace.WriteLine(String.Format("Radar:FilterNamedNPCs()")); return this.ExecuteMethod("FilterNamedNPCs"); } /// /// Toggles the "Show NoKillNPCs" filter /// /// call success public bool FilterNoKillNPCs() { Trace.WriteLine(String.Format("Radar:FilterNoKillNPCs()")); return this.ExecuteMethod("FilterNoKillNPCs"); } /// /// Toggles the custom filter "Show NPCs" /// /// call success public bool FilterNPCs() { Trace.WriteLine(String.Format("Radar:FilterNPCs()")); return this.ExecuteMethod("FilterNPCs"); } /// /// Toggles the custom filter "Show PCs" /// /// call success public bool FilterPCs() { Trace.WriteLine(String.Format("Radar:FilterNPCs()")); return this.ExecuteMethod("FilterPCs"); } /// /// Toggles the custom filter "Show Pets" /// /// call success public bool FilterPets() { Trace.WriteLine(String.Format("Radar:FilterPets()")); return this.ExecuteMethod("FilterPets"); } /// /// Toggles the custom filter "Show Resources" /// /// call success public bool FilterResources() { Trace.WriteLine(String.Format("Radar:FilterResources()")); return this.ExecuteMethod("FilterResources"); } /// /// Toggles the custom filter "Show Specials" /// /// call success public bool FilterSpecials() { Trace.WriteLine(String.Format("Radar:FilterSpecials()")); return this.ExecuteMethod("FilterSpecials"); } /// /// Toggles the custom filter "Show Tradeskill" /// /// call success public bool FilterTSUnits() { Trace.WriteLine(String.Format("Radar:FilterTSUnits()")); return this.ExecuteMethod("FilterTSUnits"); } /// /// Toggles the custom filter "Show Unknowns" /// /// call success public bool FilterUnknowns() { Trace.WriteLine(String.Format("Radar:FilterUnknowns()")); return this.ExecuteMethod("FilterUnknowns"); } /// /// Toggles radar rotation /// /// call success public bool Rotation() { Trace.WriteLine(String.Format("Radar:Rotation()")); return this.ExecuteMethod("Rotation"); } /// /// Used to toggle a specific custom filter /// /// The selected filter to toggle /// call success public bool SetCustomFilter(string filter) { Trace.WriteLine(String.Format("Radar:SetCustomFilter({0})", filter)); return this.ExecuteMethod("SetCustomFilter", filter); } /// /// Sets the "zoom" of the radar /// /// the new zoom /// call success public bool SetSize(int size) { Trace.WriteLine(String.Format("Radar:SetSize({0})", size.ToString(CultureInfo.InvariantCulture))); return this.ExecuteMethod("SetSize", size.ToString(CultureInfo.InvariantCulture)); } /// /// Toggles the custom filter "Show Labels" /// /// call success public bool ShowLabels() { Trace.WriteLine(String.Format("Radar:ShowLabels()")); return this.ExecuteMethod("ShowLabels"); } /// /// Toggles the custom filter "Y-axis Clipping" /// /// call success public bool YAxisClipping() { Trace.WriteLine(String.Format("Radar:YAxisClipping()")); return this.ExecuteMethod("YAxisClipping"); } #endregion } }