Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-02-2005, 09:40 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
GuiScrollCtrl question

I have been researching the Gui commands on the wiki, and this is all I could find for the scroll box:
PHP Code:
    GuiScrollCtrl (GuiControl):
      
childmargin string
      constantthumbheight 
boolean
      hscrollbar 
string
      scrollpos 
string
      tile 
boolean
      vscrollbar 
string
      wheelscrolllines 
integer
      willfirstrespond 
boolean
      scrolldelta
(intint)
      
scrollto(intint
Based on that, and some othe gui commands, I was able to put this together:
The window contains the scollbox, and the scrollbox contains the text
PHP Code:
//#CLIENTSIDE

// by Prozac
// replaces the welcome server pm, so that everyone -with v4- will see it without
// having to click on the pm in the playerlist.

//with scroll window

function onCreated()
       {

      new 
GuiWindowCtrl("San_welcome")
          {
        
//profile = "GuiMLWindowProfile";
        
position "0 0";
           
width 440;
           
height400;
        
extent "440 400";
        
canMove true;
        
canResize canMaximize canClose true;
        
tile true;
        
text "Sanstrata Classic Welcome Message";
        
visible true;


   new 
GuiScrollCtrl(Scrollbox)
     {
      
position "5 24";
      
extent "430 380";
      
childmargin ="5";
      
constantthumbheight true;
      
hscrollbar "red";
      
scrollpos "gray";
      
tile true;
      
vscrollbar "hi there";
      
wheelscrolllines 400;
      
willfirstrespond false;
      
scrolldelta(100500);
      
scrollto(300500);

        new 
GuiMLTextCtrl("Welcome_msg2"
            {
          
position "0 0";
          
extent "431 473";
          
horizSizing "width";
          
vertSizing "height";
          
text "<body bgcolor=black><sbreak><shadow:1:1><shadowcolor:000000><br> I want the whole background to be black but this box will not expand downwards except for how much text you put into it<br><br><br><br><br><br><br><br>and I dont want to resort to br tags";
           }

      }
   }
 } 
But the problem is that the text extent height cannot be forced to a pixel width, it just wraps around for however much text is there, and the amount of text may vary depending on what the welcome message is. I did not find any docuemtation on how to make the window or scroll areas a different color. I can only change the color of the text area, and the text area is not going to be a constant size.

If someone knows how to please help fix this so that the whole background of the scroll/window area is always black, that would be great. (oh look! I asked nicely! )
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
 


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 12:11 PM.


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