HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.
Pages: 1 2 [3] 4 5 ... 8

Author Topic: How to make a simple scrollable chat window  (Read 44616 times)

madz370@hotmail.com

  • General Accounts
  • *
  • Posts: 24
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #30 on: Jan 09, 12, 07:56:49 AM »

I do not know why but i cant see any text nor can i press the enter key aka 13 to text out a message or open it up for a message to be written.

I dont know what i have done wrong but i have searched throug the scripts to look for any mistakes .. but i cant find one.

PS: im a moron thanks for the tut ! no need to help me as i figured out my own flaws...

Yeah one more thing.. how am I supposed to change the chat window color etc. Aka texture. I cant seem to find out how thats handled with this nor the other built in window for the clean engine.
« Last Edit: Jan 09, 12, 09:02:54 AM by Deiphobz »
Logged

LastJudge

  • General Accounts
  • *
  • Posts: 215
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #31 on: Jan 09, 12, 09:47:43 AM »

You can change the color and texture in the properties panel once you open GUI editor and click the item you want to change. The lines you are looking for will be in the botton of properties panel.
Logged

madz370@hotmail.com

  • General Accounts
  • *
  • Posts: 24
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #32 on: Jan 09, 12, 11:11:47 AM »

You can change the color and texture in the properties panel once you open GUI editor and click the item you want to change. The lines you are looking for will be in the botton of properties panel.

Yeah I kinda know that :) But it doesnt work for this window, and it didnt work for the HE or E_ window either when I tried to apply some texture there.. I cant find where to change the text either.. but i know where your pointing me too, but it does not work for me atleast.
Logged

Jamielea

  • General Accounts
  • *
  • Posts: 11
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #33 on: Jan 11, 12, 05:34:04 AM »

Hi,

I have been following this. I think I have messed something up. Could you tell me how to remove the TEMP_ChatWindow from the GUI XML section? Every time I right click and click remove it removes and then when I refresh it reappears.

Thanks,
J
Logged

Jamielea

  • General Accounts
  • *
  • Posts: 11
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #34 on: Jan 11, 12, 07:04:27 AM »

I am also getting an error now.

me.GetChatWindow().SetChatFocus( command ) (On this line 9)

Any idea as to why I am getting this error?

Thanks,
J

Edit: Any chance someone could paste me the E_ChatHandlerClassMethods class file contents ? (The default class code)
« Last Edit: Jan 11, 12, 03:55:09 PM by Jamielea »
Logged

Jamielea

  • General Accounts
  • *
  • Posts: 11
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #35 on: Jan 12, 12, 02:53:14 AM »

Strange its working now. I close HeroBalde fot the night and just checked it now and its working. Why would it have such a long delay?

Thanks,
J
Logged

Jamielea

  • General Accounts
  • *
  • Posts: 11
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #36 on: Jan 12, 12, 03:49:15 AM »

Sorry for the multiple posts. I think I noticed an error. Not an error in general but only when you create a new play instance it create the chat box again and if you was to keep creating play instances it adds another chat box etc..

Can this be resolved it anyway I am wondering?
Logged

GARDrealms

  • World Owners
  • ****
  • Posts: 18
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #37 on: Jan 20, 12, 04:11:45 PM »

ok, nub here, where do you change the text color, I found how to change every thing else..
« Last Edit: Jan 20, 12, 04:40:03 PM by GARDrealms »
Logged

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1407
    • View Profile
    • Forever Interactive, Inc.
Re: How to make a simple scrollable chat window
« Reply #38 on: Jan 20, 12, 04:17:48 PM »

There are presentation settings to every gui control for different situations, and those settings have a color field. Setting that for a label (usually the default settings) will change the color of the whole text.

Also, you can use a form of markup in the string used to dictate the text's contents.  Then, that color need not apply to the whole text.
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

GARDrealms

  • World Owners
  • ****
  • Posts: 18
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #39 on: Jan 21, 12, 10:00:06 PM »

I changed the DefaultStatePresentation Color 5 times and restarted and no change, I can see what i type but nothing ever shows up in the box above.
Logged

FI-ScottZ

  • General Accounts
  • *
  • Posts: 1407
    • View Profile
    • Forever Interactive, Inc.
Re: How to make a simple scrollable chat window
« Reply #40 on: Jan 21, 12, 10:11:04 PM »

I thought you were referring to a label control.  For text boxes, I believe there is a field for the text color, though I don't recall off hand. Look in the Misc. section of the control's properties in the gui editor.
Logged
Scott Zarnke
Lead Programmer, Visions of Zosimos
CTO, Forever Interactive, Inc.

Jrome90

  • General Accounts
  • *
  • Posts: 330
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #41 on: Jan 21, 12, 10:16:47 PM »

The text color is set here:

Code: [Select]
method SetColorForChannel( myLabel as NodeRef of Class E_ChatLabel, channel as String )
  when ToLower( channel )
    is "tell"
    myLabel.defaultStatePresentation.color.r = 1
    myLabel.defaultStatePresentation.color.g = 0.4
    myLabel.defaultStatePresentation.color.b = 1
    myLabel.defaultStatePresentation.color.a = 1
    .
    is "system"
    myLabel.defaultStatePresentation.color.r = 1
    myLabel.defaultStatePresentation.color.g = 1
    myLabel.defaultStatePresentation.color.b = 0
    myLabel.defaultStatePresentation.color.a = 1
    .
    default
    myLabel.defaultStatePresentation.color.r = 1
    myLabel.defaultStatePresentation.color.g = 1
    myLabel.defaultStatePresentation.color.b = 1
    myLabel.defaultStatePresentation.color.a = 1
    .
  .
.

Change to this:
Code: [Select]
default
    myLabel.defaultStatePresentation.color.r = 0
    myLabel.defaultStatePresentation.color.g = 0
    myLabel.defaultStatePresentation.color.b = 0
    myLabel.defaultStatePresentation.color.a = 1
    .
« Last Edit: Jan 21, 12, 10:20:32 PM by Jrome90 »
Logged

GARDrealms

  • World Owners
  • ****
  • Posts: 18
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #42 on: Jan 21, 12, 10:29:36 PM »

Only text I found is the data entry box, the chat client box has no text and no where to change it.
Logged

Jrome90

  • General Accounts
  • *
  • Posts: 330
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #43 on: Jan 21, 12, 10:37:50 PM »

The script to change is "TMP_ChatWindow" (IF you didnt use a different name)
Under the Method "SetColorForChannel"

The colors used, are not set in the GUI Editor.
Logged

GARDrealms

  • World Owners
  • ****
  • Posts: 18
    • View Profile
Re: How to make a simple scrollable chat window
« Reply #44 on: Jan 21, 12, 10:55:56 PM »

wow, Thank you.. ::)
Logged
Pages: 1 2 [3] 4 5 ... 8