Panel, radio style
Hi,
I'm trying to create a Panel which provides some information's. It should have the AMX Style (Radio Style). But all I get is a Valve Style menu :/ its for the mod Empires and this mod supports the style, as it is described here: http://www.empiresmod.com/forums/sho...nu+style+radio It would be nice if anyone can tell me where I'm making a mistake with it. Code:
public Plugin:myinfo = |
Re: Panel, radio style
Empires does not fully support radio menus so its disabled by default.
You can create a menu, but none of the clients have the slot keys bound - This means you cant make a selection on the menu. See this thread for the (ignored) bug report: http://forums.empiresmod.com/showthread.php?t=4642 |
Re: Panel, radio style
I'll just want to use it for informations so there is no need for bound keys
|
Re: Panel, radio style
You can manually enable it by editing the menu section of core.games.txt. SourceMod can't distinguish between a menu intended for information or actual use, so we have to make a blanket restriction.
|
Re: Panel, radio style
thanks now it works :)
but why doesn't: native Handle:GetMenuStyleHandle(MenuStyle:style); return a INVALID_HANDLE as it is described in the include file ? I've tested that... Code:
public Action:CMD_Debug(args) |
Re: Panel, radio style
I'm not sure what you're asking. In which situation does what not work?
|
Re: Panel, radio style
in the documentation it says:
"A Handle, or INVALID_HANDLE if not found or unusable." but it returns a valid handle aswell even if its unusable |
Re: Panel, radio style
Sounds like a bug then.
|
Re: Panel, radio style
which line of code do you think causes the error?
If its something like this: Code:
new Handle:Style = GetPanelStyle(panel); You also might want to sort out some of the memory issues in this code (each handle must be closed at some point) |
All times are GMT -4. The time now is 17:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.