Skip to content

Commit 5533bd2

Browse files
committed
account name hud element
1 parent ce8744d commit 5533bd2

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
* Copyright 2025 Lambda
3+
*
4+
* This program is free software: you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by
6+
* the Free Software Foundation, either version 3 of the License, or
7+
* (at your option) any later version.
8+
*
9+
* This program is distributed in the hope that it will be useful,
10+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
* GNU General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU General Public License
15+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16+
*/
17+
18+
package com.lambda.module.hud
19+
20+
import com.lambda.gui.dsl.ImGuiBuilder
21+
import com.lambda.module.HudModule
22+
import com.lambda.module.tag.ModuleTag
23+
import com.lambda.threading.runSafe
24+
25+
object AccountName : HudModule(
26+
name = "AccountName",
27+
description = "Displays the current accounts name",
28+
tag = ModuleTag.HUD
29+
) {
30+
override fun ImGuiBuilder.buildLayout() {
31+
runSafe { text(player.name.string) }
32+
}
33+
}

src/main/kotlin/com/lambda/module/hud/ManagerDebugLoggers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import com.lambda.util.NamedEnum
2525

2626
@Suppress("Unused")
2727
object ManagerDebugLoggers : HudModule(
28-
"Manager Debug Loggers",
28+
"ManagerDebugLoggers",
2929
"debug loggers for all action managers in lambda",
3030
ModuleTag.HUD,
3131
customWindow = true

0 commit comments

Comments
 (0)