public void Draw(bool mouseDown, float MouseX, float MouseY) { if (mRegions.Count == 0) { Draw(mouseDown, MouseX, MouseY, 0, mParent.Height); } else { UIRegion region = GetSelectedRegion(MouseX, MouseY); if (region != null) { Draw(mouseDown, MouseX, MouseY, region.mRect.Top * mParent.Height, region.mRect.Bottom * mParent.Height); } } }
public bool Equals(UIRegion other) { return(mName == other.mName); }
public void AddRegion(UIRegion region) { mRegions.Add(region); }
public void RegisterButton(UIRegion region) { mLightWeightButtons.Add(region); }