Search found 7 matches

by Santvarg
Thu Jul 11, 2019 3:12 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 148
Views: 58389

Re: Gspöt - retained GUI lib

You're right, while playertargetid and playertargetnpc have values npcbutton[playertargetid][playertargetnpc] is nil Means something's up with npcbutton's definitions - it was the npcbutton[i] = {} line, it was setting that every time the 'o' for loop iterated(thats alot), big bad doesnt crash anymo...
by Santvarg
Thu Jul 11, 2019 1:57 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 148
Views: 58389

Re: Gspöt - retained GUI lib

Thanks for the quick replies using npcbutton[i][o].click = function(self, x, y) (wasnt using self before,oversight) returns the same error: Gspot.lua:380: attempt to index local 'element' (a nil value) --with a traceback to this line: gui:rem(npcbutton[playertargetid][playertargetnpc]) when it's not...
by Santvarg
Thu Jul 11, 2019 1:16 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 148
Views: 58389

Re: Gspöt - retained GUI lib

line 525 is the gui:rem line at the bottom, and npcbutton = {}, mb, i forgot it was the load function and not there. This is the only function that addresses it otherwise I thought [i][o] was the same as .i.o , from my errors, and what you say, its pretty obvious they're not, woops lol Is there anot...
by Santvarg
Wed Jul 10, 2019 9:11 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 148
Views: 58389

Re: Gspöt - retained GUI lib

Now having a different problem related to this library: function npcspawn() for i=1, #curmapnpc[1] do if #npcs[i] < curmapnpc[1][i][2] then --not important for this case for o=#npcs[i]+1, curmapnpc[1][i][2] do ... npcbutton.i = {} npcbutton.i.o = gui:hidden("test", {x = npcposx, y = npcs[i][o][3]-(n...
by Santvarg
Tue Jul 09, 2019 6:10 am
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 148
Views: 58389

Re: Gspöt - retained GUI lib

Been awhile but thanks, that worked out after some tweaking to keep it from doing the coordinate translation for the gui when it shouldnt, but this seems to be working fine. Menu buttons work, and the hidden buttons on npcs work properly and are clickable even after moving the player around. Thanks ...
by Santvarg
Thu May 30, 2019 9:37 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 148
Views: 58389

Re: Gspöt - retained GUI lib

Oh! i didnt know i can redefine the built in functions, never thought about that lol
I can get you a pastebin of everything as of now but it's a bit messy and not annotated xD

I'll try that when I can get back to it
by Santvarg
Sat May 18, 2019 12:46 pm
Forum: Libraries and Tools
Topic: Gspöt - retained GUI lib
Replies: 148
Views: 58389

Re: Gspöt - retained GUI lib

I'm having a similar problem with Camera, but I'm not using a library for my camera, i'm just using function camera:set() love.graphics.push() love.graphics.rotate(-self.rotation) love.graphics.scale(1 / self.scaleX, 1 / self.scaleY) love.graphics.translate(-self.x, -self.y) end function camera:unse...