Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

custom main menu button mouve


Recommended Posts

hello i have bad english i speak with google translation so i made a video 
to show what's going on .if you have not understood the button
 does not stay in place when the size of the window changes 
https://youtu.be/-WFDfQAdDgo
 
 
 
 
 

 

Edited by skyrix
Link to post
Share on other sites
10 hours ago, diesieben07 said:

Post your code.

{
   
    "buttons":
    {
        "singleplayer":
        {
            "text" : "singleplayer",
            "texture" : "custommainmenu:textures/gui/bouton.png",
            "posX" : -298,
            "posY" : 48,
            "width" : 200,
            "height" : 20,
            "action" : 
            {
                "type" : "openGui",
                "gui" : "singleplayer"
            }
        },
        
           "discord":
        {
            "text" : "discord",
            "texture" : "custommainmenu:textures/gui/discord.png",
            "posX" : -298,
            "posY" : 103, 
            "width" : 200,
            "height" : 20,            
            "action" : 
            {
                "type" : "openLink",
                "link" : "https://discord.io/Oxynia"
            }
        },
        
        "multiplayer":
        {
            "text" : "multiplayer",
            "texture" : "custommainmenu:textures/gui/bouton.png",
            "posX" : -298,
            "posY" : 72,
            "width" : 200,
            "height" : 20,
            "action" : 
            {
                "type" : "ConnectToServer",
                "ip" : "skyrix02.aternos.me"
            }
        },
      
            
        "options":
        {
            "text" : "options",
            "texture" : "custommainmenu:textures/gui/bouton.png",
            "posX" : -298,
            "posY" : 132,
            "width" : 200,
            "height" : 20,
            "action" : 
            {
                "type" : "openGui",
                "gui" : "options"
            }
        },
        
        "quit":
        {
            "text" : "quit",
            "texture" : "custommainmenu:textures/gui/bouton.png",
            "posX" : -298,
            "posY" : 156,
            "width" : 200,
            "height" : 20,
            "action" : 
            {
                "type" : "quit"
            }
        },
        
        
        "refresh":
        {
            "text" : "",
            "posX" : -154,
            "posY" : 182,
            "width" : 20,
            "height" : 20,
            "texture" : "custommainmenu:textures/gui/transparent.png",
            "action" : 
            {
                "type" : "refresh"
            }
        }
    },
    
    
    "other":
    {
        "background":
        {
            "image" : "custommainmenu:textures/gui/fond.png",
            "mode" : "stretch"
            }
    }
}

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.