using System; using System.Diagnostics; using LavishScriptAPI; using MRBot.IsxEq2.Helpers; namespace MRBot.IsxEq2.UI { /// /// This DataType includes all of the data available to ISXEQ2 that is related to User Interface Pages. /// Many times, this refers to UI Windows; however, it is not restricted to that. /// public class EQ2Window : LavishScriptObject { #region Constructor /// /// Constructor /// /// LS Object public EQ2Window(LavishScriptObject copy) : base(copy) { } /// /// Constructor - Constructs a EQ2Window object based on the LavishScript object EQ2Window /// public EQ2Window() : base(LavishScript.Objects.GetObject("EQ2Window")) { } #endregion #region Members /// /// The Child UI Element /// /// type /// name /// EQ2UIElement public EQ2Widget Child(EQ2Widget.ElementType type, string name) { Trace.WriteLine(String.Format("EQ2Window:Child({0}, {1})", type.ToString(), name)); return new EQ2Widget(this.GetMember("Child", type.ToString(), name)); } /// /// Returns TRUE if the window is visible /// public bool IsVisible { get { Trace.WriteLine(String.Format("EQ2Window:IsVisible")); return this.GetBoolFromLSO("IsVisible"); } } #endregion } }