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 01-11-2008, 02:57 AM
Jeffyy Jeffyy is offline
Graphics Artist
Jeffyy's Avatar
Join Date: Dec 2007
Location: USA, NJ
Posts: 82
Jeffyy is an unknown quantity at this point
Menu issue

Is it possible to have selectable text lines in a GuiScrollCtrl without inserting a txt document? I tried many different times, but when i tryed to add text it always changed the name of the window and no text within the box it's self.
Reply With Quote
  #2  
Old 01-11-2008, 04:04 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Have you tried either a GuiTextCtrl or a GuiMLTextCtrl (for multiple lines)?

If not, then those links should contain examples. You just need to create the text control you want within the GuiScrollCtrl (I'm assuming that you have at least some experience with Gui Controls. If you find any of this confusing, don't be afraid to ask again!).
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #3  
Old 01-11-2008, 04:11 AM
Jeffyy Jeffyy is offline
Graphics Artist
Jeffyy's Avatar
Join Date: Dec 2007
Location: USA, NJ
Posts: 82
Jeffyy is an unknown quantity at this point
Well what i was planning on making a menu that displayed what players are on what level, and i was trying to make it so you could select the level where people are and then warp to it, and im pretty sure you cant do it with text (not selectable i don't think) and i don't really need multiple lines, but thanks for the suggestion. So, ya. :]
Reply With Quote
  #4  
Old 01-11-2008, 05:32 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
You can, you just have to call gui.onSelect() or whatever. :P
__________________
Deep into the Darkness peering...

Last edited by Angel_Light; 01-11-2008 at 07:29 AM..
Reply With Quote
  #5  
Old 01-11-2008, 05:34 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
http://wiki.graal.net/index.php/Crea...uiTextListCtrl

Could work. Just click a row and you can have it warp you.

Quote:
Originally Posted by Angel_Light View Post
You can you just has to call gui.onSelect() or whatever. :P
......What?
Reply With Quote
  #6  
Old 01-11-2008, 07:13 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by Jeffyy View Post
Well what i was planning on making a menu that displayed what players are on what level, and i was trying to make it so you could select the level where people are and then warp to it, and im pretty sure you cant do it with text (not selectable i don't think) and i don't really need multiple lines, but thanks for the suggestion. So, ya. :]
Ahh, I misunderstood the post.

In that case, Twinny has it right .
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #7  
Old 01-11-2008, 07:28 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
@ Twinny : when ever you select something on a gui the function, GuiName.onSelect() is called, I forget the params exactly but it returns, ID, row, etc...

I also corrected my grammar in it too, sorry. <3
__________________
Deep into the Darkness peering...
Reply With Quote
  #8  
Old 01-12-2008, 09:33 PM
Jeffyy Jeffyy is offline
Graphics Artist
Jeffyy's Avatar
Join Date: Dec 2007
Location: USA, NJ
Posts: 82
Jeffyy is an unknown quantity at this point
Quote:
Originally Posted by Angel_Light View Post
@ Twinny : when ever you select something on a gui the function, GuiName.onSelect() is called, I forget the params exactly but it returns, ID, row, etc...

I also corrected my grammar in it too, sorry. <3
How do you do it if you wanted to press enter and not click on it?
Reply With Quote
  #9  
Old 01-13-2008, 12:40 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Jeffyy View Post
How do you do it if you wanted to press enter and not click on it?
check if you click enter, then check if a entry is selected?
__________________
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 11:18 AM.


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