Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17

Thread: GUI Help

  1. #11
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Use GuiWindowCtrl.
    -Johnaudi

  2. #12
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    Finally I used that (without bitmap) but I get what I wanted

    PHP Code:
    CTFParams.show();
        
    EventsControlProfile.hide();
        new 
    GuiControlProfile("EventsControlProfile")
        {
          
    opaque true;
          
    border 1;
          
    borderColor "0 0 0";
          
    fillColor "57 57 57";

        }
        new 
    GuiControl("CTFParams") {
          
    extent   "300 200";
          
    profile "EventsControlProfile";
          
    canMove true;
          
    canResize canMaximize canClose false;
          
    alpha 1;

            new 
    GuiControl("CTFParamsControl2") {
              
    useownprofile true;
              
    profile.opaque true;
              
    profile.border 1;
              
    profile.borderColor "0 0 0";
              
    profile.fillColor "37 37 37";
              
    extent   "300 40";
              
    canResize canMaximize canClose canMove false;

              new 
    GuiTextCtrl("Test_Text") {
                
    useownprofile true;
                 
    profile.opaque true;
                
    profile.border 1;
                
    profile.borderColor "0 0 0";
                
    profile.justify "center";
                
    profile.fontColor "255 255 255";
                
    profile.fontSize 18;
                
    extend "300 40";
                
    text "CTF Settings";
              }
            }
        } 
    But I still have problems to center the Text :/

  3. #13
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Use a MultiLine instead for the text, and put:

    HTML Code:
    <center> The Text </center>
    In it so it would auto center it without having to do the mathematical process.
    -Johnaudi

  4. #14
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    Already found, I had forgot to update level xD
    I'm done with it:
    PHP Code:
        CTFParams.show();
        
    EventsControlProfile.hide();
        new 
    GuiControlProfile("EventsControlProfile")
        {
          
    opaque true;
          
    border 1;
          
    borderColor "0 0 0";
          
    fillColor "57 57 57";

        }
        new 
    GuiControl("CTFParams") {
          
    extent   "300 200";
          
    profile "EventsControlProfile";
          
    canMove true;
          
    canResize canMaximize canClose false;
          
    alpha 1;

            new 
    GuiControl("CTFParamsControl2") {
              
    useownprofile true;
              
    profile.opaque true;
              
    profile.border 1;
              
    profile.borderColor "0 0 0";
              
    profile.fillColor "37 37 37";
              
    extent "300 40";
              
    canResize canMaximize canClose canMove false;

              new 
    GuiTextCtrl("Test_Text") {
                
    useownprofile true;
                
    profile.fontColor "255 255 255";
                
    profile.fontSize 18;
                
    profile.justify "center";
                
    position "0 10";
                
    width 300;
                
    height 20;
                
    text "CTF Settings";
              }
            }
        } 
    Thanks for your help

  5. #15
    Zephlyn
    Join Date
    Aug 2013
    Location
    Chile
    Posts
    3,295
    I'm very bad at this ;-;

  6. #16
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    What does this have to do with 'update level'?
    -Johnaudi

  7. #17
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    I'm scripting a CTF so the window is in an npc, thats why I had to update npc* to makes the window takes changes (update level was confusing, you are right :P).
    Last edited by Joe; 03-09-2014 at 06:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •