Skip to content

Commit 22c8038

Browse files
CoccocoahelperSychic
authored andcommitted
feat: make all dungeon solver colors customizable (#487)
Signed-off-by: thatonecoder (formerly Coccocoa's Helper) <[email protected]> Co-authored-by: sychic <[email protected]>
1 parent 0b18876 commit 22c8038

File tree

4 files changed

+31
-26
lines changed

4 files changed

+31
-26
lines changed

src/main/kotlin/gg/skytils/skytilsmod/core/Config.kt

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,14 +1132,24 @@ object Config : Vigilant(
11321132

11331133
@Property(
11341134
type = PropertyType.SWITCH, name = "Boulder Solver",
1135-
description = "§b[WIP] §rShow which boxes to move on the Boulder puzzle.",
1135+
description = "Show which boxes to move on the Boulder puzzle.",
11361136
category = "Dungeons", subcategory = "Solvers",
11371137
i18nName = "skytils.config.dungeons.solvers.boulder_solver",
11381138
i18nCategory = "skytils.config.dungeons",
11391139
i18nSubcategory = "skytils.config.dungeons.solvers"
11401140
)
11411141
var boulderSolver = false
11421142

1143+
@Property(
1144+
type = PropertyType.COLOR, name = "Boulder Solver Color",
1145+
description = "Color of the box that shows which button to click in the Boulder puzzle.",
1146+
category = "Dungeons", subcategory = "Solvers",
1147+
i18nName = "skytils.config.dungeons.solvers.boulder_solver_color",
1148+
i18nCategory = "skytils.config.dungeons",
1149+
i18nSubcategory = "skytils.config.dungeons.solvers"
1150+
)
1151+
var boulderSolverColor = Color(255, 0, 0, 255)
1152+
11431153
@Property(
11441154
type = PropertyType.SWITCH, name = "Creeper Beams Solver",
11451155
description = "Shows pairs on the Creeper Beams puzzle.",
@@ -1182,7 +1192,7 @@ object Config : Vigilant(
11821192

11831193
@Property(
11841194
type = PropertyType.COLOR, name = "Teleport Maze Solver Color",
1185-
description = "Color of the thing that shows which pads you've stepped on in the Teleport Maze puzzle.",
1195+
description = "Color of the box that shows which pads you've stepped on in the Teleport Maze puzzle.",
11861196
category = "Dungeons", subcategory = "Solvers",
11871197
i18nName = "skytils.config.dungeons.solvers.teleport_maze_solver_color",
11881198
i18nCategory = "skytils.config.dungeons",
@@ -1200,9 +1210,19 @@ object Config : Vigilant(
12001210
)
12011211
var threeWeirdosSolver = false
12021212

1213+
@Property(
1214+
type = PropertyType.COLOR, name = "Three Weirdos Solver Color",
1215+
description = "Color of the chest to click on the Three Weirdos puzzle.",
1216+
category = "Dungeons", subcategory = "Solvers",
1217+
i18nName = "skytils.config.dungeons.solvers.three_weirdos_solver_color",
1218+
i18nCategory = "skytils.config.dungeons",
1219+
i18nSubcategory = "skytils.config.dungeons.solvers"
1220+
)
1221+
var threeWeirdosSolverColor = Color(255, 0, 0, 255)
1222+
12031223
@Property(
12041224
type = PropertyType.SWITCH, name = "Tic Tac Toe Solver",
1205-
description = "§b[WIP] §rDisplays the best move on the Tic Tac Toe puzzle.",
1225+
description = "Displays the best move on the Tic Tac Toe puzzle.",
12061226
category = "Dungeons", subcategory = "Solvers",
12071227
i18nName = "skytils.config.dungeons.solvers.tic_tac_toe_solver",
12081228
i18nCategory = "skytils.config.dungeons",
@@ -1212,7 +1232,7 @@ object Config : Vigilant(
12121232

12131233
@Property(
12141234
type = PropertyType.COLOR, name = "Tic Tac Toe Solver Color",
1215-
description = "Color of the thing that displays the best move on the Tic Tac Toe puzzle.",
1235+
description = "Color of the outline that displays the best move on the Tic Tac Toe puzzle.",
12161236
category = "Dungeons", subcategory = "Solvers",
12171237
i18nName = "skytils.config.dungeons.solvers.tic_tac_toe_solver_color",
12181238
i18nCategory = "skytils.config.dungeons",

src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/solvers/BoulderSolver.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ object BoulderSolver {
9393
RenderUtil.drawFilledBoundingBox(
9494
matrixStack,
9595
AxisAlignedBB(x, y, z, x + 1, y + 1, z + 1),
96-
Color(255, 0, 0, 255),
96+
Skytils.config.boulderSolverColor,
9797
0.7f
9898
)
9999
GlStateManager.enableCull()
@@ -379,4 +379,4 @@ object BoulderSolver {
379379
)
380380
variantSteps.add(arrayListOf(BoulderPush(0, 1, Direction.FORWARD)))
381381
}
382-
}
382+
}
Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
1-
/*
2-
* Skytils - Hypixel Skyblock Quality of Life Mod
3-
* Copyright (C) 2020-2023 Skytils
4-
*
5-
* This program is free software: you can redistribute it and/or modify
6-
* it under the terms of the GNU Affero General Public License as published
7-
* by the Free Software Foundation, either version 3 of the License, or
8-
* (at your option) any later version.
9-
*
10-
* This program is distributed in the hope that it will be useful,
11-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13-
* GNU Affero General Public License for more details.
14-
*
15-
* You should have received a copy of the GNU Affero General Public License
16-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
17-
*/
181
package gg.skytils.skytilsmod.mixins.hooks.renderer
192

3+
import gg.skytils.skytilsmod.core.Config.threeWeirdosSolverColor
204
import gg.skytils.skytilsmod.features.impl.dungeons.solvers.ThreeWeirdosSolver
215
import gg.skytils.skytilsmod.utils.bindColor
226
import net.minecraft.client.renderer.GlStateManager
237
import net.minecraft.tileentity.TileEntityChest
248
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo
25-
import java.awt.Color
269

2710
fun setChestColor(
2811
te: TileEntityChest,
@@ -34,7 +17,7 @@ fun setChestColor(
3417
ci: CallbackInfo
3518
) {
3619
if (te.pos == ThreeWeirdosSolver.riddleChest) {
37-
Color.RED.bindColor()
20+
threeWeirdosSolverColor.bindColor()
3821
GlStateManager.disableTexture2D()
3922
}
4023
}
@@ -49,4 +32,4 @@ fun setChestColorPost(
4932
ci: CallbackInfo
5033
) {
5134
GlStateManager.enableTexture2D()
52-
}
35+
}

src/main/resources/assets/skytils/lang/en_US.lang

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,14 @@ skytils.config.dungeons.solvers.highest_blaze_color=Highest Blaze Color
103103
skytils.config.dungeons.solvers.next_blaze_color=Next Blaze Color
104104
skytils.config.dungeons.solvers.line_to_next_blaze_color=Line to Next Blaze Color
105105
skytils.config.dungeons.solvers.boulder_solver=Boulder Solver
106+
skytils.config.dungeons.solvers.boulder_solver_color=Boulder Solver Color
106107
skytils.config.dungeons.solvers.creeper_beams_solver=Creeper Beams Solver
107108
skytils.config.dungeons.solvers.ice_fill_solver=Ice Fill Solver
108109
skytils.config.dungeons.solvers.ice_path_solver=Ice Path Solver
109110
skytils.config.dungeons.solvers.teleport_maze_solver=Teleport Maze Solver
110111
skytils.config.dungeons.solvers.teleport_maze_solver_color=Teleport Maze Solver Color
111112
skytils.config.dungeons.solvers.three_weirdos_solver=Three Weirdos Solver
113+
skytils.config.dungeons.solvers.three_weirdos_solver_color=Three Weirdos Solver Color
112114
skytils.config.dungeons.solvers.tic_tac_toe_solver=Tic Tac Toe Solver
113115
skytils.config.dungeons.solvers.tic_tac_toe_solver_color=Tic Tac Toe Solver Color
114116
skytils.config.dungeons.solvers.trivia_solver=Trivia Solver

0 commit comments

Comments
 (0)