My derma panel only shows up in main menu.

Hey,
My derma panel does not show up in game. I have the panel binded to the ‘X’ key. In game when i press the X key, the derma menu does not show up. But when I click escape, i see my derma panel. So my panel only shows up in the main menu overlay.
Is this a glitch or???

the frame:


 
function hud( )
 
    local DFrame = vgui.Create( "DFrame" ); 
    DFrame:SetPos( 300, 500 );
	DFrame:SetSize( 1235, 60 );
    DFrame:SetVisible( true );
	DFrame:SetTitle( "Quick Hud" );
    DFrame:MakePopup( );


You forgot to end the function.


function hud( )
 
    local DFrame = vgui.Create( "DFrame" )
    DFrame:SetPos( 300, 500 )
	DFrame:SetSize( ScrW(), ScrH() / 6 )
    DFrame:SetVisible( true )
	DFrame:SetTitle( "Quick Hud" )
    DFrame:MakePopup( )
	
end
concommand.Add("MyDermaMenu" , hud)

no, i ended it… it’s just not in there, It’s below all the buttons and such.

It might be that you made the frame a dumb size. I fixed that too. The average monitor is not 1235… and even if it was, with 60 height it would look rediculious.

Well, it’s just for me, and my monitor is 1920 x 1200
BTW: it was working before. But now, it’s not. And i have not made any changes.

[editline]05:58PM[/editline]

Here’s a picture of my situation:
http://img91.imageshack.us/img91/7322/99651526.png

And here’s the link to my script:
http://pastebin.com/m55e032fd

Also, i don’t think it’s my script, because it was working okay… but now it’s not. It’s either a glitch or I dunno.

Any idea’s? Do you guys think it’s a glitch??? or something wrong with a setting or my code?

where did you put the script?

autorun/client

It’s probably because you’re overwriting DFrame:Paint(). That’s the only thing that I can think of.

I’m sorta a noob when it comes to this…
What do you mean ‘overwriting’?
I will just get rid of the paint and try it again.

Yea if you are calling panel:Paint() then it will completely overwrite the panels paint hook and use the one you provide.

Okay, i fixed it… There was an error in the paint function. Thanks you guys for your help