Results 1 to 2 of 2

Thread: How to make shadow in addtext

  1. #1
    Banned
    Join Date
    Apr 2012
    Location
    Poland, Zambrˇw
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    0

    How to make shadow in addtext

    hello. How i can make shadow in hud ?

  2. #2
    Normal User
    Join Date
    May 2012
    Posts
    24
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    11
    Rep Power
    5
    draw the object you want as black and offseted by 1,1 or 2,2.
    later draw the original one not offseted.

    ex:
    Code:
    offsetX = 2
    offsetY = 2
    setfont(rgb(0, 0, 0))
    addtext("shadow text", x + offsetX, y + offsetY)
    setfont(rgb(255, 255, 255)) -- here goes the color you want
    addtext("shadow text", x, y)
    It may not be a working code, just a concept.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •