Dyna | UI Interaction Module

:shopping_cart: Marketplace

What is Dyna? Dyna is a module that allows UI interactivity using OOP.
You can use it for Hover and Click events.

Why Dyna:

  • Simplifies UI code
  • Handles Click and Hover events
  • Keeps track of Animated and Default states
  • Supports a wide range of UI properties
  • Improves Workflow

Dyna was made originally for personal use, I understand there are reasons not to use it.
This is more experiential, not completely finished.

Simple Hover UI:

local new = dyna.init(script.Parent.Frame, false)
	:setRef("Size", UDim2.new(0,200,0,200), tween)
	:setRef("BackgroundColor3", Color3.new(1, 1, 1), tween)

new:hover()
	:set("Size", UDim2.new(0,300,0,300), tween)
	:start(function()
		print("Hover Start")
	end)
	:stop(function()
		print("Hover Stop")
	end)

The code itself has documentation embedded.
If you have any questions, just ask!

2 Likes

Seems interesting, But isnt it easier without this Module?

1 Like

Just saves a few lines, I mostly use it to tidy up UI code

1 Like