@@ -52,11 +52,21 @@ class NeverloseGui : GuiScreen() {
5252 private var settings = false
5353 private var search = false
5454 private var searchText = " "
55- private val defaultAvatar = ResourceLocation (FDPClient .CLIENT_NAME .lowercase(Locale .getDefault()) + " /64.png" )
56- private val customHudIcon = ResourceLocation (FDPClient .CLIENT_NAME .lowercase(Locale .getDefault()) + " /custom_hud_icon.png" )
57- private val eyeIcon = ResourceLocation (FDPClient .CLIENT_NAME .lowercase(Locale .getDefault()) + " /texture/category/visual.png" )
58- private val spotifyIcon = ResourceLocation (FDPClient .CLIENT_NAME .lowercase(Locale .getDefault()) + " /texture/spotify/spotify.png" )
59- private val keyBindIcon = ResourceLocation (FDPClient .CLIENT_NAME .lowercase(Locale .getDefault()) + " /texture/keyboard.png" )
55+
56+ private val clientPath = FDPClient .CLIENT_NAME .lowercase(Locale .getDefault())
57+ private val defaultAvatar = ResourceLocation (" $clientPath /texture/mainmenu/clickgui.png" )
58+
59+ private val githubIcon = ResourceLocation (" $clientPath /texture/github.png" )
60+ private val editIcon = ResourceLocation (" $clientPath /custom_hud_icon.png" )
61+ private val eyeIcon = ResourceLocation (" $clientPath /texture/category/visual.png" )
62+ private val spotifyIcon = ResourceLocation (" $clientPath /texture/spotify/spotify.png" )
63+ private val keyBindIcon = ResourceLocation (" $clientPath /texture/keyboard.png" )
64+ private val supportIcon = ResourceLocation (" $clientPath /texture/support.png" )
65+ private val updateIcon = ResourceLocation (" $clientPath /texture/update.png" )
66+ private val themeIcon = ResourceLocation (" $clientPath /texture/theme.png" )
67+ private val discordIcon = ResourceLocation (" $clientPath /texture/discord.png" )
68+ private val fontsIcon = ResourceLocation (" $clientPath /texture/fonts.png" )
69+
6070 private val headerIconHitboxes = mutableListOf<HeaderIconHitbox >()
6171 private var avatarTexture: ResourceLocation = defaultAvatar
6272 private var avatarLoaded = false
@@ -124,9 +134,9 @@ class NeverloseGui : GuiScreen() {
124134 GaussianBlur .renderBlur(10F )
125135 StencilUtil .uninitStencilBuffer()
126136 RoundedUtil .drawRound(x.toFloat(), y.toFloat(), w.toFloat(), h.toFloat(), 2f , if (light) Color (240 , 245 , 248 , 230 ) else Color (7 , 13 , 23 , 230 ))
127- RoundedUtil .drawRound((x + 90 ).toFloat(), (y + 40 ).toFloat(), (w - 90 ).toFloat(), (h - 40 ).toFloat(), 1f , if (light) Color (255 , 255 , 255 ) else Color (9 , 9 , 9 ))
128- RoundedUtil .drawRound((x + 90 ).toFloat(), y.toFloat(), (w - 90 ).toFloat(), (h - 300 ) .toFloat(), 1f , if (light) Color (255 , 255 , 255 ) else Color (9 , 9 , 9 ))
129- RoundedUtil .drawRound((x + 90 ).toFloat(), (y + 39 ).toFloat(), (w - 90 ).toFloat(), 1f , 0f , if (light) Color (213 , 213 , 213 ) else Color (26 , 26 , 26 ))
137+ RoundedUtil .drawRound((x + 90 ).toFloat(), (y + HEADER_HEIGHT ).toFloat(), (w - 90 ).toFloat(), (h - HEADER_HEIGHT ).toFloat(), 1f , if (light) Color (255 , 255 , 255 ) else Color (9 , 9 , 9 ))
138+ RoundedUtil .drawRound((x + 90 ).toFloat(), y.toFloat(), (w - 90 ).toFloat(), HEADER_HEIGHT .toFloat(), 1f , if (light) Color (255 , 255 , 255 ) else Color (9 , 9 , 9 ))
139+ RoundedUtil .drawRound((x + 90 ).toFloat(), (y + HEADER_HEIGHT - 1 ).toFloat(), (w - 90 ).toFloat(), 1f , 0f , if (light) Color (213 , 213 , 213 ) else Color (26 , 26 , 26 ))
130140 RoundedUtil .drawRound((x + 89 ).toFloat(), y.toFloat(), 1f , h.toFloat(), 0f , if (light) Color (213 , 213 , 213 ) else Color (26 , 26 , 26 ))
131141 GL11 .glEnable(GL11 .GL_BLEND )
132142 ensureAvatarTexture()
@@ -179,31 +189,41 @@ class NeverloseGui : GuiScreen() {
179189 nlSetting.draw(mouseX, mouseY)
180190 }
181191
182- RoundedUtil .drawRoundOutline((x + 105 ).toFloat(), (y + 10 ).toFloat(), 55f , 21f , 2f , 0.1f , if (light) Color (245 , 245 , 245 ) else Color (13 , 13 , 11 ), if (RenderUtil .isHovering((x + 105 ).toFloat(), (y + 10 ).toFloat(), 55f , 21f , mouseX, mouseY)) neverlosecolor else Color (19 , 19 , 17 ))
183- Fonts .Nl_18 .drawString(" Save" , (x + 128 ).toFloat(), (y + 18 ).toFloat(), if (light) Color (18 , 18 , 19 ).rgb else - 1 )
184- Fonts .NlIcon .nlfont_20.nlfont_20.drawString(" K" , (x + 110 ).toFloat(), (y + 19 ).toFloat(), if (light) Color (18 , 18 , 19 ).rgb else - 1 )
185-
186- val buttonSpacing = 8f
187- var nextButtonX = (x + 170 ).toFloat()
188- val buttonY = (y + 10 ).toFloat()
192+ val buttonSpacing = 5f
193+ val startX = (x + 105 ).toFloat()
194+ var nextButtonX = startX
195+ var buttonY = (y + 10 ).toFloat()
189196 val buttonHeight = 21f
190197
191198 headerIconHitboxes.clear()
192199
193200 val headerIcons = listOf (
194- HeaderIcon (" Edit" , customHudIcon) { mc.displayGuiScreen(GuiHudDesigner ()) },
195- HeaderIcon (" Viewer" , eyeIcon) {},
201+ HeaderIcon (" GitHub" , githubIcon) { },
202+ HeaderIcon (" Edit" , editIcon) { mc.displayGuiScreen(GuiHudDesigner ()) },
203+ HeaderIcon (" Viewer" , eyeIcon) { },
196204 HeaderIcon (" Spotify" , spotifyIcon) { SpotifyModule .openPlayerScreen() },
197- HeaderIcon (" Keybind" , keyBindIcon) { mc.displayGuiScreen(KeyBindManager ) }
205+ HeaderIcon (" Keybind" , keyBindIcon) { mc.displayGuiScreen(KeyBindManager ) },
206+
207+ HeaderIcon (" Support" , supportIcon) { },
208+ HeaderIcon (" Update" , updateIcon) { },
209+ HeaderIcon (" Theme" , themeIcon) { },
210+ HeaderIcon (" Discord" , discordIcon) { },
211+ HeaderIcon (" Fonts" , fontsIcon) { }
198212 )
199213
200214 GlStateManager .enableTexture2D()
201215 GlStateManager .enableBlend()
202216 GlStateManager .enableAlpha()
203217
204- headerIcons.forEach { icon ->
218+ headerIcons.forEachIndexed { index, icon ->
219+
220+ if (index == 5 ) {
221+ nextButtonX = startX
222+ buttonY + = 24f
223+ }
224+
205225 val textWidth = Fonts .Nl_18 .stringWidth(icon.name)
206- val buttonWidth = textWidth + 28f
226+ val buttonWidth = textWidth + 26f
207227
208228 val isHovering = RenderUtil .isHovering(nextButtonX, buttonY, buttonWidth, buttonHeight, mouseX, mouseY)
209229
@@ -344,6 +364,7 @@ class NeverloseGui : GuiScreen() {
344364 companion object {
345365 lateinit var INSTANCE : NeverloseGui
346366 var neverlosecolor = Color (28 , 133 , 192 )
367+ const val HEADER_HEIGHT = 64
347368
348369 fun getInstance (): NeverloseGui = INSTANCE
349370
0 commit comments