PDA

View Full Version : Get Wisper in Seperate Frame


Unibus
28-01-2007, 04:28 AM
I'm kinda new to the mod development, so bear with me :tongue:

How can i efficiently get Wispers (or party/raid) form the DEFAUL_CHAT into a seperate "mod" Frame (scrollframe) ??

I've tryed to use ScrollingFrame. But i can't figure out how :cry:

I just wanna get a frame where, when some wispers you it, it will be shown, and be scrolled.
(I know i can do it ingame, But i just wanna know how to do this so i can take it further and do some modifications)

Thanks :smiley:

netsach
07-04-2007, 10:02 PM
Use WIM addon.

You won't regret it.

Tunga
07-04-2007, 10:37 PM
This is in the Mod Developer forum because he's trying to develop something :) .

netsach
07-04-2007, 10:51 PM
I know. But it's silly to reinvent the wheel all the time, isn't it ?

Sorry if i didn't answer the thread poster's question.

These steps can give a hint of what is needed :
- make an (empty) list to hold the people you're talking to and the associated frames
- hook on the CHAT_MSG_WHISPER event
- when you receive a whisper, seach the list for the name. if you don't find it, create a new frame, associate it with the whisperer. add the message to the frame.
- the frame will consist at least of a Layer / FontString to display the text, and a ScrollFrame to move the display around.

I know this is only a very rough description, but it might get you started.

Tunga
08-04-2007, 01:14 AM
it's silly to reinvent the wheel all the timeSometimes, yes. But sometimes it's a good way to learn. We've all made a HELLO WORLD or two in our time, right :) ?

netsach
08-04-2007, 10:57 AM
We've all made a HELLO WORLD or two in our time, right :) ?

You're speaking the truth, of course !
Aaaah good ol' time, when code was
looking as cryptic as hieroglyphs...

Tunga
08-04-2007, 02:01 PM
Aaaah good ol' time, when code was
looking as cryptic as hieroglyphs...Luckily (or not?) I don't go back that far. But going from Java to C was bad enough for me :D !

JaedxRapture
08-04-2007, 04:43 PM
I know. But it's silly to reinvent the wheel all the time, isn't it ?

When the wheel is an oval, or seven-sided, it's necessary. I've seen plenty of mods that made me truly think the authors were mentally retarded. There are sometimes reasons to redo a mod.

I suggest looking at a couple mods that do this (the one listed above should be good) and see HOW they do it, then use that method in your own way to do what you want.

HelterSkelter
08-04-2007, 06:52 PM
I know. But it's silly to reinvent the wheel all the time, isn't it ?



It is called LEARNING TO CODE in a NEW ENVIRONMENT, and every programmer worth a damn has done it at some point in his or her life or did you never code a hello world program ever?

Jumpy
08-04-2007, 08:11 PM
Wheels come in all sizes and colors. Building a new wheel doesn't necessarily mean you have "reinvented the wheel", just redefined it. LOL

Tunga
08-04-2007, 08:15 PM
It is called LEARNING TO CODE in a NEW ENVIRONMENT, and every programmer worth a damn has done it at some point in his or her life or did you never code a hello world program ever?We already covered this, chill :) .

Rowaa
09-04-2007, 10:53 AM
Aren't all this in default UI from very beginning? Create new chat frame, activate only whispers/party/raid/anything else and you're done.

Tunga
09-04-2007, 11:47 AM
Aren't all this in default UI from very beginning? Create new chat frame, activate only whispers/party/raid/anything else and you're done.I guess we didn't quite cover it well enough. Read the thread maybe? Doing simple things is a great way to learn a new language or coding environment. This is the mod development forum and the OP wanted help with developing, not advice on how he/she can do it in the default client (the first post even say about how it can be done in the client).

JaedxRapture
09-04-2007, 04:46 PM
I guess we didn't quite cover it well enough. Read the thread maybe? Doing simple things is a great way to learn a new language or coding environment. This is the mod development forum and the OP wanted help with developing, not advice on how he/she can do it in the default client (the first post even say about how it can be done in the client).

Yes, I think this is the reason there's a "Developer Forum" instead of just a "UI" forum. If he had wanted some way to do it using a current mod or the default client over creating it himself, this would be in the UI section.

Wintrow
10-04-2007, 12:18 PM
I find the best way to learn to program is to read other ppl's code. Start with the simple ones that do one small thing and end up with monster-addons with plugins and all that stuff.

If you start at Gatherer or Nurfed Unit Frames you'll just end up with a headache and a lot of self-doubt.