I’ve found punk.ui on github, but it looks like its about 2 year stale. What is anybody using to great UI elements like menus, checkboxes and similar?
What do you use for UI?
There’s nothing that will work directly with flashpunk, however there are many libraries for AS3 that you can overlay on top of flashpunk (above the main FP buffer).
If you need it integrated directly into flashpunk I’d suggest just writing simple entities that do the behaviour you need.
thanks for the reply, do we have a repository or list of popular AS3 libraries for use with FP?
No, but I as people find the forums they will start popping up in the creations category.
awesome, I’m really happy this community sprang back to life with this fancy new site. I’m working on some UI stuff now and I’ll be happy to share a demo + code when it’s presentable.
I don’t really use anything specific, I tend to just use a button class I’ve knocked together that is an Entity containing a Spritemap with frames for ‘hovered’, ‘clicked’ and ‘disabled’, plus callbacks for when it’s hovered or clicked. Works well enough and doesn’t require extra fancy libraries or chunks of boilerplate code…
That said, if you need more advanced stuff like scrollbars and drag ‘n’ drop inventory systems then a more fully-featured GUI library wouldn’t go amiss!