josefnpat / vapor

Vapor - LÖVE Distribution Client
zlib License
77 stars 24 forks source link

Download button is hidden when opening Vapor #129

Closed Yonaba closed 10 years ago

Yonaba commented 10 years ago

Hi,

Adding this single line makes the download button hidden (and unavailable) when opening Vapor. As such, only the description "Welcome to Vapor" is visible. The button becomes visible when the user clicks on any game in the list.

Regards, Roland.

josefnpat commented 10 years ago

I didn't realize it was so easy to hide buttons in LoveFrames!

Thanks!

Yonaba commented 10 years ago

Actually, it was quite like a hack. Or maybe @nikolairesokav completely forgot to add a (get/set)Visible() method to LoveFrames button class API. I was expecting such a method, but I couldn't find it, then I decided to alter the visible property of the download button.

josefnpat commented 10 years ago

Ah!

While :SetVisible is not in the button docs, it is in the base docs:

http://nikolairesokav.com/projects/loveframes/docs/objects/base

Will push a working change momentarily.

Yonaba commented 10 years ago

Ah...Silly me. Of course, the Button object inherits from the Base object, which already implements (get/set)Visible...