Löve Frames - A GUI Library

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Löve Frames - A GUI Library

Post by zorg »

murks wrote:Does this library work with Löve 0.10.0?
Literally in the first post: :3
Nikolai Resokav wrote:Note: Löve Frames is only compatible with versions 0.8.0 and 0.9.0 of LÖVE.
Edit: On the previous page:
Nikolai Resokav wrote:...I'm currently not developing Love Frames anymore. However, I am currently working on a new UI library to replace Love Frames which will have support for object resizing and what not.
Last edited by zorg on Sun Jan 17, 2016 10:56 pm, edited 2 times in total.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
User avatar
murks
Party member
Posts: 185
Joined: Tue Jun 03, 2014 4:18 pm

Re: Löve Frames - A GUI Library

Post by murks »

Ok, thanks.
I am rather certain that post was last updated well before the release of löve 0.10.0 so I thought the post might be outdated.
bobbyjones
Party member
Posts: 730
Joined: Sat Apr 26, 2014 7:46 pm

Re: Löve Frames - A GUI Library

Post by bobbyjones »

murks wrote:Ok, thanks.
I am rather certain that post was last updated well before the release of löve 0.10.0 so I thought the post might be outdated.
There is a fork by someone that updates loveframes. Idk where it's at though. Maybe ask on irc to see who's it is.
User avatar
Fenrir
Party member
Posts: 222
Joined: Wed Nov 27, 2013 9:44 am
Contact:

Re: Löve Frames - A GUI Library

Post by Fenrir »

To make it work with 0.10.0, you just need to update the stencil code to the new system, apart from that it works without problems!
Dev
Prole
Posts: 1
Joined: Wed Jan 20, 2016 8:31 am

Re: Löve Frames - A GUI Library

Post by Dev »

bobbyjones wrote:
murks wrote:Ok, thanks.
I am rather certain that post was last updated well before the release of löve 0.10.0 so I thought the post might be outdated.
There is a fork by someone that updates loveframes. Idk where it's at though. Maybe ask on irc to see who's it is.
This is the fork right here. The stencil system was updated. Not sure if anything else is broken though. But Fenrir said that's the only problem so there you go.

https://github.com/cyborgize/LoveFrames
User avatar
Jack5500
Party member
Posts: 148
Joined: Wed Dec 07, 2011 8:38 pm
Location: Hamburg, Germany

Re: Löve Frames - A GUI Library

Post by Jack5500 »

Kenny, are you going to share any information on your new library in the near future? Really looking forward to it
User avatar
meffcio
Prole
Posts: 7
Joined: Thu May 07, 2015 7:30 pm

Re: Löve Frames - A GUI Library

Post by meffcio »

Dev wrote:
bobbyjones wrote:
murks wrote:Ok, thanks.
I am rather certain that post was last updated well before the release of löve 0.10.0 so I thought the post might be outdated.
There is a fork by someone that updates loveframes. Idk where it's at though. Maybe ask on irc to see who's it is.
This is the fork right here. The stencil system was updated. Not sure if anything else is broken though. But Fenrir said that's the only problem so there you go.

https://github.com/cyborgize/LoveFrames
I took your love-frames demo 0.10.0 fork and provided it with 0.10.0 loveframes fork, and it doesn't work. It runs ok, but after clicking anything:
loveframes.PNG
loveframes.PNG (35.39 KiB) Viewed 10779 times
User avatar
Kenny Shields
Prole
Posts: 10
Joined: Wed Jan 27, 2016 2:17 am
Contact:

Re: Löve Frames - A GUI Library

Post by Kenny Shields »

Jack5500 wrote:Kenny, are you going to share any information on your new library in the near future? Really looking forward to it
I plan on releasing a public alpha version soon, though I can't make any promises of when that will be. If you'd like more information feel free to send me an email or private message.
zell2002
Citizen
Posts: 75
Joined: Sun Feb 23, 2014 9:22 pm

Re: Löve Frames - A GUI Library

Post by zell2002 »

Fenrir wrote:To make it work with 0.10.0, you just need to update the stencil code to the new system, apart from that it works without problems!
what do you mean sorry ?

I get an issue here :
love.graphics.setStencilTest(true)

I can see the function needs a string and then number, ie( "greater", 0) - however I dont understand what it is doing at this point and thus what the correct fix is, any pointers?
yarlesp
Prole
Posts: 9
Joined: Sun Apr 07, 2013 3:55 pm

Re: Löve Frames - A GUI Library

Post by yarlesp »

neither the tooltips or the menus are working in this. i'm using love 0.9.0.

heres the code that creates the popup menu i want. it's called from love.mousepressed and moving this code to that function doesn't do anything

(that last line is for me, it prints a string on-screen. the string prints "menu x y" whenever i right-click, so i know all the code is being executed and the menu exists)

Code: Select all

function game.popup_menu(x, y)
  if not loveframes.util.GetHoverObject() then
    local bldgmenu = loveframes.Create("menu")
    bldgmenu:AddOption("Details", false, function() end)
    bldgmenu:AddOption("Demolish", false, function() end)
    bldgmenu:SetPos(x, y):SetVisible(true)
    util.add_debug_string(bldgmenu:GetType().." "..bldgmenu:GetX().." "..bldgmenu:GetY())
  end
end
and here's the definition of my gui. that last tooltip i define for the 'elec' button never shows up when i hover over the elec button.

for the record the first part of the gui, all the way down to the tooltip, shows up and seems to function fine. its just these two elements im having problems with. thanks for any help anyone can provide.

Code: Select all

-- load the map and gui
function game.load()
  loveframes.SetState("gamegui")
  
  local sidebar = loveframes.Create("frame")
  sidebar:SetName("CAnyon")
  sidebar:SetSize(110, 600)
  sidebar:SetState("gamegui")
  sidebar:SetDraggable(false):ShowCloseButton(false):SetAlwaysOnTop(true)
  
  local elec = loveframes.Create("button", sidebar):SetSize(20, 20):SetPos(5, 30):SetText("!")
  local water = loveframes.Create("button", sidebar):SetSize(20, 20):SetPos(30, 30):SetText("W")
  local weapons = loveframes.Create("button", sidebar):SetSize(20, 20):SetPos(55, 30):SetText(">")
  local food = loveframes.Create("button", sidebar):SetSize(20, 20):SetPos(80, 30):SetText("F")
  
  local elec_tooltip = loveframes.Create("tooltip")
  elec_tooltip:SetObject(elec):SetText("Electric grid mapmode")
end
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests