-
-
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: New Year Cake Tracker (#2237)
Co-authored-by: Empa <[email protected]> Co-authored-by: CalMWolfs <[email protected]> Co-authored-by: hannibal2 <[email protected]>
- Loading branch information
1 parent
25cd382
commit 352afc4
Showing
5 changed files
with
585 additions
and
3 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
src/main/java/at/hannibal2/skyhanni/config/features/inventory/CakeTrackerConfig.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,81 @@ | ||
package at.hannibal2.skyhanni.config.features.inventory; | ||
|
||
import at.hannibal2.skyhanni.config.FeatureToggle; | ||
import at.hannibal2.skyhanni.config.core.config.Position; | ||
import at.hannibal2.skyhanni.utils.LorenzColor; | ||
import com.google.gson.annotations.Expose; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorBoolean; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorColour; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorInfoText; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigEditorSlider; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigLink; | ||
import io.github.notenoughupdates.moulconfig.annotations.ConfigOption; | ||
import io.github.notenoughupdates.moulconfig.observer.Property; | ||
|
||
public class CakeTrackerConfig { | ||
|
||
@Expose | ||
@ConfigOption(name = "Enabled", desc = "Tracks which Cakes you have/need.") | ||
@ConfigEditorBoolean | ||
@FeatureToggle | ||
public boolean enabled = false; | ||
|
||
@Expose | ||
@ConfigOption( | ||
name = "Note", | ||
desc = "§cNote7:" + | ||
"\nThis feature is not compatible with the NEU Storage Overlay." + | ||
"\nBackpacks/Ender Chest will not be scanned correctly with it enabled." | ||
) | ||
@ConfigEditorInfoText | ||
public boolean incompatibleNote = false; | ||
|
||
@Expose | ||
@ConfigLink(owner = CakeTrackerConfig.class, field = "enabled") | ||
public Position cakeTrackerPosition = new Position(300, 300, false, true); | ||
|
||
@Expose | ||
public CakeTrackerDisplayType displayType = CakeTrackerDisplayType.MISSING_CAKES; | ||
|
||
public enum CakeTrackerDisplayType { | ||
MISSING_CAKES, | ||
OWNED_CAKES, | ||
} | ||
|
||
@Expose | ||
public CakeTrackerDisplayOrderType displayOrderType = CakeTrackerDisplayOrderType.OLDEST_FIRST; | ||
|
||
public enum CakeTrackerDisplayOrderType { | ||
OLDEST_FIRST, | ||
NEWEST_FIRST, | ||
} | ||
|
||
@Expose | ||
@ConfigOption(name = "Price on Hover", desc = "Show the prices of cakes when hovering over them in the tracker.") | ||
@ConfigEditorBoolean | ||
public boolean priceOnHover = true; | ||
|
||
@Expose | ||
@ConfigOption( | ||
name = "Missing Color", | ||
desc = "The color that should be used to highlight unobtained cakes in the Auction House." | ||
) | ||
@ConfigEditorColour | ||
public String unobtainedAuctionHighlightColor = LorenzColor.RED.toConfigColor(); | ||
|
||
@Expose | ||
@ConfigOption( | ||
name = "Owned Color", | ||
desc = "The color that should be used to highlight obtained cakes in the Auction House." | ||
) | ||
@ConfigEditorColour | ||
public String obtainedAuctionHighlightColor = LorenzColor.GREEN.toConfigColor(); | ||
|
||
@Expose | ||
@ConfigOption( | ||
name = "Maximum Rows", | ||
desc = "The maximum number of rows to display in the tracker, before a cutoff is imposed." | ||
) | ||
@ConfigEditorSlider(minValue = 5, maxValue = 40, minStep = 1) | ||
public Property<Integer> maxDisplayRows = Property.of(20); | ||
} |
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.