private float _GetZValue(CInteraction interact) { switch (interact.Type) { case EType.TStatic: return(_Statics[interact.Num].Rect.Z); case EType.TText: return(_Texts[interact.Num].Z); case EType.TButton: return(_Buttons[interact.Num].Rect.Z); case EType.TSelectSlide: return(_SelectSlides[interact.Num].Rect.Z); } return(CSettings.zFar); }
private bool _IsMouseOver(int x, int y, CInteraction interact) { switch (interact.Type) { case EType.TButton: if (CHelper.IsInBounds(_Buttons[interact.Num].Rect, x, y)) { return(true); } break; case EType.TSelectSlide: if (CHelper.IsInBounds(_SelectSlides[interact.Num].Rect, x, y) || CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowLeft, x, y) || CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowRight, x, y)) { return(true); } break; } return(false); }
private bool _IsMouseOver(int x, int y, CInteraction interact) { switch (interact.Type) { case EType.TButton: if (CHelper.IsInBounds(_Buttons[interact.Num].Rect, x, y)) return true; break; case EType.TSelectSlide: if (CHelper.IsInBounds(_SelectSlides[interact.Num].Rect, x, y) || CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowLeft, x, y) || CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowRight, x, y)) return true; break; case EType.TStatic: if (CHelper.IsInBounds(_Statics[interact.Num].Rect, x, y)) return true; break; case EType.TText: RectangleF bounds = CDraw.GetTextBounds(_Texts[interact.Num]); if (CHelper.IsInBounds(new SRectF(_Texts[interact.Num].X, _Texts[interact.Num].Y, bounds.Width, bounds.Height, _Texts[interact.Num].Z), x, y)) return true; break; case EType.TSongMenu: if (CHelper.IsInBounds(_SongMenus[interact.Num].Rect, x, y)) return true; break; case EType.TLyric: if (CHelper.IsInBounds(_Lyrics[interact.Num].Rect, x, y)) return true; break; } return false; }
private float _GetZValue(CInteraction interact) { switch (interact.Type) { case EType.TButton: return _Buttons[interact.Num].Rect.Z; case EType.TSelectSlide: return _SelectSlides[interact.Num].Rect.Z; case EType.TStatic: return _Statics[interact.Num].Rect.Z; case EType.TSongMenu: return _SongMenus[interact.Num].Rect.Z; case EType.TText: return _Texts[interact.Num].Z; case EType.TLyric: return _Lyrics[interact.Num].Rect.Z; } return CSettings.zFar; }
private bool _IsMouseOver(int x, int y, CInteraction interact) { switch (interact.Type) { case EType.TButton: if (CHelper.IsInBounds(_Buttons[interact.Num].Rect, x, y)) return true; break; case EType.TSelectSlide: if (CHelper.IsInBounds(_SelectSlides[interact.Num].Rect, x, y) || CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowLeft, x, y) || CHelper.IsInBounds(_SelectSlides[interact.Num].RectArrowRight, x, y)) return true; break; } return false; }