Search found 31 matches

by Ford_Prefect
Mon Mar 09, 2015 7:34 pm
Forum: Libraries and Tools
Topic: Löve Frames - A GUI Library
Replies: 406
Views: 377994

Re: Löve Frames - A GUI Library

Thanks!
by Ford_Prefect
Sat Mar 07, 2015 8:47 pm
Forum: Libraries and Tools
Topic: Löve Frames - A GUI Library
Replies: 406
Views: 377994

Re: Löve Frames - A GUI Library

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?
by Ford_Prefect
Fri Jan 09, 2015 5:53 pm
Forum: Libraries and Tools
Topic: HUMP - yet another set of helpers
Replies: 146
Views: 140514

Re: HUMP - yet another set of helpers

PS. safety check: function vector:angleTo(input) local arc = self:len2() * input:len2() if arc > 0 then local dot = self.x * input.x + self.y * input.y arc = math.acos(dot*dot/arc) end return arc end No, this doesn't work. Both mathematically and as in "I copy pasted and tried it". Howeve...
by Ford_Prefect
Fri Jan 09, 2015 4:23 pm
Forum: Libraries and Tools
Topic: HUMP - yet another set of helpers
Replies: 146
Views: 140514

Re: HUMP - yet another set of helpers

ivan wrote:[...]
See my edit above, exactly what I did :D

(You beat me by a few seconds)

edit:
The best thing is, my code works now. :)
by Ford_Prefect
Fri Jan 09, 2015 3:57 pm
Forum: Libraries and Tools
Topic: HUMP - yet another set of helpers
Replies: 146
Views: 140514

Re: HUMP - yet another set of helpers

PS. Also, I have another small suggestion :) function vector:perpendicular() return new(-self.y, self.x) end could become: function vector:rotate90ccw() return new(-self.y, self.x) end function vector:rotate90cw() return new(self.y, -self.x) end function vector:rotate180() return new(-self.x, -self...
by Ford_Prefect
Thu Jan 08, 2015 10:11 pm
Forum: Libraries and Tools
Topic: HUMP - yet another set of helpers
Replies: 146
Views: 140514

Re: HUMP - yet another set of helpers

That's great and all, but unfortunately my code still doesn't work the way I want it to :D

I like that duck though.
by Ford_Prefect
Thu Jan 08, 2015 6:09 pm
Forum: Libraries and Tools
Topic: HUMP - yet another set of helpers
Replies: 146
Views: 140514

Re: HUMP - yet another set of helpers

[edit]

I screwed up my coordinate systems and should be ashamed of myself. Nothing to see here, move along.
by Ford_Prefect
Sat Dec 06, 2014 10:20 pm
Forum: Libraries and Tools
Topic: Löve Frames - A GUI Library
Replies: 406
Views: 377994

Re: Löve Frames - A GUI Library

I have the same problem as Rishavs - the .OnClick callback for buttons does not work. Here's my code (relevant parts on top): function love.load() require("lib.Frames") button_circles = loveframes.Create("button") button_circles:SetWidth(200) button_circles:SetText("Toggle ...
by Ford_Prefect
Sat Dec 06, 2014 9:32 pm
Forum: Libraries and Tools
Topic: Löve Frames - A GUI Library
Replies: 406
Views: 377994

Re: Löve Frames - A GUI Library

I have the same problem as Rishavs - the .OnClick callback for buttons does not work. Here's my code (relevant parts on top): function love.load() require("lib.Frames") button_circles = loveframes.Create("button") button_circles:SetWidth(200) button_circles:SetText("Toggle L...
by Ford_Prefect
Sat Mar 08, 2014 4:19 pm
Forum: Libraries and Tools
Topic: Löve Frames - A GUI Library
Replies: 406
Views: 377994

Re: Löve Frames - A GUI Library

Is there somewhere a documentation on the state feature? All I can find about it on the website is one paragraph in "Getting Started" and two methods for the base object :\ Thats the only documentation for the state system at the moment. If you need more information or help with something...