예제 #1
0
 public static bool RightClickInTexture(Texture2D tex, Vector2 offset) => (RightClick() && Simplex.OffsettedTexture(tex, offset).Contains(Mouse.GetState().Position.ToVector2()));
예제 #2
0
 public static bool MouseHoverOverTex(Texture2D tex, Vector2 offset) => (Simplex.OffsettedTexture(tex, offset).Contains(Mouse.GetState().Position.ToVector2()));