|
4 | 4 | import dev.isxander.yacl3.api.utils.MutableDimension; |
5 | 5 | import dev.isxander.yacl3.gui.YACLScreen; |
6 | 6 | import dev.isxander.yacl3.gui.controllers.ControllerPopupWidget; |
| 7 | +import dev.isxander.yacl3.platform.YACLConfig; |
7 | 8 | import net.minecraft.client.gui.GuiGraphicsExtractor; |
8 | 9 | import net.minecraft.client.gui.screens.Screen; |
9 | 10 | import net.minecraft.client.input.CharacterEvent; |
@@ -58,24 +59,12 @@ public void extractRenderState(GuiGraphicsExtractor graphics, int mouseX, int mo |
58 | 59 | if (dropdownLength() == 0) return; |
59 | 60 |
|
60 | 61 | // Background |
61 | | - int x = dropdownDim.x(); |
62 | | - int y1 = dropdownDim.y(); |
63 | | - int textureWidth = dropdownDim.width(); |
64 | | - int textureHeight = dropdownDim.height(); |
65 | | - graphics.blit( |
66 | | - RenderPipelines.GUI_TEXTURED, |
67 | | - Screen.MENU_BACKGROUND, |
68 | | - x, y1, |
69 | | - 0.0f, 0.0f, |
70 | | - textureWidth, textureHeight, |
71 | | - 32, 32, |
72 | | - 0xFF3F3F3F |
73 | | - ); |
| 62 | + graphics.fill(dropdownDim.x(), dropdownDim.y(), dropdownDim.xLimit(), dropdownDim.yLimit(), YACLConfig.HANDLER.instance().dropdownColor.getRGB()); |
74 | 63 | graphics.outline(dropdownDim.x(), dropdownDim.y(), dropdownDim.width(), dropdownDim.height(), -1); |
75 | 64 |
|
76 | 65 | // Highlight the currently selected element |
77 | 66 | int y = dropdownDim.y() + 2 + entryHeight() * selectedVisibleIndex(); |
78 | | - graphics.fill(dropdownDim.x(), y, dropdownDim.xLimit(), y + entryHeight(), 0x7F000000); |
| 67 | + graphics.fill(dropdownDim.x(), y, dropdownDim.xLimit(), y + entryHeight(), YACLConfig.HANDLER.instance().dropdownSelectionColor.getRGB()); |
79 | 68 | graphics.outline(dropdownDim.x(), y, dropdownDim.width(), entryHeight(), -1); |
80 | 69 |
|
81 | 70 | // Render all visible elements |
|
0 commit comments