I would like to see support for font play in right click menus
as well as sub-menus. (I know this has been suggested before)
http://img525.imageshack.us/img525/9673/sugg.png
Currently the menus show as <b>name...</b>
or as ÿ┤name...ÿ┤ if used \b \b in set name.
ID:132718
Dec 6 2009, 4:15 pm
|
|
In response to Lummox JR
|
|
See how "Send an instant message" is bolded?
something like that. er (Default action) I guess you could say.. |
In response to Lummox JR
|
|
Is there a tutorial for sub-menu's? I just searched the forums couldn't find anything.
Would be nice to create them at compile time using a format similar to: set name="menuname/subitemname" or even set name="subitemname" set group="menuname" |
In response to Leur
|
|
Kaioken posted an example in this forum within the last week or two. You need to search harder :P
Maybe he didn't post it after all. I can't seem to find it either; regardless, all you need to do is create a list, use list2params(), and then use winset(). It must be documented somewhere. |
In response to Jeff8500
|
|
and then use winset(). What if I want it in context menus <.< which is what I am suggesting it for. (right-click) |
In response to Leur
|
|
Oh, then I misunderstood you (and it seems like Lummox did too). There is no way to do that, as far as I know.
|
In response to Jeff8500
|
|
Thus why it is in the suggestions ;p
Thanks for trying to help me though if I did mean the other way. |
In response to Leur
|
|
I don't understand how this would be used in context menus. Right-click menus right now are just a list of atoms and their associated verbs. How would multi-level menus be used there?
Lummox JR |
In response to Lummox JR
|
|
Organization.
Normal -> Normal Verbs Admin -> Admin Verbs a.t.o.m -> atom specific verbs This would be a great feature if one wished to group verbs together, eliminating lengthy lists. If I'm not clear with how I speak I'll make a demo when I get out of school tomorrow. |
In response to Leur
|
|
The right-click menu is done by DS automatically, so to organize verbs it'd have to be told by the server somehow what category each went in. That seems like a lot to modify for the sake of organization. But for right-click menus I think adding a bunch of sub-menus would really only frustrate users, because it's adding extra actions to get to the command you want.
Lummox JR |
In response to Lummox JR
|
|
Lummox JR wrote:
The right-click menu is done by DS automatically, so to organize verbs it'd have to be told by the server somehow what category each went in. That seems like a lot to modify for the sake of organization. But for right-click menus I think adding a bunch of sub-menus would really only frustrate users, because it's adding extra actions to get to the command you want. True, but sometimes submenus can be helpful. ie. to separate Administrative commands from commands regular players can use. I think it should be possible to completely override the right-click menu and what goes on inside of it. To achieve this, a special list could be used. This list would be internal like BYOND's main list, and it can only be modified with a winset()-like proc. This proc would allow you to add and remove menu components and add submenus at will. The moment this is used the new system should be used, otherwise it should fall back to the default of listing verbs. The following parameters could exist for these menu components: - parent: The parent menu to follow. Leaving this blank deletes the menu, setting this to "menu" will make the primary right-click menu its parent. - is-default: This may only be set on a single control. If set, this option will be in bold. Usually people who set this want to set the "command" argument below to the .click or .dblclick command so it will carry out the left-click action (which is the default). - command: Specifies the command to use. .click and .dblclick may freely be used in here. \ref[src] will be converted internally to refer to the object itself, so setting this to "myverb \ref[src]" will cause the "myverb" verb to be executed as part of the src object. - is-disabled: If set, the button is greyed out. - is-checkable: If set, this button can be checked, just like an ordinary menu. - is-checked: If set, this button is checked (if checkable). Otherwise, it is not. Being able to define right-click menus yourself is something which can turn out to be very helpful. Administrative commands can end up in a sub-menu, and the use of is-checked allows you to immediately see if a particular state is true. For example, I could place a menu item called "Density" in an "Admin" submenu which is checked if the item has density. Clicking it toggles density. In order to make the system really useful, it would be neat if atoms had a RightClickMenu() proc of some kind. The result of this proc can be either null (to display the default right-click menu), a positive value (which tells BYOND you're handling it by yourself and to skip displaying the default menu) or an associative list which builds up the menu. Sample usage: obj I think this system would be better than the current system, which is an "opt-in or opt-out" method: you can either go with it and change right-clicking for all objects, or you can leave it alone for every object. The system as mentioned above would be versatile, allowing developers to change right-clicking on a per-object basis. Since the RClick() proc in my example shares the same access to variables that the other mouse procs have access to, I could even check the map we're on and act accordingly. Thus I could show different menus for the same atom depending on whether the atom is shown on the main map or in a secondary map, or even in a grid. |
As for sub-menus, we already do have support for that. Sub-menus can be created at runtime.
Lummox JR