The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm8 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm8 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm8 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm8 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ADDCONTEXTENTY and "Flags"
Author Message
Gadianton
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Apr 2012
Reputation: 0



Post: #1
ADDCONTEXTENTY and "Flags"
Hi everybody,

I took a search to the forum and also on google, but in spite of it being said the internet cannot forget, there was no info on this issue.

I currently have the task of setting up contextmenüs for Items in our new crafting system. Putting up and evaluating Contextselections is quite straight forward, but I am a little puzzled:

The spherewiki says:

ADDCONTEXTENTRY entry_id, cliloc, flags, colour
Adds an entry to the context menu being sent to the client. Only valid in @ContextMenuRequest triggers.

Okay so far I have figured this out. Entry ID needs to be higher than 200something because the lower ones are reserved. CLILOC is clear. An ID from the CLILOC File...

Now here is the point where I am at a loss.
It mentions "flags" but there is no documentation on the values and their respective functions.
Also the "colour" parameter appears to be useless but I have found no clues on this.
Experimentally I found out that Flag 01 causes an option to be "grayed" but I am not able to get any other colors on the items.

If someone has experience or some docs on this it would help me a great deal.

Thanks in advance

Gadianton
08-29-2012 10:15 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
ADDCONTEXTENTY and "Flags" - Gadianton - 08-29-2012 10:15 PM
RE: ADDCONTEXTENTY and "Flags" - Shaklaban - 08-29-2012, 10:22 PM
RE: ADDCONTEXTENTY and "Flags" - darksun84 - 08-29-2012, 11:04 PM
RE: ADDCONTEXTENTY and "Flags" - Gadianton - 09-06-2012, 09:50 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)