BaseMod provides a number of hooks and a console.
- Java 8+
- Java 8+
- Maven
- Run
mvn package
- Copy
target/BaseMod.jar
to your ModTheSpire mods directory.
Default hotkey is `
, can be changed from BaseMod's settings screen.
info
toggle Settings.isInforelic [id]
generate relicrelic r [id]
lose relic
BaseMod.subscribeTo...(this)
BaseMod.unsubscribeFrom...(this)
Implement the appropriate interface (ex. basemod.interfaces.PostInitializeSubscription
)
receivePostInitialize()
- One time only, at the end ofCardCrawlGame.initialize()
receiveRender(SpriteBatch)
- Under tips and the cursor, above everything elsereceivePostRender(SpriteBatch)
- Above everythingreceivePreUpdate()
- Immediately after input is handledreceivePostUpdate()
- Immediately before input is disposed
Currently only has full support for the badges themselves. Clicking any will open the BaseMod settings page for now.
BaseMod.registerModBadge(Texture texture, String modName, String author, String description)
- Initial release
- Scale console by Settings.scale
- Prevent game hotkeys from activating while console is visible
- Add mod badges
- Add initial support for mod settings screens
- Add
relic
console command - Add option to change console keybind on BaseMod settings screen
- Scale mod badges by Settings.scale
- Scale mod settings screens by Settings.scale