Löve Frames - A GUI Library

Showcase your libraries, tools and other projects that help your fellow love users.
Ford_Prefect
Prole
Posts: 31
Joined: Sun Dec 30, 2012 7:14 pm

Re: Löve Frames - A GUI Library

Post by Ford_Prefect » Sat Mar 07, 2015 8:47 pm

What exactly happens to a frame when it's close button is pressed? Is it possible to create "closed" frames? What does an object being "modal" mean?

User avatar
Ensayia
Party member
Posts: 397
Joined: Sat Jun 12, 2010 7:57 pm
Location: Middle of Nowhere, TN

Re: Löve Frames - A GUI Library

Post by Ensayia » Sun Mar 08, 2015 4:39 am

Ford_Prefect wrote:What exactly happens to a frame when it's close button is pressed? Is it possible to create "closed" frames? What does an object being "modal" mean?
The :Remove() method is called on the object (and its children) destroying them.
If you want a frame to be invisible, yet still processing, there is a value you can set for processing while invisible, then just :SetVisible(false) it.
Setting modal darkens the background behind the frame, and makes everything below it unclickable. Do note, in my experience Modal does not work properly if the frame is parented to any other object.

Ford_Prefect
Prole
Posts: 31
Joined: Sun Dec 30, 2012 7:14 pm

Re: Löve Frames - A GUI Library

Post by Ford_Prefect » Mon Mar 09, 2015 7:34 pm

Thanks!

User avatar
lost_RD
Prole
Posts: 23
Joined: Sun Nov 24, 2013 9:16 am
Location: Australia

Re: Löve Frames - A GUI Library

Post by lost_RD » Thu Mar 26, 2015 4:18 am

Nikolai/Kenny,

Your website now seems to have completely changed and I can not find the demo or documentation.

Can you please provide a link?

Lapin
Prole
Posts: 17
Joined: Fri Mar 20, 2015 11:53 am

Re: Löve Frames - A GUI Library

Post by Lapin » Thu Mar 26, 2015 10:29 am

Yep, same problem, you still can get it using Google Cache or we need to find this file :


http://archive.nikolairesokav.com/love/ ... uments.zip

(which has been deleted)


EDIT : Just sent him a mail, wait and see, i'll tell you if i get an answer.


https://github.com/KennyShields/LoveFrames/wiki

Here ya go
Last edited by Lapin on Thu Mar 26, 2015 10:53 am, edited 1 time in total.

User avatar
Nikolai Resokav
Party member
Posts: 140
Joined: Wed Apr 28, 2010 12:51 am
Location: United States

Re: Löve Frames - A GUI Library

Post by Nikolai Resokav » Thu Mar 26, 2015 10:49 am

The documentation was move to github: https://github.com/KennyShields/LoveFrames/wiki. I have updated the link in the original post.

User avatar
soulmata
Prole
Posts: 11
Joined: Sat Jan 26, 2013 8:14 am

Re: Löve Frames - A GUI Library

Post by soulmata » Mon Mar 30, 2015 6:02 am

Hello,

I am greatly enjoying this library. It has saved me a lot of time.

I believe I have encountered a bug or perhaps I'm not using it correctly.

I have found that the SetAutoScroll method for a ColumnList does nothing. Looking at the code, it appears that the GetScrollBar method is returning nothing, so the feature is not actually doing anything. Specifically, in this:

Code: Select all

function newobject:SetAutoScroll(bool)

        local internals = self.internals
        local list = internals[1]
        local scrollbar = list:GetScrollBar()

        self.autoscroll = bool

        if list then
                if scrollbar then
                        scrollbar.autoscroll = bool
                end
        end

        return self

end
local scrollbar = list:GetScrollBar() is returning false.

I think I'm setting it up appropriately. It's rendering and I can add/remove entries from the list correct, as well as scroll through them, with the existing scrollbar, only the AutoScroll feature seems to not work.

User avatar
liyonglove2d
Prole
Posts: 38
Joined: Sun Mar 29, 2015 7:06 am

Re: Löve Frames - A GUI Library

Post by liyonglove2d » Mon Mar 30, 2015 9:05 am

I've been using it for quite a long time, and have to say that it's really not good for my game.
Anyway, nice work, and I appreciate the job so much. I cannot do that by myself.
Last edited by liyonglove2d on Thu Apr 02, 2015 3:14 am, edited 1 time in total.

User avatar
Nikolai Resokav
Party member
Posts: 140
Joined: Wed Apr 28, 2010 12:51 am
Location: United States

Re: Löve Frames - A GUI Library

Post by Nikolai Resokav » Mon Mar 30, 2015 2:23 pm

soulmata wrote:Hello,

I am greatly enjoying this library. It has saved me a lot of time.

I believe I have encountered a bug or perhaps I'm not using it correctly.

I have found that the SetAutoScroll method for a ColumnList does nothing. Looking at the code, it appears that the GetScrollBar method is returning nothing, so the feature is not actually doing anything. Specifically, in this:

Code: Select all

function newobject:SetAutoScroll(bool)

        local internals = self.internals
        local list = internals[1]
        local scrollbar = list:GetScrollBar()

        self.autoscroll = bool

        if list then
                if scrollbar then
                        scrollbar.autoscroll = bool
                end
        end

        return self

end
local scrollbar = list:GetScrollBar() is returning false.

I think I'm setting it up appropriately. It's rendering and I can add/remove entries from the list correct, as well as scroll through them, with the existing scrollbar, only the AutoScroll feature seems to not work.
Just pushed a fix for this issue. Thanks for the report.

schmirsich
Prole
Posts: 6
Joined: Mon Jan 12, 2015 1:34 pm

Re: Löve Frames - A GUI Library

Post by schmirsich » Sat Apr 04, 2015 11:04 pm

Your website and subsequently the documentation seems to be offline. I presume you are still continuing the project?

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests