core: some fixes

This commit is contained in:
2026-01-09 17:02:35 +02:00
parent 2a0dd51659
commit 4785795640
10 changed files with 166 additions and 96 deletions

View File

@@ -313,6 +313,7 @@ function Hotbar:render()
for i = 1, HOTBAR_SIZE do
local id = self.state.slots[i] or ""
local isSelected = i == self.state.selected
local displayName = id ~= "" and (self.state.names and self.state.names[id] or id) or ""
slotElements[`Slot{i-1}`] = Roact.createElement("TextButton", {
Size = UDim2.fromOffset(50, 50),
@@ -358,7 +359,7 @@ function Hotbar:render()
Position = UDim2.fromOffset(4, 26),
Size = UDim2.new(1, -8, 0, 18),
Font = Enum.Font.GothamBold,
Text = id,
Text = displayName,
TextColor3 = colors.text,
TextSize = 15,
TextWrapped = true,