2 Commits

Author SHA1 Message Date
0b372111cf Item: minor annotations fix 2026-04-27 21:55:25 +03:00
c2782dda61 PlayerInventoryUI: change the orientation of the inventory mode switch 2026-04-27 21:54:47 +03:00
4 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ Settings._itemstack_inventory_size = nil
---The name of the texture that will be displayed as the background
---for the item when it is equipped on the player as a bag.
---@type string
---@type string?
Settings._itemstack_inventory_background = nil

View File

@@ -91,7 +91,7 @@ local function getCompactForm(self, playerName)
:list('current_player', 'main', 1.5,9.75, 9,1)
:list('current_player', 'main', 1.5,11.25, 9,1, 9)
-- Inventory mode switch button (compact/full):
:imageButton(13, 9.75, 0.5, 1, 'player_inventory_compact_mode_button_on.png', 'change_compact_mode')
:imageButton(12.75, 10, 1, 0.5, 'player_inventory_compact_mode_button_on.png', 'change_compact_mode')
-- Tab:
:container(tabs[leftTabName](self, playerName, 'left'), 1.5, 0.5)
-- Selection buttons for the (left) panel:
@@ -146,7 +146,7 @@ local function getFullForm(self, playerName)
:list('current_player', 'main', 5.5,9.75, 9,1)
:list('current_player', 'main', 5.5,11.25, 9,1, 9)
-- Inventory mode switch button (compact/full):
:imageButton(17, 9.75, 0.5, 1, 'player_inventory_compact_mode_button_off.png', 'change_compact_mode')
:imageButton(16.75, 10, 1, 0.5, 'player_inventory_compact_mode_button_off.png', 'change_compact_mode')
-- Tabs:
:container(tabs[leftTabName](self, playerName, 'left'), 0, 0.5)
:container(tabs[rightTabName](self, playerName, 'right'), 11, 0.5)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

After

Width:  |  Height:  |  Size: 701 B