Oh! Thanks!riidom wrote:if you see the documentation, check the "base" object, it has a ton of methods, all other objects inherit from, and thus not described there. In this list, you will find :Remove().
Took me a while to discover myself
Löve Frames - A GUI Library
- OmarShehata
- Party member
- Posts: 259
- Joined: Tue May 29, 2012 6:46 pm
- Location: Egypt
- Contact:
Re: Löve Frames - A GUI Library
Re: Löve Frames - A GUI Library
I don't have a github account so
starting at line #693 in objects/textinput.lua
what about nil unicode? (ie a function key)
Or the 'else' on line 691 it should be
starting at line #693 in objects/textinput.lua
Code: Select all
if loveversion == "0.9.0" then
unicode = string.byte(unicode)
end
Code: Select all
if loveversion == "0.9.0" then
unicode = unicode and string.byte(unicode) or -1
end
Code: Select all
elseif unicode then
- Nikolai Resokav
- Party member
- Posts: 140
- Joined: Wed Apr 28, 2010 12:51 am
- Location: United States
Re: Löve Frames - A GUI Library
Thanks for the report. I'll fix that in the next update.szensk wrote:I don't have a github account so
starting at line #693 in objects/textinput.luawhat about nil unicode? (ie a function key)Code: Select all
if loveversion == "0.9.0" then unicode = string.byte(unicode) end
Or the 'else' on line 691 it should beCode: Select all
if loveversion == "0.9.0" then unicode = unicode and string.byte(unicode) or -1 end
Code: Select all
elseif unicode then
Re: Löve Frames - A GUI Library
verry nice, i made a lovely UI to control my stargates (SGCraft + CC)
Sometimes, the elegant implementation is just a function. Not a method. Not a class. Not a framework. Just a function.
Re: Löve Frames - A GUI Library
Excellent library!
Just wanted to say thanks for the continued updates.
Just wanted to say thanks for the continued updates.
Re: Löve Frames - A GUI Library
I am porting this library (and eventually re-writing most of it to meet my needs) for Multi Theft Auto and I came across something which I don't understand:
on file textinput.lua (I don't know the exact line because I have modified the file already). On Love2D wiki, getHeight method does not have any parameters. What's this?
Code: Select all
local height = font:getHeight(curline:sub(i, i))
I used to be an adventurer like you, but then I took an arrow in the knee.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Löve Frames - A GUI Library
It's the same. Functions in Lua ignore extra arguments, just like arguments you don't pass become nil.
Help us help you: attach a .love.
Re: Löve Frames - A GUI Library
As I think everyone in this thread has said, this library is excellent. It's better then excellent. You can't describe how excellent it is!
I'm writing some basic helper methods, which makes life a lot easier. It's really easy to do stuff like that, and it's really easy to design your own UI, as a poster above showed. It's just incredible! Thanks for making it!
I'm writing some basic helper methods, which makes life a lot easier. It's really easy to do stuff like that, and it's really easy to design your own UI, as a poster above showed. It's just incredible! Thanks for making it!
"In those quiet moments, you come into my mind" - Liam Reilly
Re: Löve Frames - A GUI Library
I know that. I had an idea it'd probably be that it's unnecessary, just like in many functions of this library I saw parameters which are never used but I thought there was an explanation for it.Robin wrote:It's the same. Functions in Lua ignore extra arguments, just like arguments you don't pass become nil.
I used to be an adventurer like you, but then I took an arrow in the knee.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: Löve Frames - A GUI Library
Okay. I guess some people become confused because [wiki]Font:getWidth[/wiki] does take an argument?
Help us help you: attach a .love.
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest