Moonshyne
World of Warcraft® guild on Ravenholdt·EU, and UI Addon creation & development

...powered by Darkmoon Special Reserveâ„¢!
Tue 07 Sep 2010 01:27:57 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: MyRolePlay 3.3.55 (compatible with WoW 3.3.5.12340) released!
Home Help Search Login Register
Pages: 1
Print
Author Topic: Is there a way to disable Sticky Chat Channels?  (Read 984 times)
0 Members and 2 Guests are viewing this topic.
Thurin
Visitor

Offline

Posts: 2


« on: Tue 21 Jul 2009 10:18:32 »

First off, love MRP. It's really really nice!

But I've noticed that MRP has sticky channels for the public channels, but I really don't like it.
So I'm wondering simply; how can I disable this?
(Also I'm suggesting a toggle-button!)

Brief, but I can provide more details if needed!
Logged
Elandru Moonshyne
Founder

Offline

Posts: 218



« Reply #1 on: Tue 21 Jul 2009 17:02:27 »

Ah, I know this one. Here's how; open MyCommunication.lua in a text editor (like Notepad, for example, that'll work fine).

At line 132, you'll see the following piece of Lua code, which runs when the addon is loaded:—

Code:
function mcoOnLoad()
ChatTypeInfo["CHANNEL"].sticky = 1; -- EM: As much as I like sticky channels, should we really be doing this in MRP?

if (not MTI_VERSION) then
mduDisplayMessage(MCO_LOCALE_MYTIME_MISSING_ERROR, MCO_NAME, .8, .8, 0, 1, 0, 0);
end

You can probably see the line that does the thing you asked about, because I placed a little note there myself when I took over maintenance of the addon, wondering about this very thing. Smiley

Place two hyphens and one space in front of that line (the one that has ChatTypeInfo["CHANNEL"].sticky = 1;) , and save the file. This "comments it out", meaning it doesn't get run, and the chat channels won't be "stickied".

This will not adversely affect the way the addon operates in any way.

After you're done, that bit of code will look like this:—

Code:
function mcoOnLoad()
-- ChatTypeInfo["CHANNEL"].sticky = 1; -- EM: As much as I like sticky channels, should we really be doing this in MRP?

if (not MTI_VERSION) then
mduDisplayMessage(MCO_LOCALE_MYTIME_MISSING_ERROR, MCO_NAME, .8, .8, 0, 1, 0, 0);
end

And then, once you've saved that out, MRP won't make the channels "sticky" when it loads anymore.

Is that OK? ^^
Logged

Ravenholdt�EU: Elandru (80 NE Hunter), Dulcamara (80 NE Rogue), and many, many others ...
Elandru Moonshyne
Founder

Offline

Posts: 218



« Reply #2 on: Tue 21 Jul 2009 17:07:46 »

If you want to do that "on the fly", by the way, while WoW is running, the following commands will do it:—

Code:
/script ChatTypeInfo["CHANNEL"].sticky = 1
— to ENABLE sticky channels

Code:
/script ChatTypeInfo["CHANNEL"].sticky = 0
— to DISABLE sticky channels

For those who are unaware, by default, when you press return, it brings up the last sticky channel you typed in. /g and /s are "sticky" by default; /e, and the chat channels like /1 and /2 and so forth, are not, so by default you have to type the /1 each time you want to type in the General channel.

MyRolePlay has that line in it, basically, which reverses that behaviour and makes those channels (and any other custom channels you may have /joined) sticky like /say and /guild.
Logged

Ravenholdt�EU: Elandru (80 NE Hunter), Dulcamara (80 NE Rogue), and many, many others ...
Thurin
Visitor

Offline

Posts: 2


« Reply #3 on: Wed 22 Jul 2009 10:32:14 »

Thank you very, very much to spend the time telling me this, and so fast too!
Worked a treat!  Grin
Good luck with MRP, I do think it's the best RP addon I've used, and I tried 'em all out!
Logged
Pages: 1
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
World of Warcraft® and Blizzard Entertainment® are all trademarks or registered trademarks of Blizzard Entertainment in the United States and/or other countries.
These terms and all related materials, logos, and images are copyright © Blizzard Entertainment. This site is in no way associated with or endorsed by Blizzard Entertainment®.
Valid XHTML 1.0! Valid CSS!