Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-17-2008, 04:12 AM
Toxen Toxen is offline
A Toxic Fellow
Join Date: Jan 2008
Location: Georgia
Posts: 36
Toxen is on a distinguished road
Columns & GUI's

Well, Here is the problem, I have a GUI all set up but, when i'm using the GuiTextListCtrl I have no clue how to add the actual columns to it or name the columns, Since there isn't much on graal wiki or anyother places. Anyone mind helping.
-Thanks in advance.
Reply With Quote
  #2  
Old 03-17-2008, 04:33 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Do you mean rows?
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #3  
Old 03-17-2008, 04:38 AM
Toxen Toxen is offline
A Toxic Fellow
Join Date: Jan 2008
Location: Georgia
Posts: 36
Toxen is on a distinguished road
Not rows, I'm not talking horizontal i'm talking vertical columns.
__________________
UN NAT.
Reply With Quote
  #4  
Old 03-17-2008, 04:42 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
You can't make vertical columns that I know of.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #5  
Old 03-17-2008, 05:14 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
First\tSecond\tThird

Would put each word in a seperate column.
You use the columns variable in the control to define the columns.

columns = {0, 60, 120};

Would put the first column at 0, second at 60, and third at 120 pixels.
http://wiki.graal.net/index.php/Crea...uiTextListCtrl
__________________
Reply With Quote
  #6  
Old 03-17-2008, 11:36 PM
Toxen Toxen is offline
A Toxic Fellow
Join Date: Jan 2008
Location: Georgia
Posts: 36
Toxen is on a distinguished road
Doesn't seem to work Inverness

Here is the script snippet, Maybe that can help everything else is correct the columns just don't show.



new GuiTextListCtrl("Shop_List_of_weapons") {
profile = GuiBlueTextListProfile;
x = 13;
y = 105;
width = 324;


clearrows();
addrow(0,"Item_1");
addrow(1,"Item 2");
setSelectedRow(1);
columns = {0, 60, 120};
__________________
UN NAT.
Reply With Quote
  #7  
Old 03-17-2008, 11:42 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Instead of "Item_1" use "Item\t1"
It will display the "1" in the second column at pixel 60
Reply With Quote
  #8  
Old 03-17-2008, 11:48 PM
Toxen Toxen is offline
A Toxic Fellow
Join Date: Jan 2008
Location: Georgia
Posts: 36
Toxen is on a distinguished road
Thank you Stefan
__________________
UN NAT.
Reply With Quote
Reply


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 10:52 AM.


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