-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Reset Custom Wardrobe Settings (#2120)
Co-authored-by: J10a1n15 <45315647+j10a1n15@users.noreply.github.com> Co-authored-by: raven <raveeeennnn@hotmail.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
- Loading branch information
1 parent
b7c7711
commit 88faa15
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
...main/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/ColorConfig.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
6 changes: 6 additions & 0 deletions
6
...in/java/at/hannibal2/skyhanni/config/features/inventory/customwardrobe/SpacingConfig.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
41 changes: 41 additions & 0 deletions
41
src/main/java/at/hannibal2/skyhanni/features/inventory/wardrobe/CustomWardrobeReset.kt
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,41 @@ | ||
package at.hannibal2.skyhanni.features.inventory.wardrobe | ||
|
||
import at.hannibal2.skyhanni.SkyHanniMod | ||
|
||
object CustomWardrobeReset { | ||
private val config get() = SkyHanniMod.feature.inventory.customWardrobe | ||
|
||
@JvmStatic | ||
fun resetSpacing() { | ||
with(config.spacing) { | ||
globalScale.set(100) | ||
outlineThickness.set(5) | ||
outlineBlur.set(0.5f) | ||
slotWidth.set(75) | ||
slotHeight.set(140) | ||
playerScale.set(75) | ||
maxPlayersPerRow.set(9) | ||
horizontalSpacing.set(3) | ||
verticalSpacing.set(3) | ||
buttonSlotsVerticalSpacing.set(10) | ||
buttonHorizontalSpacing.set(10) | ||
buttonVerticalSpacing.set(10) | ||
buttonWidth.set(50) | ||
buttonHeight.set(20) | ||
backgroundPadding.set(10) | ||
} | ||
} | ||
|
||
@JvmStatic | ||
fun resetColor() { | ||
with(config.color) { | ||
backgroundColor = "0:127:0:0:0" | ||
equippedColor = "0:127:85:255:85" | ||
favoriteColor = "0:127:255:85:85" | ||
samePageColor = "0:127:94:108:255" | ||
otherPageColor = "0:127:0:0:0" | ||
topBorderColor = "0:255:255:200:0" | ||
bottomBorderColor = "0:255:255:0:0" | ||
} | ||
} | ||
} |