Making a non interactive panel
So there's a few informational plugins that use panels to display information and they're great except that they make the number keys useless, this is bad since they're only for information and don't contain any selectable items.
I'm aware that you can use SetPanelKeys to make these keys free, but I'm a big sourcemod noob and I'm just trying to modify other people's plugins not make my own so I have no idea of where should I put it to make it work. Let's take this plugin for example: https://forums.alliedmods.net/showthread.php?p=1274550 I tried SetPanelKeys(thepanelname, (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1< <6)|(1<<7)(1<<8)); before SendPanelToClient to make keys 1-9 free but it doesn't work, same goes for SetPanelKeys(thepanelname, 1023); The panel still blocks the number keys except 0, this plugin creates 2 panels 1 for the spectators and the other for the people who are still playing so it's a little complicated. If someone could point me in the right direction or know how to do it right please show me I'll be eternally grateful. |
Re: Making a non interactive panel
If you want no keys, then you'd pass 0. Though I guess it'll still enable the zero key for closing the panel?
|
Re: Making a non interactive panel
need to know the same.
|
Re: Making a non interactive panel
Quote:
|
Re: Making a non interactive panel
I do something like this to simulate a non interactive panel in L4D2...while allowing the number keys to still work properly.
Note...using this with a menu your constantly refreshing with a timer can be tricky, tweak the duration on the timer to get the best result when pressing the keys... Code:
public int SpecMenuActions(Menu menu, MenuAction action, int param1, int param2) |
Re: Making a non interactive panel
Seems like you could replace that entire switch statement with:
Code:
ShowSpecMenu(param1); |
Re: Making a non interactive panel
Quote:
|
Re: Making a non interactive panel
Quote:
|
All times are GMT -4. The time now is 14:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.