tpt ruler

  • babay
    8th Aug 2012 Member 0 Permalink

    20-minute script i wrote, when remembered someone requesting a ruler tool.

    verson 1.1

     

    it calculates and displays distance (in pixels) between cursor and position you set.
    hold "alt" and click mouse to set position, it'll be marked with white cross. distance is shown near cursor. continue holding "alt" to show connecting line. click mouse w/o holding "alt" to disable ruler.

     

    update:

    hotkey changet to "alt"

    no need in disabling before setting new start position

    there should be no conflicts between drawing lines with shift+alt and ruler

     

    download: pastebin

    i hope you'll find how to run scripts, if you don't know it already :p

  • mrsalit0s
    8th Aug 2012 Member 0 Permalink

    ... sorry to say but i think this script is unnecessary ... use tpt.setdebug (4) with console or in your autorun.lua and you have one. try it with shift + left mouse button (line tool)

  • boxmein
    8th Aug 2012 Former Staff 0 Permalink
    @babay (View Post)
    That's awesome.
  • mrsalit0s
    8th Aug 2012 Member 0 Permalink

    @boxmein (View Post)

    i haven't tried it. isn't it the same as tpt.setdebug(4)?

     

    EDIT:okay i see .. it is a bit different, sorry then for the first post :/

     

  • babay
    8th Aug 2012 Member 0 Permalink

    huh, didn't know about setdebug(4). don't think i'd write this if i did)

    @boxmein (View Post)

     thanks


    edit: updated.