Jump to content

Untested [Client] Custom Web Buttons (Discord Button example included)


Cheshire

Recommended Posts

Custom Web Buttons Plugin

 

Description:

This plugin lets you configure custom buttons that can open a website anywhere* on the existing GUI.
It's configured through a relatively simple configuration file that simply stores all the buttons and their properties and will on-runtime create all relevant buttons that it can.

 

*= Objects that are not named in code (such as the main menu background) or are generated at run-time can not be used as a parent control.
Basic rule of thumb is, if you can find the NAME of an object as a Json file or IN a Json file you will be able to use that as a ParentControl!

 

Features:

  • Add buttons to your GUI anywhere!
  • Configure the website these buttons open at will.
  • Customize the location, alignment, size and image of these buttons.

 

Media:

Spoiler

Example button:

1094a256893f0ba4f556024f147d3010.png

 

Default Configuration File:

{
  "Buttons": [
    {
      "Name": "DiscordInvite",
      "Url": "https://www.discord.com",
      "ParentControl": "MenuWindow",
      "Bounds": {
        "X": 0,
        "Y": 0,
        "Width": 220,
        "Height": 70,
        "Left": 0,
        "Top": 0,
        "Bottom": 70,
        "Right": 220
      },
      "Alignments": [
        "Right",
        "Bottom"
      ],
      "Image": "join-our-discord.png",
      "HoverImage": null,
      "ClickedImage": null,
      "HoverSound": null
    }
  ],
  "IsEnabled": true
}

 

 

Download:

 

Version 1.0.0:    [Download]

Or view the Github repository over [Here]

 

Installation:

  1. Download the above file.
  2. Extract the folder into your Intersect Client\resources\plugins directory.
  3. Modify the config.json file and add any buttons to your UI as desired!
  4. Place the button images in the supplied Assets folder.
  5. Place the button sounds in the default Intersect sounds folder
  6. Run your client and witness your new buttons!

 

Objects that are not named in code (such as the main menu background) or are generated at run-time can not be used as a parent control.
Basic rule of thumb is, if you can find the NAME of an object as a Json file or IN a Json file you will be able to use that as a ParentControl!

Link to comment
Share on other sites

  • Cheshire changed the title to [Client] Custom Web Buttons (Discord Button example included)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...