Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GUI Text Backdrop not showing up? (https://forums.graalonline.com/forums/showthread.php?t=134265161)

samich 12-04-2011 02:30 PM

GUI Text Backdrop not showing up?
 
So normally you would see a backdrop behind GuiTextCtrl or GuiMLTextCtrl correct? Sort of a darker blue of the default gui color.


For some reason, I'm not seeing it at all and I've tried everything. I'm working with tabs and well, I'm just getting frustrated cause I would like the backdrop to show.

I've tried layers, I've tried shadow, and just about everything else I could think of.

Any ideas what is wrong?

(And I know I don't need the 'this.' etc stuff but like I said, I was trying anything to get results.)

PHP Code:

//-------- Tab 1: :P --------//
    
new GuiControl(Tab){
      
profile    GuiBlueControlProfile;
      
0;
      
50;
      
width 366;
      
height 300;
      
      
      
//Buttons
      
new GuiButtonCtrl("T1_BUTTON-XXXXXXX"){
        
this.profile GuiBlueButtonProfile;
        
this.15;
        
this.220;
        
this.width 110;
        
this.height 20;
        
this.text "---------";
      }
      new 
GuiButtonCtrl("T1_BUTTON-XXXXXXXX"){
        
this.profile GuiBlueButtonProfile;
        
this.128;
        
this.220;
        
this.width 110;
        
this.height 20;
        
this.text "-------";
      }
      new 
GuiButtonCtrl("T1_BUTTON-XXXXXX"){
        
this.profile GuiBlueButtonProfile;
        
this.241;
        
this.220;
        
this.width 110;
        
this.height 20;
        
this.text "-------";
      }
      
      
//Texts  
      
new GuiMLTextCtrl("T1_TEXT-Output") {
        
this.profile GuiBlueTextProfile;
        
this.10;
        
this.10;
        
this.height 20;
        
this.text "Text";
      }
    } 


cbk1994 12-04-2011 04:44 PM

GuiTextCtrl and GuiMLTextCtrl have no background. You're probably thinking of a GuiScrollCtrl, which is often combined with a GUIMLTextCtrl.

samich 12-04-2011 11:42 PM

Is there anyway I would be able to make a box behind it? I'm mostly looking for a nice aesthetic way to go about this to have some kind of backdrop behind a line of text. I'll try just tossing in a GuiScrollCtrl just to see if it gets me my results I'm looking for though.

Emera 12-04-2011 11:56 PM

1 Attachment(s)
Quote:

Originally Posted by samich (Post 1676368)
Is there anyway I would be able to make a box behind it? I'm mostly looking for a nice aesthetic way to go about this to have some kind of backdrop behind a line of text. I'll try just tossing in a GuiScrollCtrl just to see if it gets me my results I'm looking for though.

I think I know what you're saying...
Create a new Gui Control and make it look like a back box.

PHP Code:

//#CLIENTSIDE
function onCreated() {
  new 
GuiControl("Box") {
    
useownprofile true;
    
50;
    
50;
    
width 50;
    
height 50;
    
    
profile.opaque true;
    
profile.border 2//White border
    
profile.fillcolor = {0,0,0,150}; //Black translucent box
  
}



samich 12-04-2011 11:58 PM

Yup, everything is all good now! Just hid the scroll bars and got what I wanted. Man, I'm just too rusty to do this stuff lol

@Emera: Oh thank you for that idea too. I was able to just get what I wanted by turning off the scroll bars on a GuiScrollCtrl, but yours seems like something I might want to mess with later :P Thank you for the post!

Emera 12-05-2011 12:01 AM

1 Attachment(s)
Quote:

Originally Posted by samich (Post 1676372)
Yup, everything is all good now! Just hid the scroll bars and got what I wanted. Man, I'm just too rusty to do this stuff lol

@Emera: Oh thank you for that idea too. I was able to just get what I wanted by turning off the scroll bars on a GuiScrollCtrl, but yours seems like something I might want to mess with later :P Thank you for the post!

No problemo <3
I'm finding that I am starting to use this method to replace the default GUI window and use this as a container. You can draw smaller controls as buttons and other neat stuff too. I made a real quick access menu on Grime that doesn't look like a piece of crap.


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

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