Jump to content

1 Screenshot

  • 49.1k
  • 2.1k
  • 6.76 kB

About The Button

Customizable 7th Button.

Easy to setup, Default is a backpack image and command

Use any command that would usually require a slash e.g. "/Backpack" becomes "Backpack" in the config

Permissions
TheButton.use << Required to use The Button

Command
/button << toggles button on or off.

Configuration

{
  "GlobalSettings": {
    "Image Url for The Button": "https://i.imgur.com/7L1uDrs.png",
    "Command For The Button": "backpack",
    "Background color of Button RGBA format": "0.3 0.3 0.3 0.8",
    "Open By Default true/false": true
  },
  "AlignmentSettings": {
    "AnchorMin": "0.645 0.023",
    "AnchorMax": "0.688 0.095"
  }
}


AnchorMin And Max are set roughly to the position right of the hot-bar but can appear slightly different depending on the players resolution.

The default value in the Config is for 16:10.... 
theres 16:9:  AnchorMin": "0.645 0.029", AnchorMax": "0.691 0.104"
theres also to the left 16:9: AnchorMin": "0.295 0.029", AnchorMax": "0.341 0.104",

Color Examples

blackSolid black. RGBA is (0 0 0 1).
blueSolid blue. RGBA is (0 0 1 1).
clearCompletely transparent. RGBA is (0 0 0 0).
cyanCyan. RGBA is (0 1 1 1).
grayGray. RGBA is (0.5 0.5 0.5 1).
greenSolid green. RGBA is (0 1 0 1).
greyEnglish spelling for grey. RGBA is the same (0.5 0.5 0.5 1).
magentaMagenta. RGBA is (1 0 1 1).
redSolid red. RGBA is (1 0 0 1).
whiteSolid white. RGBA is (1 1 1 1).

The Last digit dictates Alpha channel... so for an opaque appearance select a value below 1  E.g. 0.7

Updates
1.0.2 Added background color to config, added open or close by default to config, fixed errors on server load, added hook to hide button if using furnace splitter.
1.0.3 Removed Debug message and fixed force load on default being true
1.0.4 error on server load fixed.... for real this time
1.0.5 Loosing the will to live.... Changed red text stuff again, changed methods that call the ui, simplified code, expanded brackets, drank coffee.. if its still broken after this i'm removing the plug and stating again!
1.0.6 Not given up on life yet.. another possible fix for red text spamage.
1.0.7 I just broke everything
1.0.8 Set the permission to the GUI... if the player doesnt have the perm they dont see the button

  • Like 6
  • Love 3

User Feedback

1.1m

Downloads

Total number of downloads.

5.6k

Customers

Total customers served.

81.1k

Files Sold

Total number of files sold.

1.6m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.