PlayerInventory & PlayerInventoryUI: remove group image animation. #34
This commit is contained in:
@@ -27,13 +27,6 @@ PlayerInventoryUI:registerOnFormFieldActionMatch('.+::%S+::group_button',functio
|
||||
PlayerInventoryUI:showForm(playerName)
|
||||
end)
|
||||
|
||||
Smc.registerGlobalStepForEachPlayer(1, function(deltaTime, player)
|
||||
local playerName = player:get_player_name()
|
||||
if Smc.getActiveFormspec(playerName) == '' then
|
||||
player:set_inventory_formspec(PlayerInventoryUI:getFormSpecString(playerName))
|
||||
end
|
||||
end)
|
||||
|
||||
PlayerInventoryUI:registerOnFormFieldActionMatch('.+::craft_item', function(player, fieldName, fieldValue)
|
||||
---@type InvRef
|
||||
local inv = player:get_inventory()
|
||||
|
||||
@@ -75,13 +75,13 @@ local function getCraftPane(self, playerName, paneType)
|
||||
craftsListForm:
|
||||
itemImage(w+0.0625, h+0.0625, 1, 1, output)
|
||||
else
|
||||
local k = time%#craft+1
|
||||
craft = craft[k]
|
||||
local craft = craft[1]
|
||||
assert(craft ~= nil)
|
||||
|
||||
craftsListForm:
|
||||
imageButton(w, h, 1.125, 1.125, 'player_inventory_craft_pane_button_background.png', craft.group..'::'..paneType..'::group_button'):
|
||||
itemImage(w+0.0625, h+0.0625, 1, 1, craft.output)
|
||||
itemImage(w+0.0625, h+0.0625, 1, 1, craft.output):
|
||||
image(w, h, 1.125, 1.125, 'player_inventory_craft_pane_group_button_overlay.png')
|
||||
end
|
||||
w = w + 1.125
|
||||
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Reference in New Issue
Block a user