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 08-04-2007, 10:35 PM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Controls

PHP Code:
temp.ainfo System.serverFunction(this.name"getAbilities"player.account);
      
temp.1;
      
with (Mal_Main) {
        new 
GuiScrollCtrl(Mal_Ability_Scroll) {
          
position = {3244};
          
extent = {143225};
          
image null;
          
//red = green = blue = alpha = 0;
          
hScrollBar vScrollBar "alwaysOff";
          new 
GuiTextListCtrl(Mal_Abilities_Scroll) {
            
0;
            
width 200;
            
fitparentwidth true;

            
clearrows();
            for (
temp.ainfo) {
              echo(
a);
              
addrow(temp.ia[0]);
              
temp.i++;
            }
            
setSelectedRow(1);
          }
        }
      } 
This is pretty weird. So far, when I have two problems. When I put the text list ctrl inside the scroll control, the text lister isn't shown. But when I put it outside of the scroll ctrl and take away the scroll altogether I can't make make the text list as long as I need to.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #2  
Old 08-05-2007, 01:03 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
What objecttype() is Mal_Main?
I experienced once (it was back in v4 though) where the width of a textlist and treeview would be set to 8 regardless of any width I had set or if fitparentwidth was on or off. This would only happen when I had the scroll control in a certain type of GUI but I don't remember which one, sorry
__________________
Do it with a DON!
Reply With Quote
  #3  
Old 08-05-2007, 05:12 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Mal_Main is a Regular GuiControl.
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #4  
Old 08-05-2007, 05:33 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Have you tried putting the for outside of the control?

PHP Code:
for (temp.ainfo) {
  echo(
a);
  
Mal_Abilities_Scroll.addrow(temp.ia[0]);
  
temp.i++;

Reply With Quote
  #5  
Old 08-05-2007, 05:45 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
Didn't make any difference. We ARE talking about the text list control width tho dusty
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #6  
Old 08-05-2007, 06:01 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Ah, no idea what really was the problem :x
Reply With Quote
  #7  
Old 08-05-2007, 06:37 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Hmm. When I had this problem, addrow() refused to work for me also just so you know.

Trying changing the GuiTextListCtrl to GuiTreeViewCtrl and change the addrow's to addnode's
(Just so you can see if it works. Infact, you can even use a treeviewctrl as a textlist if you have to.. Just remove the first line and don't add any child nodes to any root node. Then it should look identical (but this is only incase GuiTextListCtrl just refuses to work)

Also try changing it to a simple control like a GuiBitmapCtrl and set the image just so you know that controls are being placed in the container and actually take up your specified size.
__________________
Do it with a DON!
Reply With Quote
  #8  
Old 08-05-2007, 06:57 AM
killerogue killerogue is offline
Registered Omega
killerogue's Avatar
Join Date: Apr 2006
Location: United States
Posts: 1,920
killerogue is on a distinguished road
Send a message via AIM to killerogue Send a message via MSN to killerogue
I know it's working when I use it outside of the Scroll ctrl. I just can't get it to the right size. But when I put the text list inside the scroll it refuses to show or work.

Thanks Zero, I may have to end up using a tree view ctrl. :P But thanks for your help. <3
__________________


REMEMBER, IF YOU REP ME, LEAVE A NAME!

Quote:
Originally Posted by haunter View Post
Graal admins don't die. They go to hell and regroup.
Quote:
Originally Posted by Inverness View Post
Without scripters, your graphics and levels wouldn't do anything but sit there and look pretty.
Reply With Quote
  #9  
Old 08-05-2007, 12:37 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Stan, check my posts in this thread:

http://forums.graalonline.com/forums...t=75724&page=2

The problem lies in the GuiScroll profile, I have yet to test my way to which var is causing it.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
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 05:56 PM.


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