-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from GraysonnG/develop
Merge Develop into Master 11/2/18
- Loading branch information
Showing
20 changed files
with
500 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package infinitespire; | ||
|
||
import basemod.BaseMod; | ||
import basemod.ModLabeledToggleButton; | ||
import basemod.ModPanel; | ||
import basemod.interfaces.PostInitializeSubscriber; | ||
import com.badlogic.gdx.graphics.Texture; | ||
import com.megacrit.cardcrawl.core.Settings; | ||
import com.megacrit.cardcrawl.helpers.FontHelper; | ||
import infinitespire.util.TextureLoader; | ||
|
||
public class InfiniteSpireInit implements PostInitializeSubscriber { | ||
|
||
@Override | ||
public void receivePostInitialize() { | ||
InfiniteSpire.loadData(); | ||
Texture modBadge = TextureLoader.getTexture("img/infinitespire/modbadge.png"); | ||
|
||
ModPanel settingsPanel = new ModPanel(); | ||
|
||
ModLabeledToggleButton nightmareQuestDefault = new ModLabeledToggleButton("Start Game with Endless Quest", | ||
350f, 500f, Settings.CREAM_COLOR, FontHelper.buttonLabelFont, InfiniteSpire.startWithEndlessQuest, settingsPanel, | ||
(me) -> {}, | ||
(me) -> { | ||
InfiniteSpire.startWithEndlessQuest = me.enabled; | ||
InfiniteSpire.saveData(); | ||
}); | ||
|
||
nightmareQuestDefault.toggle.enabled = InfiniteSpire.startWithEndlessQuest; | ||
|
||
settingsPanel.addUIElement(nightmareQuestDefault); | ||
|
||
BaseMod.registerModBadge(modBadge, "Infinite Spire", "Blank The Evil", | ||
"Adds a new way to play Slay the Spire, no longer stop after the 3rd boss. Keep fighting and gain perks as you climb.", settingsPanel); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.