Raised This Month: $32 Target: $400
 8% 

menu bug/limitation?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 11-03-2019 , 08:13   menu bug/limitation?
Reply With Quote #1

with the following code

PHP Code:
#define TEST "Using scoreboard's 'Server website' function to visit our website"

public OnPluginStart()
{
    
RegConsoleCmd("sm_test"test);
}

public 
Action:test(clientargs)
{
    
int x 100;
    
Menu HelpMenu = new Menu(HelpMenuHandler);
    
HelpMenu.SetTitle(TEST);
char buffer[1024];
    do
    {    
        
Format(buffersizeof(buffer), TEST);
        
HelpMenu.AddItem(TESTbuffer);        
        
x--;
    } while (
0);

    
HelpMenu.ExitButton true;
    
HelpMenu.Display(client0);    

    return 
Plugin_Handled;
}

public 
int HelpMenuHandler(Menu menuMenuAction actionint param1int param2)
{

the menu won't show the next, prev, exit option
but pressing, 7,8,9 still works

game is csgo

following is a video of what i'm talking about

__________________
8guawong is offline
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 11-03-2019 , 12:30   Re: menu bug/limitation?
Reply With Quote #2

You can use Panel with a custom pagination. That should work.
__________________
Ilusion9 is offline
MAGNAT2645
Senior Member
Join Date: Nov 2015
Location: AlliedMods.net
Old 11-03-2019 , 13:14   Re: menu bug/limitation?
Reply With Quote #3

Oh, i had this problem. I think this happens due to very long display item text (like text overflow)
__________________
MAGNAT2645 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-09-2019 , 06:46   Re: menu bug/limitation?
Reply With Quote #4

Quote:
Originally Posted by MAGNAT2645 View Post
Oh, i had this problem. I think this happens due to very long display item text (like text overflow)
Yes, that is exactly the problem - the display text buffer is being overfilled.
__________________
asherkin is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode