1. Post #1
    Gold Member
    Matt W's Avatar
    October 2011
    241 Posts
    Hi , I am currently making a HUD for my gamemode. It consists of a Material background (VTF) and then text over it.
    Problem is that no matter where I place the text code , it always draws behind the background. So does anyone know how to swap round the order?

  2. Post #2
    Title

    August 2009
    300 Posts
    It goes in order of what is drawn, Also HUD's are 2D only X and Y. So basically you need to draw the text AFTER the background. (Put the text code after the background code.)

    To put this more simply:

    You Draw A
    You Draw B
    It will Draw A on your screen and then B on-top of it.

    You Draw B
    You Draw A
    It will Draw B on your screen and then A on-top of it.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Useful Useful x 1 (list)

  3. Post #3
    Gold Member
    Matt W's Avatar
    October 2011
    241 Posts
    I'm pretty sure I tried that :/ . But i'll have another go.

    Thanks anyway

    EDIT: Dammit , Found the problem. My text code was outside my Draw function for some reason /facepalm