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
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #2
RE: ADDCONTEXTENTY and "Flags"
if you set flag 01, entry is not clickable, 0 is clickable i don't try others.
08-29-2012 10:22 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 246
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: ADDCONTEXTENTY and "Flags"
PHP Code:
Added: Function AddContextEntrywhat takes 2 to 4 arguments separated by a comma.
   
SRC.AddContextEntry EntryTag,TextID,Flags,Color
   EntryTag 
the number to return as ARGN by @(item)ContextMenuSelectMake it unique.
            - 
EntryTags from 0 to 100 are reserved by Sphere for internal use, so do not
              
use it.
   
TextID CLILOCed name of the buttonThe number from cliloc.[your_localization]
            
WITHOUT the leading "300" or suchJust type "5194" or "11010"
   
Flags 01 locked (will be grayed out)
         - 
02 consecutive entries with this flag set will be summarized under
                a golden arrow
         
020 can be colored
   Color 
(applied only if Flags 020) - hue 
(This post was last modified: 08-29-2012 11:05 PM by darksun84.)
08-29-2012 11:04 PM
Find all posts by this user Like Post Quote this message in a reply
Gadianton
Apprentice
*

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



Post: #4
RE: ADDCONTEXTENTY and "Flags"
Hey thanks that helps a lot. Especially the thing about the 020 flag.

Thanks for assistance
09-06-2012 09:50 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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