using System; using System.Diagnostics; using System.Globalization; using LavishScriptAPI; using MRBot.IsxEq2.Helpers; using MRBot.IsxEq2.InventoryConsignment; namespace MRBot.IsxEq2.UI { /// /// This DataType includes all of the data available to ISXEQ2 that is related to Item Examine windows. /// public class ExamineItemWindow : LavishScriptObject { #region Constructor /// /// Constructor /// /// LS Object public ExamineItemWindow(LavishScriptObject copy) : base(copy) { } #endregion #region Members /// /// Returns the item being examined as an item datatype object. /// (Note: All members of the item should be available without initialization when accessed via the examineitemwindow.) /// public Item ToItem { get { Trace.WriteLine(String.Format("ExamineItemWindow:ToItem")); return new Item(this.GetMember("ToItem")); } } /// /// Returns a "checkbox" eq2uielement type. /// public EQ2Widget GetPVPCheckbox { get { Trace.WriteLine(String.Format("ExamineItemWindow:GetPVPCheckbox")); return new EQ2Widget(this.GetMember("GetPVPCheckBox")); } } /// /// Number of "Texts" in the TextVector /// public int NumTextVector { get { Trace.WriteLine(String.Format("ExamineItemWindow:NumTextVector")); return this.GetIntFromLSO("NumTextVector"); } } /// /// Returns a "text" eq2uielement type /// /// index /// EQ2UIElement public EQ2Widget TextVector(int index) { Trace.WriteLine(String.Format("ExamineItemWindow:TextVector({0}})", index.ToString(CultureInfo.InvariantCulture))); return new EQ2Widget(this.GetMember("TextVector", index.ToString(CultureInfo.InvariantCulture))); } #endregion } }