Favorite elements menu

  • TheWiseEyes
    2nd Oct 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • boxmein
    2nd Oct 2011 Former Staff 0 Permalink
    @jacob1 From all I've read, it sounds great. I'll test it.
  • jacob1
    2nd Oct 2011 Developer 1 Permalink
    @cracker64 (View Post)
    A way to get the mouse coordinates with zoom would be very usefull for drawing things with my menu. Also getpressure/gravity would make my HUD complete. I also found a bug in tpt.drawrect:

    if (x<0 || y<0 || x>=XRES+BARSIZE || y>=YRES+MENUSIZE)
    return luaL_error(l, "Screen coordinates out of range (%d,%d)", x, y);
    if(x+w > XRES)
    w = XRES-x;
    if(y+h > YRES)
    h = YRES-y;

    In the second two if statements, XRES should be XRES+BARSIZE and YRES should be YRES+MENUSIZE. Becuase of this bug, I had to draw the menu pixel by pixel.
  • baizuo
    2nd Oct 2011 Member 0 Permalink
    You should get involve in the TPT develop team
  • BlueAmulet
    2nd Oct 2011 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 12th Apr 2024
  • jacob1
    2nd Oct 2011 Developer 1 Permalink
    @gamax92 (View Post)
    What do you think it should be used for? I was already thinking of making a way to let you change the color of the menus and I could also use this to make a color drawing tool that you could use without pressing b.
  • Simon
    2nd Oct 2011 Administrator 0 Permalink
    @jacob1 (View Post)
    Thanks for drawing attention to that, it's now fixed for the next version.
    Also, I've noticed that you're allowing some events to get passed on to the game, causing problems with drawing particles; If you return false from mouse or key events, they are not passed into the game.
  • jacob1
    2nd Oct 2011 Developer 1 Permalink
    @gamax92 (View Post)
    I finished it and put it in version 1.2 of my script. I also changed it a little so you could edit alpha too.
  • mniip
    2nd Oct 2011 Developer 0 Permalink
    Wait, is that... a lua interpreter?
  • BlueAmulet
    2nd Oct 2011 Member 0 Permalink

    Deleted

    Edited once by BlueAmulet. Last: 12th Apr 2024
Locked by jacob1: necro