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 »

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: 399
Joined: Sat Jun 12, 2010 7:57 pm

Re: Löve Frames - A GUI Library

Post by Ensayia »

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 »

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 »

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: 19
Joined: Fri Mar 20, 2015 11:53 am

Re: Löve Frames - A GUI Library

Post by Lapin »

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 »

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: 31
Joined: Sat Jan 26, 2013 8:14 am
Contact:

Re: Löve Frames - A GUI Library

Post by soulmata »

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.
Endless Dark: An existential horror game written in LOVE in which you are tasked with keeping a sleeper colony ship intact.
User avatar
liyonglove2d
Prole
Posts: 38
Joined: Sun Mar 29, 2015 7:06 am

Re: Löve Frames - A GUI Library

Post by liyonglove2d »

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 »

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 »

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: Ahrefs [Bot] and 6 guests