Page 1 of 2 1 2 LastLast
Results 1 to 10 of 17

Thread: GUI Help

  1. #1
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55

    Question GUI Help

    Hello Graalians,
    I'm actually scripting for a server, my problem isn't much important because it's just about the design of GUI but if someone could help me, it would enjoy me.
    So I'm asking us if you know some functions to design a GUI window, like changing the font color, the border,...
    Thanks about your help,
    Joe.

  2. #2
    Big Cheese ShizGodsu's Avatar
    Join Date
    Jun 2013
    Location
    Italia!
    Posts
    1,977
    You can make your own GUI by getting a graphic artist or yourself. (Nuovo GUI)

    I'm not sure of the script though.
    Roaming.

  3. #3
    Street Boss
    Join Date
    Jun 2013
    Location
    United States
    Posts
    529
    http://www.graal.net/index.php/Creation/Dev/GScript
    Look at Specific Features.
    This website is essential for Graal development.

  4. #4
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Of course you can, there is the variables (which are optional) that can change the GUI's colors (GUI.red GUI.blue and GUI.green are numbers between 0 and 1, e.g 0.7), transparency (GUI.alpha is a number between 0 and 1, 0 means invisible), coordinates (GUI.x and GUI.y)...

    If you want to make a custom window, there is the object called GuiControl.

    For example:
    PHP Code:

    new GuiControl("GuiWindow") {
          
    useownprofile true;
          
    profile.border 5;
          
    profile.bitmap "image"// The image you want to use
          
    resize(xywidthheight);

    Or for a custom background, you can use GuiBitmapCtrl or GuiBitmap.
    -Johnaudi

  5. #5
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    Okay thanks you all about your answers
    Also how to use tiles for the border of window, button,... like Era pc does, and probably other server.
    (And does border-radius work?)

  6. #6
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    What do you mean by having borders of tiles?
    -Johnaudi

  7. #7
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    Like in Era pc, they use a border images which is divided in some tiles to make each border (corner top, left, ...)

    Ps:
    Why that don't work:
    PHP Code:
    function onPlayerChats() {
        if(
    player.chat == ":ctf" && player.guild == "Events Team"){
          
    CTFParams.show();

          new 
    GuiControl("CTFParams") {
            
    useownprofile true;
            
    profile.border 5;
            
    profile.bitmap "levels/Staff/joe/images/joe_gui.png";
            
    resize(00640400);
          }
        }

    Last edited by Joe; 03-08-2014 at 01:56 PM.

  8. #8
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Quote Originally Posted by Joe View Post
    Like in Era pc, they use a border images which is divided in some tiles to make each border (corner top, left, ...)

    Ps:
    Why that don't work:
    PHP Code:
    function onPlayerChats() {
        if(
    player.chat == ":ctf" && player.guild == "Events Team"){
          
    CTFParams.show();

          new 
    GuiControl("CTFParams") {
            
    useownprofile true;
            
    profile.border 5;
            
    profile.bitmap "levels/Staff/joe/images/joe_gui.png";
            
    resize(00640400);
          }
        }

    Elaborate please.
    -Johnaudi

  9. #9
    Street Boss John's Avatar
    Join Date
    Jun 2013
    Location
    Lebanon
    Posts
    825
    Quote Originally Posted by Joe View Post
    Like in Era pc, they use a border images which is divided in some tiles to make each border (corner top, left, ...)

    Ps:
    Why that don't work:
    PHP Code:
    function onPlayerChats() {
        if(
    player.chat == ":ctf" && player.guild == "Events Team"){
          
    CTFParams.show();

          new 
    GuiControl("CTFParams") {
            
    useownprofile true;
            
    profile.border 5;
            
    profile.bitmap "levels/Staff/joe/images/joe_gui.png";
            
    resize(00640400);
          }
        }

    Try this:

    PHP Code:
    function onPlayerChats() {
        if(
    player.chat == ":ctf" && player.guild == "Events Team"){
          
          if (
    isObject("CTFParams")) CTFParams.destroy();

          new 
    GuiControl("CTFParams") {
            
    useownprofile true;
            
    profile.border 5;
            
    profile.bitmap "joe_gui.png";
            
    resize(00640400);
          }
        }

    -Johnaudi

  10. #10
    Soldier
    Join Date
    Jun 2013
    Location
    France
    Posts
    55
    Still not working.
    About the border of button, with tiles, you'll understand with that pictures:
    guiera_button.png

    Found something which works but idk if it's correct:
    PHP Code:
    if(player.chat == ":ctf" && player.guild == "Events Team"){
        
    CTFParams.show();

        new 
    GuiControl("CTFParams") {
            
    useownprofile true;
            
    500;
            
    20;
            
    width 300;
            
    height 200;

            new 
    GuiBitmapCtrl("Test_Bitmap") {
              
    width 300;
              
    height 200;
              
    bitmap "joe_gui.png";
            }
        }
      } 
    Is there a way to make it canmove and canclose?
    Last edited by Joe; 03-08-2014 at 03:42 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
  •