I really want to create a derma menu that updates itself on think.
I have the menu embedded into an entity, which I want to retrieve Networked Ints from it.
How would I go about this, all are welcome.
Thanks.
If you want to do some custom drawing frame by frame I think you should look at [URL="http://wiki.garrysmod.com/page/PANEL/Paint"]Panel:Paint[/URL].
[QUOTE=jaooe;40934751]If you want to do some custom drawing frame by frame I think you should look at [URL="http://wiki.garrysmod.com/page/PANEL/Paint"]Panel:Paint[/URL].[/QUOTE]
Not exactly what I meant. I want to be able to change values on the panel and them to update straight away.
Like change a text label.
Oh, so kinda like refresh the Derma Panel?
I tried to do this a while ago and gave up, I think you can use [URL="http://wiki.garrysmod.com/page/Panel/InvalidateLayout"]Panel:InvalidateLayout[/URL] though.
Can't remember if it works as expected.
I'll try that now, thanks.
[editline]7th June 2013[/editline]
[QUOTE=jaooe;40934807]Oh, so kinda like refresh the Derma Panel?
I tried to do this a while ago and gave up, I think you can use [URL="http://wiki.garrysmod.com/page/Panel/InvalidateLayout"]Panel:InvalidateLayout[/URL] though.
Can't remember if it works as expected.[/QUOTE]
Is that meant to also refresh the labels on the panel? Because it didn't for me.
I'm afraid I can't help, maybe someone else might be able to.
Still looking for solution.
Instead of creating dlabels on the panel, you could always just Draw text in the paint function.
Might not be the best way to do it, but it will work.
[QUOTE=PaellaPablo;40944684]Instead of creating dlabels on the panel, you could always just Draw text in the paint function.
Might not be the best way to do it, but it will work.[/QUOTE]
That fixed it for me, it is working and it works well.
Sorry, you need to Log In to post a reply to this thread.