TPT clock

  • Vou-II
    28th Oct 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • Marte2007
    28th Oct 2011 Member 0 Permalink
    Make it disappear when you hide the HUD pressing h
  • Vou-II
    28th Oct 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • Marte2007
    28th Oct 2011 Member 0 Permalink
    @Vou-II (View Post)
    Yeah but it could be annoying if it covers some elements/signs. I think it should be "temporary hideable"
  • Vou-II
    28th Oct 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • Marte2007
    28th Oct 2011 Member 0 Permalink
    Use 'h' like this:
    function toggle(char,code,modif,event)
      if char=="h" and event==1 then
        -- toggle it here
      end
    end
    tpt.register_keypress(toggle);
  • Vou-II
    28th Oct 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • Marte2007
    28th Oct 2011 Member 0 Permalink
    It could be because the keypress event is fired twice, one for key down and one for key up. The and event==1 means only if key down.
    Anyway how do you toggle it?
  • Vou-II
    28th Oct 2011 Banned 0 Permalink
    This post is hidden because the user is banned
  • Marte2007
    28th Oct 2011 Member 0 Permalink
    @Vou-II (View Post)
    No I didn't... Probably you know it better than me, seriously