BCMacro API
An API for creating buttons and keybinds.
Getting Started
Prerequisites
To use BCMacro API you fill first need to install a userscript manager.
- Chrome: Tampermonkey or Violentmonkey
- Firefox: Greasemonkey, Tampermonkey, or Violentmonkey
- Safari: Tampermonkey
- Microsoft Edge: Tampermonkey
- Opera: Tampermonkey or Violentmonkey
- Maxthon: Violentmonkey
- Dolphin: Tampermonkey
- UC: Tampermonkey
- Qupzilla: (no additional software required)
- AdGuard: (no additional software required)
Installing
Install us via the BCMC Website.
Usage
Go on to the BoxCritters Website and click the the ⚙️Settings button.
Mod Development
When making macros for your mod, enable the mod flag in the constructor so it gets deleted each refresh. After setting up your default settings, run setupMod()
on your macro to apply the user settings.
Usage
In Mods
var myMacroPack = BCMacros.createMacroPack("Pack Name");
myMacroPack.createMacro({
name:"Macro 1",
action:function() {
console.log("Hello World")
},
button:{}
})
myMacroPack.createMacro({
name:"Macro 2",
action:function() {
console.log("Hello World")
},
key:"p"
})
Docuementation
All documentation lives here
Licensing
All the code of this project is licensed under the Apache License version 2.0 (Apache-2.0).
Copyright 2020 TumbleGamer <[email protected]>
Copyright 2020 The Box Critters Modding Community
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
All the documentation of this project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.