Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-04-2011, 02:30 PM
samich samich is offline
Registered User
samich's Avatar
Join Date: Jan 2007
Posts: 59
samich will become famous soon enough
Send a message via MSN to samich
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";
      }
    } 
__________________
[Graal Related Business]
Reply With Quote
  #2  
Old 12-04-2011, 04:44 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
GuiTextCtrl and GuiMLTextCtrl have no background. You're probably thinking of a GuiScrollCtrl, which is often combined with a GUIMLTextCtrl.
__________________
Reply With Quote
  #3  
Old 12-04-2011, 11:42 PM
samich samich is offline
Registered User
samich's Avatar
Join Date: Jan 2007
Posts: 59
samich will become famous soon enough
Send a message via MSN to samich
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.
__________________
[Graal Related Business]
Reply With Quote
  #4  
Old 12-04-2011, 11:56 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by samich View Post
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
  
}

Attached Images
 
Reply With Quote
  #5  
Old 12-04-2011, 11:58 PM
samich samich is offline
Registered User
samich's Avatar
Join Date: Jan 2007
Posts: 59
samich will become famous soon enough
Send a message via MSN to samich
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!
__________________
[Graal Related Business]

Last edited by samich; 12-05-2011 at 12:00 AM.. Reason: post before I submitted my post.
Reply With Quote
  #6  
Old 12-05-2011, 12:01 AM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Quote:
Originally Posted by samich View Post
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.
Attached Images
 
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 10:41 PM.


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