コード例 #1
0
 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);
         }
     }
 }
コード例 #2
0
 public bool Equals(UIRegion other)
 {
     return(mName == other.mName);
 }
コード例 #3
0
 public void AddRegion(UIRegion region)
 {
     mRegions.Add(region);
 }
コード例 #4
0
 public void RegisterButton(UIRegion region)
 {
     mLightWeightButtons.Add(region);
 }