Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   GUI Script: Playerlist (https://forums.graalonline.com/forums/showthread.php?t=64035)

talkingnoodle 02-11-2006 01:40 AM

GUI Script: Playerlist
 
Can anybody help me make a GUI playerlist script? That shows all the players in a list and you can select them and so on. I've used GUI Scripts alot but I haven't tried anything like this. An example on how to do it will help too ^^

Rick 02-11-2006 02:06 AM

Are you looking to replace the existing playerlist or are you doing something else...?

talkingnoodle 02-11-2006 06:52 AM

something else...

jake13jake 02-11-2006 10:20 AM

well, i guess that first you would want to use the allplayers array, perhaps? There's also an array var of objects of selected players on the default player list, if you want to use that (I just added it to my camera script).

ApothiX 02-11-2006 05:47 PM

Quote:

Originally Posted by jake13jake
well, i guess that first you would want to use the allplayers array, perhaps? There's also an array var of objects of selected players on the default player list, if you want to use that (I just added it to my camera script).

I don't know why he'd want to use the default Selected Players array if he's creating his own playerlist.

But yes, using allplayers to populate a GuiTextListCtrl or similiar would probably be the method of choice for making a playerlist.

talkingnoodle 02-11-2006 06:05 PM

Quote:

Originally Posted by ApothiX
I don't know why he'd want to use the default Selected Players array if he's creating his own playerlist.

But yes, using allplayers to populate a GuiTextListCtrl or similiar would probably be the method of choice for making a playerlist.

How would I use addrow() for that

jake13jake 02-11-2006 07:48 PM

Quote:

Originally Posted by talkingnoodle
How would I use addrow() for that

well, if he's thinking of doing something else, then it might make sense that you use the selectedlistplayers array instead of rescripting the entire playerlist. I honestly don't know how to script using the GUI controls.

ApothiX 02-12-2006 11:32 AM

Quote:

Originally Posted by jake13jake
well, if he's thinking of doing something else, then it might make sense that you use the selectedlistplayers array instead of rescripting the entire playerlist.

Quote:

Originally Posted by talkingnoodle
Can anybody help me make a GUI playerlist script?

It's what he wants to do.


Quote:

Originally Posted by jake13jake
I honestly don't know how to script using the GUI controls.

Then why are you posting here?

talkingnoodle 02-12-2006 08:16 PM

Ok back on topic, would something like this work?

PHP Code:

for (aallplayers){
addrow(aplayer.account);



Rick 02-12-2006 11:36 PM

No... you'd want something more like:

PHP Code:

for (aallplayers)
{
  
addrow(0a.account);



Maniaman 02-15-2006 11:45 PM

On the topic of Playerlists, is there any way to disable the default playerlist?

Ajira 02-16-2006 05:08 AM

Quote:

Originally Posted by Rick
No... you'd want something more like:

PHP Code:

for (aallplayers)
{
  
addrow(0a.account);



And you'd probably want to do something like
PHP Code:

0;
for (
aallplayers)
{
  
addrow(ia.account);
  
i++;



talkingnoodle 02-16-2006 05:40 AM

PHP Code:

for (aallplayers){
addrow(0,a);


works fine


All times are GMT +2. The time now is 11:48 PM.

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