AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   menu.NoVoteButton = true; results in misaligned paginated menu controls (https://forums.alliedmods.net/showthread.php?t=318342)

Dagothur 08-25-2019 11:29

menu.NoVoteButton = true; results in misaligned paginated menu controls
 
1 Attachment(s)
menu.NoVoteButton = true; results in misaligned paginated menu controls

Page #1
http://war3evo.info/shrx/5ddb/84c8.png

Page #2
http://war3evo.info/shrx/5ddb/2530.png

Page #3
http://war3evo.info/shrx/5ddb/9edb.png

sm version
SourceMod Version Information:
SourceMod Version: 1.9.0.6281
SourcePawn Engine: 1.9.0.6281, jit-x86 (build 1.9.0.6281)
SourcePawn API: v1 = 4, v2 = 12
Compiled on: May 14 2019 16:03:05
Built from: https://github.com/alliedmodders/sou...commit/c5efe48
Build ID: 6281:c5efe48
http://www.sourcemod.net/

Halt 08-26-2019 09:56

Re: SetMenuOptionFlags(menu, MENUFLAG_BUTTON_NOVOTE) results in misaligned menu
 
I don't understand what is wrong with this menu? Cosmetically it looks fine.

Dagothur 08-26-2019 12:03

Re: SetMenuOptionFlags(menu, MENUFLAG_BUTTON_NOVOTE) results in misaligned menu
 
The menu is supposed to be:

8. Back
9. Next

both coloured in orange.

Like this one:

http://war3evo.info/shrx/5ddb/066e.png

Halt 08-27-2019 12:03

Re: SetMenuOptionFlags(menu, MENUFLAG_BUTTON_NOVOTE) results in misaligned menu
 
Disclaimer we might not have enough to work with in order to solve it here.

1. You're using old syntax
2. You didn't even follow the wiki for writing this. Whats the point of using the old syntax and not using the SM wikis?

Not saying you're wrong or bashing you. But I recommend using the new pawn syntax. And if you stick to the old then follow the instructions on creating a menu.

https://wiki.alliedmods.net/Menu_API_(SourceMod)

Powerlord 08-27-2019 18:20

Re: SetMenuOptionFlags(menu, MENUFLAG_BUTTON_NOVOTE) results in misaligned menu
 
Votes usually don't have an Exit button, so Previous and Next get moved down.

Dagothur 08-27-2019 21:11

Re: SetMenuOptionFlags(menu, MENUFLAG_BUTTON_NOVOTE) results in misaligned menu
 
Quote:

Originally Posted by Halt (Post 2664969)
Disclaimer we might not have enough to work with in order to solve it here.

1. You're using old syntax
2. You didn't even follow the wiki for writing this. Whats the point of using the old syntax and not using the SM wikis?

Not saying you're wrong or bashing you. But I recommend using the new pawn syntax. And if you stick to the old then follow the instructions on creating a menu.

https://wiki.alliedmods.net/Menu_API_(SourceMod)

I copied the code out of UMC and modified it slightly to compile in its own plugin, but yeah, fair enough, I'll keep these things in mind before posting next time.

Quote:

Originally Posted by Powerlord (Post 2665023)
Votes usually don't have an Exit button, so Previous and Next get moved down.

Saving slots does make sense but I would expect the control to at least be coloured orange (the glance value of a gray 0. Next control feels misleading). This excerpt from Halt's link also suggests this behavior is not intended:

Quote:

"Next" is always drawn as the second navigation item, second from the last supported position. This will not be drawn if the menu only contains one page. If there are no further pages, the text will not be drawn on either style; if possible, the menu will be padded so spacing is consistent.

Valve Style position: 7
Radio Style position: 9

Dagothur 08-28-2019 11:40

Re: SetMenuOptionFlags(menu, MENUFLAG_BUTTON_NOVOTE) results in misaligned menu
 
Quote:

Originally Posted by Halt (Post 2664969)
1. You're using old syntax
2. You didn't even follow the wiki for writing this. Whats the point of using the old syntax and not using the SM wikis?

I've edited the example in the OP to be from the wiki and in new syntax.


All times are GMT -4. The time now is 04:27.

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