-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature + Improvement: Hoppity Event Card Live Display (#2749)
Co-authored-by: CalMWolfs <[email protected]> Co-authored-by: hannibal2 <[email protected]>
- Loading branch information
1 parent
b2547ca
commit db1e2fc
Showing
17 changed files
with
648 additions
and
138 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
42 changes: 42 additions & 0 deletions
42
...hannibal2/skyhanni/config/features/event/hoppity/HoppityEventSummaryCFReminderConfig.java
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,42 @@ | ||
package at.hannibal2.skyhanni.config.features.event.hoppity; | ||
|
||
import at.hannibal2.skyhanni.config.FeatureToggle; | ||
import com.google.gson.annotations.Expose; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorInfoText; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; | ||
|
||
public class HoppityEventSummaryCFReminderConfig { | ||
|
||
@Expose | ||
@ConfigOption( | ||
name = "Enabled", | ||
desc = "Periodically get reminded to switch to a new server to update your Chocolate Factory leaderboard position statistic." | ||
) | ||
@ConfigEditorBoolean | ||
@FeatureToggle | ||
public boolean enabled = false; | ||
|
||
@Expose | ||
@ConfigOption( | ||
name = "Note", | ||
desc = "§cNote§7: Reminders will only appear if you have added Leaderboard Change to your stat list." | ||
) | ||
@ConfigEditorInfoText | ||
public boolean statListNote = false; | ||
|
||
@Expose | ||
@ConfigOption(name = "Reminder Interval", desc = "How often to remind you to switch servers, in minutes.") | ||
@ConfigEditorSlider(minValue = 1, minStep = 1, maxValue = 120) | ||
public int reminderInterval = 30; | ||
|
||
@Expose | ||
@ConfigOption( | ||
name = "Show for Last X Hours", | ||
desc = "Only show the reminder for the last X hours of the event.\n0: Off\n30: Entire event" | ||
) | ||
@ConfigEditorSlider(minValue = 0, minStep = 1, maxValue = 30) | ||
public int showForLastXHours = 2; | ||
|
||
} |
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
38 changes: 38 additions & 0 deletions
38
...annibal2/skyhanni/config/features/event/hoppity/HoppityEventSummaryLiveDisplayConfig.java
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,38 @@ | ||
package at.hannibal2.skyhanni.config.features.event.hoppity; | ||
|
||
import at.hannibal2.skyhanni.config.FeatureToggle; | ||
import com.google.gson.annotations.Expose; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorInfoText; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorKeybind; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; | ||
import org.lwjgl.input.Keyboard; | ||
|
||
public class HoppityEventSummaryLiveDisplayConfig { | ||
|
||
@Expose | ||
@ConfigOption(name = "Show Display", desc = "Show the hoppity card in a GUI element.") | ||
@ConfigEditorBoolean | ||
@FeatureToggle | ||
public boolean enabled = false; | ||
|
||
@Expose | ||
@ConfigOption(name = "Note", desc = "§cNote§7: This card will mirror the stat list that is defined in the Hoppity Event Summary config.") | ||
@ConfigEditorInfoText | ||
public boolean mirrorConfigNote = false; | ||
|
||
@Expose | ||
@ConfigOption(name = "Only During Event", desc = "Only show the display while Hoppity's Hunt is active.") | ||
@ConfigEditorBoolean | ||
public boolean onlyDuringEvent = true; | ||
|
||
@Expose | ||
@ConfigOption(name = "Card Toggle Keybind", desc = "Toggle the GUI element with this keybind.") | ||
@ConfigEditorKeybind(defaultKey = Keyboard.KEY_NONE) | ||
public int toggleKeybind = Keyboard.KEY_NONE; | ||
|
||
@Expose | ||
@ConfigOption(name = "Show Holding Egglocator", desc = "Always show the card when holding an Egglocator.") | ||
@ConfigEditorBoolean | ||
public boolean showHoldingEgglocator = false; | ||
} |
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.