Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Chat Tabs
#1
I'm pretty sure Elysium has this in it so I will try to rip it from it because I have no clue even how to try to make this myself but anyway any help would be appreciated.
Reply
#2
Couldn't you just.. make 3 RTBoxes, and when you click one tab.. make 2 of them invisible, and one visible?


Then in TxtAdd (Right?) say like.. If color = Blah, send to Blah.
Reply
#3
Are you looking for something similar to the dividers in a binder or filing cabinet?

If so, you'll have to add a new component type to your project,
open the project your working on and hit Ctrl+t to bring up the components window,
scroll down and check the box next to 'Microsoft Tabbed Dialog Control 6.0 (SP5)'.
Click apply and this will add a new SSTab component along with the comboboxes and stuff.

I've played with them a little in the past, but really don't know much about them,
each Tab is indexed and most other components contained on each tab can be refered to using the form name
and the component name itself. (No need to use a reference to which tab the component is on).

I don't know if it's a good idea to use them in an MS based project but I think this is what Elysium uses.
Oh and it uses the TABCTL32.OCX, this may come as standard with windows versions or you may need to add it
to your project and get your users to register it, I don't know.

I also like Rezeyu's idea... much simpler.

Hope this is of some help to ya.
Reply
#4
Ambientiger Wrote:I also like Rezeyu's idea... much simpler.

Just stating how I think PlayerWorlds does it. since on Pw, the tabs just show color, like all BrightRed messages are sent to the Combat Tab, etc.
Reply
#5
Yeah, I wanted something similar to what PW had, but from what I tried, if I would send like the color red things to the info tab then it would also have the PK's. Then again if I would send only the pink and blue for admin global to the Global chat tab then it wouldn't include the PK's that are supposed to be global. lol
Reply
#6
Just change the PK's color then..
Reply
#7
The way I did it in FPO, was I made seperate chat boxes for each channel. Then I went and changed the code where the client receives the text to add and I added in a bit more code to add it to the other chat boxes as well..

That was the method I used..

I'm sure there's a better one, but oh well.
Reply
#8
I think i'm going to try what Perfekt did because that sounds pretty much what I want.
Reply
#9
Make it perfect, and when any given chat recieves any text, set the tab label's colour to red or something, unless that chats currently visible.

Alerts players theres been things said/added to the chats they are not looking at xP
Reply
#10
the only thing I think would be usefull would be a block thing for the chat system. Freinds list is ok but sometimes you need to block people in a game from talking to you other wise they end up following you and so on.... and Foxes idea to just take a look at what msn messnger does it. Try usign that in a game best chat system ever then lol.
Reply
#11
lmao he's not saying make it like MSN xD
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#12
So I wouldn't have to change anything server side right? Just change how the client receives the chat messages and re-rout them to go in the different tabs?
Reply
#13
Fox Wrote:Make it perfect, and when any given chat recieves any text, set the tab label's colour to red or something, unless that chats currently visible.

Alerts players theres been things said/added to the chats they are not looking at xP

I've got this chat tabs working very nicely and exactly how I wanted it, thanks you guys. All I could add now would be what Fox said. So, how could I do this? Exactly how he said it? Just make it check what tab you have active/visible and make the rest turn red if they receive something?
Reply
#14
I use labels and set the font colors based on the one I have active.

I could easily add a check, if the text color is white, turn it red, if it's yellow, do nothing..

That might help you. Tongue
Reply
#15
chuck in some variables for the tabs, say you have 3 tabs, you could make it so when a message is recieved...

if tabselected=1 then

frmMirage.lblwhatever.forecolour = whatever
frmMirage.lblwhatever.forecolour = whatever

else

end if

etccccccccc

works fine for me anyway in the few minutes i had a go earlier :]

EDIT: Oh the way i am doing it is with picture boxes, so it will work just as well for

frmMirage.picMapChat.picture = frmMirage.picMapChatNew.picture

as an example...

Meh good luck xD

Edit 2:

haha, remember if you use a variable to set it when you click each tab!

-clicks map chat- tabselected = 1
-clicks some other shite- tabselected = 2

etccccc

If your confused i'll just paste the code later~
Reply
#16
Fox Wrote:chuck in some variables for the tabs, say you have 3 tabs, you could make it so when a message is recieved...

if tabselected=1 then

frmMirage.lblwhatever.forecolour = whatever
frmMirage.lblwhatever.forecolour = whatever

else

end if

etccccccccc

works fine for me anyway in the few minutes i had a go earlier :]

EDIT: Oh the way i am doing it is with picture boxes, so it will work just as well for

frmMirage.picMapChat.picture = frmMirage.picMapChatNew.picture

as an example...

Meh good luck xD

Edit 2:

haha, remember if you use a variable to set it when you click each tab!

-clicks map chat- tabselected = 1
-clicks some other shite- tabselected = 2

etccccc

If your confused i'll just paste the code later~

O_o

That's a bit much.. xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)