Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Gui Rows (https://forums.graalonline.com/forums/showthread.php?t=134256174)

sssssssssss 09-23-2009 02:24 AM

Gui Rows
 
PHP Code:

function MyGUI_WARPER_Popup1.onSelect(entryid){
  if (
entryid == 1){
  
removerowbyid(9);
  
MyGUI_WARPER_TextList1.addrow(0,"Armageddon Spar");
  
MyGUI_WARPER_TextList1.addrow(1,"Event House");
  
MyGUI_WARPER_TextList1.addrow(2,"Guild Lobby");
  
MyGUI_WARPER_TextList1.addrow(3,"Bank");
  
MyGUI_WARPER_TextList1.addrow(4,"Shop");
  }
  if (
entryid == 2){
  
triggerserver("weapon"this.name"warpPopTwo");
  }
  if (
entryid == 3){
  
clearselection();
  
MyGUI_WARPER_TextList1.addrow(5,"Lasea");
  
MyGUI_WARPER_TextList1.addrow(6,"Treehouse Town");
  }
  if (
entryid == 4){
  
clearselection();
  
MyGUI_WARPER_TextList1.addrow(7,"Cross Castle");
  
MyGUI_WARPER_TextList1.addrow(8,"SDE GuildHouse - Indola");
  }
  if (
entryid == 5){
  
clearselection();
  
MyGUI_WARPER_TextList1.addrow(9,"Frontline");
  }


I've obviously tried clearselection() and removerow() and removerowbyid().
How do it get it to only show the certain rows on each selected entry id?

napo_p2p 09-23-2009 02:41 AM

You have to do it like:
PHP Code:

MyGUI_WARPER_TextList1.removerowbyid(9);
MyGUI_WARPER_TextList1.clearselection(); 


sssssssssss 09-23-2009 03:55 AM

ahh ty

sssssssssss 10-07-2009 07:32 PM

This isnt necessarily a problem with the GUI rows, but it is with the same GUI. I have this:

PHP Code:

    new GuiScrollCtrl("Stan_Window_Scroll") {
      
profile "GuiBlueScrollProfile";
      
Stan_Window_Scroll.profile.fontcolor = {0,0,0};
      
extent "300 250";
      
Stan_Window.width 2;
      
Stan_Window.height 1;
      
visible true;
      
hscrollbar "alwaysOff";
      
vscrollbar "dynamic";
    } 

also tried just
PHP Code:

profile.fontcolor = {0,0,0}; 

but it didnt work either, did the same thing.

but it changes the font color on pm's and everything. How do you get it to just change this GUI window and thats it?

Crow 10-07-2009 08:08 PM

Before changing any profile attributes, declare useOwnProfile as true:
PHP Code:

...
profile "GuiBlueScrollProfile";
useOwnProfile true;
... 


Switch 10-07-2009 11:07 PM

And you don't need the "Stan_Window_Scroll." Unless you're calling it outside that GUI creation.

sssssssssss 10-09-2009 03:05 AM

tank u


All times are GMT +2. The time now is 08:38 AM.

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