Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-21-2005, 09:15 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
GuiTextListCtrl

Hey, how do you add text to a second column created with a GuiTextListCtrl? I'm not even sure how I could do this; I don't see any functions I could use. o_O For say, I wanna' rescript the profile window or add a debug function with a variable and it's value next to each other, using the GuiTextListCtrl.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #2  
Old 08-22-2005, 08:45 AM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
o.o I haven't a clue
I suppose I could spend a day or two and figure it out if you like.
__________________
Reply With Quote
  #3  
Old 08-24-2005, 06:34 AM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Any global out there willing to give me a hand?
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #4  
Old 08-24-2005, 08:50 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
not really
I hear yen is looking for something to do...... ^_~

On a more serious note, my offer still stands.
Not sure when I can schedule that day though, as I'm going to be busy for the next month+ with the move....
__________________
Reply With Quote
  #5  
Old 08-24-2005, 09:03 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Well if you wish to, then go ahead Cal o-o
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #6  
Old 08-24-2005, 09:20 PM
ChibiChibiLuc ChibiChibiLuc is offline
Cookie Monster. :3
Join Date: Jan 2005
Location: Nova Scotia, Canada
Posts: 111
ChibiChibiLuc is on a distinguished road
Send a message via AIM to ChibiChibiLuc Send a message via MSN to ChibiChibiLuc
Who doesn't know how to make columns?

(Lawl. )
Reply With Quote
  #7  
Old 08-24-2005, 09:33 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by ChibiChibiLuc
Who doesn't know how to make columns?

(Lawl. )
What you'd expect from the Homoerotic God of GraalScript z-z Yen!

Well anyway I figured it out so I'll share my knowledge with the rest of Graal.

In the GuiTextListCtrl, there is an option called 'columns'
NPC Code:

columns - string - of format "0 16", offset of the tabulators


Tabulators, hmm, let's see, that's "\t" in console text, right? Right! So let's do this:
NPC Code:

...Gui Script Here...
columns = "0 16 32 48";
...Other script stuff...
(GuiTextListCtrl.name).addText(str1 @ "\t\t" @ str2);


So yeah, that would mean that str2 would appear 32 pixels to the right of the left edge, and str1 would appear at the left edge. Those numbers, "0 16 32 48", are where, in pixels, the tabulators stop. So the first \t you add stops at a 16 pixel indent, then the second one stops at 32, then the third 48.

Note, if you add a fourth indent without specifying where the indent ends, it just won't show the text. So, if I do
NPC Code:

(GuiTextListCtrl.name).addText(str1 @ "\t\t\t\t" @ str2);


With the column setup I set before, then str2 would not show inside the GuiTextListCtrl.

I wonder if I've confused anyone o-o
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #8  
Old 08-24-2005, 09:35 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
Quote:
Originally Posted by ForgottenLegacy
Homoerotic
oooo bad word.
__________________
Reply With Quote
  #9  
Old 08-24-2005, 09:37 PM
ForgottenLegacy ForgottenLegacy is offline
-Backtoscripts-
Join Date: Aug 2003
Location: California
Posts: 289
ForgottenLegacy is on a distinguished road
Send a message via AIM to ForgottenLegacy
Quote:
Originally Posted by calani
oooo bad word.
But that's what he is o-o He knows it, everyone else who knows him knows it. And that's his nickname too.
__________________
"The higher you fly, the harder it is to breathe."

[Kaidenn] Maybe I will somehow take control of Lance's body when he isn't looking, have him log onto Kingdoms, update one script, and leave.
[Kaidenn] And leave him exactly where I found him, unchanged and completely unnaware of what just took place the last two minutes.
[GrowlZ] Lance: You might want to lock your bedroom door tonight
Reply With Quote
  #10  
Old 08-24-2005, 09:38 PM
calani calani is offline
Scriptess
calani's Avatar
Join Date: Aug 2003
Location: asmgarden.gmap
Posts: 606
calani is on a distinguished road
Send a message via AIM to calani
oh, okay. forgiven.
bad yen. no cookie.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:27 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.