Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   A tad stumped... (https://forums.graalonline.com/forums/showthread.php?t=134267869)

Nomad_P2P 02-10-2013 07:30 AM

A tad stumped...
 
Hey guys,

I am currently working on a playlist as I progress through learning GS2. I am a bit stuck on one part. I am trying to figure out a simple method too have song links remembered by script, or something.

NPC Code:

function PlaylistSet_Button2.onAction() {
if ( PlaylistGUI_Window1.visible == true ) {
PlaylistGUI_TextList1_Scroll.visible = true;
PlaylistGUI_TextList1.visible = true;
temp.i = PlaylistGUI_TextList1.rowCount();
PlaylistGUI_TextList1.addRow( temp.i + 1, PlaylistSet_TextEdit1.text SPC "-" SPC PlaylistSet_TextEdit2.text );
PlaylistSet_Window1.destroy();
}



The song Link is in PlaylistSet_TextEdit3.text, I currently just have the above for adding songs too the list, so it shows them being there.

Any help would be much appreciated.

dbug 02-10-2013 08:04 PM

Did you try clearing the list before it add's items?


All times are GMT +2. The time now is 09:24 PM.

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