Quantcast A request for all plugin Authors 2 - LoTROInterface
VGInterface.com
Search Downloads


Go Back   LoTROInterface > LotRO > General Discussion & Support > Interface Requests (L)

Reply
Thread Tools Display Modes
  #1  
Unread 06-28-2011, 04:36 AM
Fortunis's Avatar
Fortunis Fortunis is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Mar 2011
Location: Leeds, UK
Posts: 72
A request for all plugin Authors 2

Would it be possible for all Authors to make their main command toggle show/hide please. I feel its unnessesary to have to type more text on the command line than is necessary.

Take my plugin as an example. '/mcha' toggles mcha's option window on/off. No need for /mcha show or /mcha hide. I use '/mcha toggle' for something different (turns the functioning of the plugin on/off), but for other plugins /command toggle is used exactly as my normal '/mcha'.

Im aware that you all probably know how to change this but i thought i'd insert some code to inspire thoughs that are new to making plugins.


Code:
yourCommand = class(Turbine.ShellCommand);
Turbine.Shell.AddCommand("<Command you type, excluding slash>", yourCommand);

function yourCommand:Execute(command, arg)

    if arg == "" then

       if yourWindow:IsVisible(true) then
            yourWindow:SetVisible( false );
            yourWindow:Activate( false );
        else
            yourWindow:SetVisible( true );
            yourWindow:Activate( true );
        end

    end

end
Thanks in advance
-Fortunis
__________________
Author of Mouse Cursor Highlighter Advanced

Last edited by Fortunis : 06-28-2011 at 12:41 PM.
Reply With Quote
  #2  
Unread 06-28-2011, 09:28 AM
Tyrolit's Avatar
Tyrolit Tyrolit is offline
The Undefeated
 
Join Date: Dec 2007
Location: Swindon, Wiltshire, England
Posts: 6
A lot of plugins and addons in other games (WoW) provide a help text or a list of commands when you enter only the main command, this is helpful to the user, especially if like me you use alot of plugins and cant remember all the commands.
I agree an extent of standardization of commands would be nice, which most plugins do follow, i.e show/hide/toggle but the help text that alot give with the plain /pluginName is realy helpful.
__________________
Click HERE for the ultimate idiot test
Reply With Quote
  #3  
Unread 06-28-2011, 12:32 PM
Fortunis's Avatar
Fortunis Fortunis is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Mar 2011
Location: Leeds, UK
Posts: 72
Quote:
Originally Posted by Tyrolit
the help text that alot give with the plain /pluginName is realy helpful.
Agree, but i would have '/pluginName help' for that, seems more natural if your looking for help on the plugin to do that imho. Using '/pluginName' surely to activate the options or to active/run the plugin, whichever 'would be/is' the most commonly used.
__________________
Author of Mouse Cursor Highlighter Advanced

Last edited by Fortunis : 06-28-2011 at 12:44 PM.
Reply With Quote
  #4  
Unread 06-28-2011, 03:59 PM
Fortunis's Avatar
Fortunis Fortunis is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Mar 2011
Location: Leeds, UK
Posts: 72
Anyhow, i think i got a little side tracked with your reply Tyrolit. My main point is that if an author of their plugin has got '/pluginName show' as their main command to open up the options window, then it would be best that the same command then is able to closes it. So having 'show' shouldnt be used.

Its quite easy to click a button to open a window, either by mistake or just to have a quick look at something, and without moving the mouse, click again to close the window. It does annoy me when a button that opens something doesnt work to close it. I have come across games in the past that do this and like i said, its annoying. Having to move the mouse to a totally different area of the screen to close the window seems like wasted energy, and/but having the button that opens something to be able to close that something is effecient.

Why should we have to have '/pluginName show', '/pluginName hide' and '/pluginName toggle' shortcuts. When '/pluginName' can do the same as all 3.
__________________
Author of Mouse Cursor Highlighter Advanced

Last edited by Fortunis : 06-28-2011 at 04:04 PM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Skin - Plugin request wackafoo LotRO Wish List (L) 9 10-17-2011 02:26 PM
A request for all plugin authors Emberleaf Interface Requests (L) 16 07-13-2011 12:15 PM
Reminder to Authors Cairenn News 0 12-14-2007 05:05 PM
Thanks to All Authors Frankenfrag General Authoring Discussion (L) 1 05-29-2007 06:01 PM
Reminder to Authors Cairenn Released Interfaces (L) 0 02-12-2007 06:36 PM


All times are GMT -5. The time now is 01:43 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui