+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    Grand Member Online status: Galuhad is offline Reputation: Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire
    Join Date
    Jun 2009
    Location
    London, UK
    Posts
    1,054

    [Plugin] ChatEdit

    ChatEdit v.1.4.0

    ChatEdit is a color formatting plugin you can use to send messages to the chat channels in different colors.




    To install, copy the 'GaluhadPlugins' folder to your plugins directory.
    eg. C:\Users\..\Documents\The Lord of the Rings Online\Plugins\GaluhadPlugins

    To use the plugin, enter the text you wish to format into the text box. You can then highlight the text you wish to format and select a replacement color. Select the output channel from the menu and send.
    (Note: If you make changes to the text after you've made colour changes e.g. added a new word - the text will automatically de-format and you will have to select the colours again).

    You can compile a selection of favorite colors for future use, to do this, right-click on one of the boxes and select 'Replace' from the menu that pops up. You can then pick a color either from the picker, by entering a hex color value into the label at the top, or by clicking the color preview box. These favorites will save when you unload the plugin so you can use them again and again.

    You may also wish to send messages using a gradient of colors. To do this hit the 'Gradient' button at the top, this will bring up a new window. A minimum of two colors is needed, to replace these colors right-click on one and select 'Replace' (note, you can replace multiple colors at the same time). You can then click on one of your favorite colors, the picker, or even another gradient color to select.

    To add a new color, right click on the window above the bar. This will place a new color there for you. Left-click and drag the new color to position it where you would like. You can then right-click it to replace the color or remove it.

    'Generate' will show you a preview of the color gradients. Feel free to slide the colors, replace them, and add new ones to create interesting results.

    When you're happy with your generated gradient, hit the send button in the main window to send it to your chat channel.

    You can also send /tells using this plugin, to do this select /tell from the channel drop-down. You can then enter the player name in the new text box. If you're sending a gradient, you will need to re-generate after entering the name.

    Aliases can be saved for future use. Do to this hit save when you're happy with the output. Aliases can be accessed and deleted by hovering your mouse over the 'speech' icon in the lower left corner of the screen.


    Warning. This plugin is meant to be for fun, however using it too consistently may irritate other players who've set their own color themes for each chat channel. Please take that into consideration when sending messages publicly.

    Update v1.4.0:
    - Changed the color picker class to be more effective.
    - Implemented the new :SetMarkupEnabled() feature to the output text. With this the plugin is no longer restricted to 'block' colors. Instead it now functions like a standard text editor - you will need to highlight the text you wish to color format.
    - Changed the output text window background to be semi-transparent so the preview is more realistic to how you will see it in the chat window.

    Update v1.3.1:
    - Fixed some scaling/repositioning bugs with the minimized window.

    Update v1.3:
    - You can now use a minimized version of the window, this way it is more accessible during gameplay as it takes up far less space.
    - Added a ;target button - targeting can not be used with gradients at this time and will be filtered out.

    Update v1.2:
    - You can now send /tells to other players.
    - You can now save aliases for future use.

    Update v1.1:
    - Fixed a bug where if you tried to create a gradient with more than 100 characters you'd get an error when generating.

    Known Issues:
    - If you try using a gradient to customise an AFK message, chances are you'll get a load of gibberish. The AFK message doesn't allow for too many colors, so it's best to use one solid color instead.

    Future Plans:
    -At the moment the plugin does not allow you to save any aliases, this is something I will work on for the next release.
    - I am also exploring ways to be able to color format a selected piece of text from your input.

    About the color picker:
    For any developers who may want to use it, I created the color picker as a class in it's own .lua file. Feel free to use it if you wish.
    Last edited by Galuhad; Oct 22 2012 at 02:39 PM.



    Galuhad - Kin Leader - Lore Breakers (Eldar)

    Be not so eager to advance that you fail to experience the moment, in life and in all things.






  2. #2
    Senior Member Online status: Malephor is offline Reputation: Malephor the Neutral
    Join Date
    May 2009
    Posts
    1,825

    Re: [Plugin] ChatEdit

    Cool plugin!

    Only suggestion I have is a way for the user to type the numbers for the rgb. Its kinda hard to get the orange/yellow colors in the pick-a-color thing.

  3. #3
    Grand Member Online status: Galuhad is offline Reputation: Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire
    Join Date
    Jun 2009
    Location
    London, UK
    Posts
    1,054

    Re: [Plugin] ChatEdit

    Quote Originally Posted by Malephor View Post
    Cool plugin!

    Only suggestion I have is a way for the user to type the numbers for the rgb. Its kinda hard to get the orange/yellow colors in the pick-a-color thing.
    If you click on the hex color at the top, you can actually edit it.. so if you want yellow, replace the color with FFFF00.. You can also find a list of hex color codes by googling it.



    Galuhad - Kin Leader - Lore Breakers (Eldar)

    Be not so eager to advance that you fail to experience the moment, in life and in all things.






  4. #4
    Senior Member Online status: Malephor is offline Reputation: Malephor the Neutral
    Join Date
    May 2009
    Posts
    1,825

    Re: [Plugin] ChatEdit

    Ooh, did not notice that part at the top.

  5. #5
    Grand Member Online status: Galuhad is offline Reputation: Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire
    Join Date
    Jun 2009
    Location
    London, UK
    Posts
    1,054

    Re: [Plugin] ChatEdit

    Version 1.2 is now available, with ability to send /tells and save aliases..
    http://www.lotrointerface.com/downlo...-ChatEdit.html



    Galuhad - Kin Leader - Lore Breakers (Eldar)

    Be not so eager to advance that you fail to experience the moment, in life and in all things.






  6. #6
    Grand Member Online status: Saelyth is offline Reputation: Saelyth has disabled reputation
    Join Date
    Sep 2010
    Posts
    1,492

    Re: [Plugin] ChatEdit

    I don't seems to see all the info, Wil we only ourselfs see the colours? or if i send a kinship message in red, will every kinnie see the message in red?

  7. #7
    Grand Member Online status: Galuhad is offline Reputation: Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire
    Join Date
    Jun 2009
    Location
    London, UK
    Posts
    1,054

    Re: [Plugin] ChatEdit

    Quote Originally Posted by Saelyth View Post
    I don't seems to see all the info, Wil we only ourselfs see the colours? or if i send a kinship message in red, will every kinnie see the message in red?
    When you send a message it will appear to everyone in that channel in the color you pick. In your example, if you chose the kinship channel and a red font color, then whatever message you send will appear in red to all those in your kinship.

    Perhaps this might help:





    Galuhad - Kin Leader - Lore Breakers (Eldar)

    Be not so eager to advance that you fail to experience the moment, in life and in all things.






  8. #8
    Grand Member Online status: Galuhad is offline Reputation: Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire
    Join Date
    Jun 2009
    Location
    London, UK
    Posts
    1,054

    Re: [Plugin] ChatEdit


    Have updated the plugin, there's a new minimized window you can use instead of the main window, this can be repositioned and the width can be resized. Hopefully this will make using the plugin more viable in gameplay as it will take up far less space and can sit out of the way.

    I have also added a ;target button that will insert the ;target command into your text at the cursors current position, this way you can use and save target aliases for use in raids etc.



    Galuhad - Kin Leader - Lore Breakers (Eldar)

    Be not so eager to advance that you fail to experience the moment, in life and in all things.






  9. #9
    Grand Member Online status: Saelyth is offline Reputation: Saelyth has disabled reputation
    Join Date
    Sep 2010
    Posts
    1,492

    Re: [Plugin] ChatEdit

    I need to admit i come here in need of help, Galuhad.

    I love this feature, i've been using it a bit since my last post (above) but now i'm trying to make my new plugin for personal management and save myself a few Aliases for "attack" and "heal me". I would love if that Attack would be in red and the heal one in green but i can't find the way to "Send to chat" the info. So far i can send it to the standard chat using:

    Turbine.Shell.WriteLine("/ra <rgb=#00ff00>-- I need heals. --</rgb>");

    And trying to copy code from your plugin has been a total disaster for my last 5 hours.

    This is how it looks. And it doesn't works. Shouldn't be too much hard since i will Never want to change the colour or the text. So i just need to "send" a built function. What am i missing?
    Code:
    function withoutname:neitheraname()
    
    -- Create quickslot to store shortcut-----------------------------------------------
    qsTemp = Turbine.UI.Lotro.Quickslot();
    qsTemp:SetSize(96,18);
    qsTemp:SetPosition(2, 2);
    qsTemp:SetVisible(true);
    tempString = "/ra <rgb=#00ff00>-- MOVE LEFT --</rgb>";
    qsTemp:SetShortcut(Turbine.UI.Lotro.Shortcut( Turbine.UI.Lotro.ShortcutType.Alias, tempString));
    
    I got the info loaded in the alias and the alias in the shortcut. How do i send it to chat with the Send Button?
    
    end

  10. #10
    Poster of Note Online status: Garan is online now Reputation: Garan has disabled reputation
    Join Date
    Mar 2007
    Posts
    831

    Re: [Plugin] ChatEdit

    Quote Originally Posted by Saelyth View Post
    I need to admit i come here in need of help, Galuhad.

    I love this feature, i've been using it a bit since my last post (above) but now i'm trying to make my new plugin for personal management and save myself a few Aliases for "attack" and "heal me". I would love if that Attack would be in red and the heal one in green but i can't find the way to "Send to chat" the info. So far i can send it to the standard chat using:

    Turbine.Shell.WriteLine("/ra <rgb=#00ff00>-- I need heals. --</rgb>");

    And trying to copy code from your plugin has been a total disaster for my last 5 hours.

    This is how it looks. And it doesn't works. Shouldn't be too much hard since i will Never want to change the colour or the text. So i just need to "send" a built function. What am i missing?
    Code:
    function withoutname:neitheraname()
    
    -- Create quickslot to store shortcut-----------------------------------------------
    qsTemp = Turbine.UI.Lotro.Quickslot();
    qsTemp:SetSize(96,18);
    qsTemp:SetPosition(2, 2);
    qsTemp:SetVisible(true);
    tempString = "/ra <rgb=#00ff00>-- MOVE LEFT --</rgb>";
    qsTemp:SetShortcut(Turbine.UI.Lotro.Shortcut( Turbine.UI.Lotro.ShortcutType.Alias, tempString));
    
    I got the info loaded in the alias and the alias in the shortcut. How do i send it to chat with the Send Button?
    
    end
    You can't send text to a channel programmatically in response to a button click. Instead the user has to actually click the quickslot. The only thing your example is missing is that you don't set the qsTemp parent to what ever window the quickslot would display in.
    Code:
    window1=Turbine.UI.Lotro.Window();
    window1:SetSize(200,200);
    window1:SetPosition(200,200);
    window1:SetText("some window");
    window1:SetVisible(true);
    -- the above is the bare minimum to create some window for your quickslot, obviously you would want to do a lot more to create a nice UI
    
    -- now add your example
    -- Create quickslot to store shortcut-----------------------------------------------
    qsTemp = Turbine.UI.Lotro.Quickslot();
    qsTemp:SetParent(window1); -- this line puts the control on the window
    qsTemp:SetSize(96,18);
    qsTemp:SetPosition(2, 45);
    qsTemp:SetVisible(true);
    tempString = "/ra <rgb=#00ff00>-- MOVE LEFT --</rgb>";
    qsTemp:SetShortcut(Turbine.UI.Lotro.Shortcut( Turbine.UI.Lotro.ShortcutType.Alias, tempString));
    and now you have a quickslot that can be clicked and will send the message. You can hide the quickslot behind an image and set the image to not mouse visible (so clicks pass through to the quickslot) to make it a little prettier but the user still must effectively click the quickslot to actually send the text. Again, any plugin that looks like a button is sending chat text is really using a quickslot which is cleverly masked behind another control and mouse clicks are being passed through to the quickslot by using :SetMouseVisible(false) on whatever control is placed in front of the quickslot.
    Gnashtooth - Rank 10 Warg - My breath's worse than my bite - but what d'ya want? I eat Hobbitsess fer cryin' out loud
    Garan - Captain of little note - got parked at a Fell Scrying Pool so long it dried up and blew away
    and many, many others...
    "No, no, the hamsters are for the forums. The servers run on chinchillas!"-Patience 7/20/2007

  11. #11
    Grand Member Online status: Saelyth is offline Reputation: Saelyth has disabled reputation
    Join Date
    Sep 2010
    Posts
    1,492

    Re: [Plugin] ChatEdit

    Quote Originally Posted by Garan View Post
    You can't send text to a channel programmatically in response to a button click. Instead the user has to actually click the quickslot. The only thing your example is missing is that you don't set the qsTemp parent to what ever window the quickslot would display in.
    Code:
     window1=Turbine.UI.Lotro.Window(); window1:SetSize(200,200); window1:SetPosition(200,200); window1:SetText("some window"); window1:SetVisible(true); -- the above is the bare minimum to create some window for your quickslot, obviously you would want to do a lot more to create a nice UI  -- now add your example -- Create quickslot to store shortcut----------------------------------------------- qsTemp = Turbine.UI.Lotro.Quickslot(); qsTemp:SetParent(window1); -- this line puts the control on the window qsTemp:SetSize(96,18); qsTemp:SetPosition(2, 45); qsTemp:SetVisible(true); tempString = "/ra -- MOVE LEFT --"; qsTemp:SetShortcut(Turbine.UI.Lotro.Shortcut( Turbine.UI.Lotro.ShortcutType.Alias, tempString));
    and now you have a quickslot that can be clicked and will send the message. You can hide the quickslot behind an image and set the image to not mouse visible (so clicks pass through to the quickslot) to make it a little prettier but the user still must effectively click the quickslot to actually send the text. Again, any plugin that looks like a button is sending chat text is really using a quickslot which is cleverly masked behind another control and mouse clicks are being passed through to the quickslot by using :SetMouseVisible(false) on whatever control is placed in front of the quickslot.
    Lol garan, that's indeed a really nice trick, Making a click pass throught a fake button to actually hit an invsisible button behind. I will try it later when i can and probably update my other post in the Lua forums. Also i want to say you thanks, you'r helping me so much that i didn't lose the passion for plugins. (I gotta admit i started this plugin in 2011 but i was stuck until 1 week ago)

  12. #12
    Grand Member Online status: Galuhad is offline Reputation: Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire Galuhad Protector of the Shire
    Join Date
    Jun 2009
    Location
    London, UK
    Posts
    1,054
    Updated to v.1.4.0

    - Changed the color picker class to be more effective - you can now get colors like orange/yellow easier.
    - Implemented the new :SetMarkupEnabled() feature to the output text. With this the plugin is no longer restricted to 'block' colors. Instead it now functions like a standard text editor - you will need to highlight the text you wish to color format.
    - Changed the output text window background to be semi-transparent so the preview is more realistic to how you will see it in the chat window

    Download at LotroInterface.com



    Galuhad - Kin Leader - Lore Breakers (Eldar)

    Be not so eager to advance that you fail to experience the moment, in life and in all things.






+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts