Raised This Month: $ Target: $400
 0% 

[REQ] menu proprieties


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 12-15-2017 , 10:28   Re: [REQ] menu proprieties
Reply With Quote #1

Quote:
Originally Posted by OciXCrom View Post
That would be great. By the way, what do you mean by {static_items}?
User-items that are shown on every page with fixed slot. (like bantime in banmenu)
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-22-2017 , 13:05   Re: [REQ] menu proprieties
Reply With Quote #2

We already have natives for strings that have less use than what i suggested
You just asked a stupid question, what about we also remove strlen since it can be easily done with a loop ? or charsmax ? or sizeof ?

Btw ocixcrom is right, adding proprieties for formatting would be more useful, for both item numbering and page numbering, ofc with the possibility of also removing them completely

An example

Code:
menu_setprop(iMenu, MENU_FORMATNUMBERING, "[ ^$ ]")
- >
[1] Item 1
[2] Item 2
[3] Item 3

menu_setprop(iMenu, MENU_FORMATNUMBERING, "^0")
->
Item 1
Item 2
Item 3

menu_setprop(iMenu, MENU_FORMATPAGES, "[ ^$ ]")
- >
Menu Title [ 1/2 ]

menu_setprop(iMenu, MENU_FORMATPAGES, "^0")
-> 
Menu Title
__________________

Last edited by Depresie; 12-22-2017 at 13:13.
Depresie is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 12-22-2017 , 14:55   Re: [REQ] menu proprieties
Reply With Quote #3

that`s not a reason to include it. if you want it so bad, just write your own module...
__________________
retired chump
DjSoftero is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-23-2017 , 02:40   Re: [REQ] menu proprieties
Reply With Quote #4

Quote:
Originally Posted by DjSoftero View Post
that`s not a reason to include it. if you want it so bad, just write your own module...
Give me a reason to not include it, and no i don't want it so bad, just thought it would be useful to have it included to the string natives
__________________
Depresie is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-23-2017 , 03:36   Re: [REQ] menu proprieties
Reply With Quote #5

Quote:
Originally Posted by Depresie View Post
Give me a reason to not include it, and no i don't want it so bad, just thought it would be useful to have it included to the string natives
We don't need a native for each small thing. People need to learn and get used to doing basic stuff on their own.
__________________
HamletEagle is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-23-2017 , 04:23   Re: [REQ] menu proprieties
Reply With Quote #6

All things included in the strings module could be called "small things" most of them even smaller..

Also, it was just a suggestion, it is not a priority, but implying that this is too basic/small to be included doesn't make any sense, since most of the strings natives are as "small" or even "smaller" than this, so in this case we could just remove the strings module
__________________

Last edited by Depresie; 12-23-2017 at 04:44.
Depresie is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 12-23-2017 , 18:44   Re: [REQ] menu proprieties
Reply With Quote #7

The only thing new menu system should receive is to deprecate menu_item_getinfo, and put all of it's arguments inside the menu handler callback function (as arguments). It was even discussed before I guess.
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 07-27-2018 , 10:42   Re: [REQ] menu proprieties
Reply With Quote #8

I submitted a pull request for menu_getprop - https://github.com/alliedmodders/amxmodx/pull/507
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Reply



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 23:19.


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