• Update derma display?
    4 replies, posted
Okay So im new to derma. I understand how to draw the derma window. But say its like an inventory. When they drop an item how do I update the derma window? What I mean is say I have a DModelPanel drawing a model, I clikc on this and the model is removed from my inventory, how would I update the icon to nothing. The problem with just redrawing the derma window is it them duplicates the old stuff. Thanks
Doesnt derma update automaticly? I'm probably wrong.
[QUOTE=Exploderguy;46889753]Doesnt derma update automaticly? I'm probably wrong.[/QUOTE] Not that I can see, I think I have found away anyway. But does anyone know the exact dimentions of a spawn icom, The derma element spawn Icon that is, And also is there a way to see if the player has clicked on the spawn icon Also is there a way to make a spawn Icon empty, So if there is no item in that slot remove or make the model invisible, Thanks
You can get a material size, so you won't need to guess the size for your icons. Silkicons are 16x16 but there are other icons with gmod that are larger. local _mat = Material( x ); local _w = _mat:Width( ); local _h = _mat:Height( );
PANEL:Refresh(), if you put that in a unlimited timer or if the player drops an item put it in the drop function it will refresh the panel. @darkmist What are you actually trying to do? Can you explain what you intend to do, as in you mean spawn icons, but you can create a spawn icon in derma...
Sorry, you need to Log In to post a reply to this thread.