So, I was using 'TargetID' as my font on my HUD and all of a sudden, it goes from this: Screenshot
to this wierd font: Screenshot
It just happened when I tabbed out and tabbed back in. I've tried reverting a few changes I made but nothing as worked, even reverting all the changes before the incident.
How about some code to see the source that creates the problem?
local function drawSection10( icon, name )
if ( !mats[ icon ] ) then
mats[ icon ] = Material( icon )
end
surface.SetDrawColor( 255, 255, 255 )
surface.SetMaterial( mats[ icon ] )
surface.DrawTexturedRect( position_x, position_y, 16, 16 )
local col = Color(125, 255, 50, 255)
draw.RoundedBox( 0, position_x + 24, position_y, 200, 19, black )
draw.SimpleText( name, "TargetIDsmall", position_x + 27, position_y, color_white )
surface.SetDrawColor( black )
surface.DrawOutlinedRect( position_x + 24, position_y, 200, 19 )
position_y = position_y + 25
end <- This was literally what I was doing whilst tabbed out and when I tabbed back in the font awas bugged
Next time in code tag. the { } symbol..please
wrong section. which i didnt noticed earlier. this is supposed to be in Lua Development Discussion
why are your lines so far seperated from each other?
Thats always how i've done it.
What? putting the code out of code tag or seperating the lines? If its the second, you do your code. but if you want to show this to someone else...make it smaller..this is just bad to read and creates hundrets if lines that are just space
Let's stay on topic, eh?
Did anything happen to your system that would've removed or changed that font?
Not that I know of
Sorry, you need to Log In to post a reply to this thread.