Skip to content

Add HoverPreview #94

Open
Mercury-devs wants to merge 3 commits into
Facepunch:masterfrom
Mercury-devs:HoverPreviewComponent
Open

Add HoverPreview #94
Mercury-devs wants to merge 3 commits into
Facepunch:masterfrom
Mercury-devs:HoverPreviewComponent

Conversation

@Mercury-devs
Copy link
Copy Markdown

Summary

Added the HoverPreview component for UI elements.

Buttons and other elements can now show a preview panel on hover. Preview content is configured through JSON and can include a title, description, image, colors, fonts, alignment, and fade animation.

What changed

  • Added HoverPreviewComponent for handling hover events.
  • Added HoverPreviewRoot for displaying preview content.
  • Added JSON support for:
    • title
    • description
    • image
    • colors
    • font sizes
    • spacing
    • alignment
    • fade in / fade out
    • hiding the preview on pointer exit
  • Preview does not block clicks or hover events.
  • Added a test JSON with multiple buttons.
HoverPreivew.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant