Ejemplo n.º 1
0
 private void Button_PostDrawSelf(UIDrawEvent e, UIElement sender)
 {
     if (sender.IsMouseHover)
     {
         e.SpriteBatch.Draw(UIEditor.Instance.SkinManager.GetTexture("EditorIcon_White"), Vector2.Zero, null, Color.White, 0, Vector2.Zero,
                            new Vector2(1, 1), SpriteEffects.None, 0f);
     }
 }
Ejemplo n.º 2
0
 private void UIColorRect_PostDrawSelf(UIDrawEvent e, UIElement sender)
 {
     e.SpriteBatch.Draw(ModContent.GetTexture("UIEditor/Images/WhiteCircle"), new Vector2(Width * SV.X, Height * (1 - SV.Y)), null, Color.White, 0f, new Vector2(8f, 8f), 1f, SpriteEffects.None, 0f);
 }