lotrointerface.com
Search Downloads


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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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
 



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 06:01 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui