Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GuiPopUpMenuCtrl Profile Issues (https://forums.graalonline.com/forums/showthread.php?t=134267601)

sssssssssss 12-20-2012 03:40 AM

GuiPopUpMenuCtrl Profile Issues
 
No idea why it's not working. It's in a window ctrl with a lot of other gui's. None of the popups work period using this. I've also used quotation marks and it doesn't work either.... This does however work in a different gui in a different weapon, with quotations, just fine...

PHP Code:

new GuiPopUpMenuCtrl("Mail_Combo_MoveTo")
    {
      
      
profile GuiBluePopUpMenuProfile;
      
textprofile Armageddon_TextList;
      
scrollprofile Armageddon_Scroll;
      
299;
      
184;
      
width 94;
      
height 20;
      
useownprofile true;
      
clearrows();
      
addrow(0"Saved");
      
addrow(1"Inbox");
      
setSelectedRow(0);
    } 


Gos_pira 12-20-2012 03:46 AM

I've also had problems with this.

sssssssssss 12-20-2012 04:30 AM

PHP Code:

useownprofile true;
      
profile Armageddon_Scroll;
      
scrollprofile Armageddon_Scroll

That works. Making sure the main profile is a scroll profile made it work fine. Using a text profile kept putting a "bubble" in the text so I took that one out.

cbk1994 12-20-2012 06:07 AM

Be careful about setting useOwnProfile = true; before defining the profile, that can sometimes cause useOwnProfile to be ignored (and thus your changes affect all instances of that profile).

xXziroXx 12-20-2012 11:14 AM

Doesn't setting a profile after useOwnProfile = true; completely overwrite the use of own profile?

I always did it like:

PHP Code:

this.useOwnProfile true;
this.profile.copyFrom(GuiWhateverProfile); 



All times are GMT +2. The time now is 07:35 PM.

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