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)
|
PlayerInventoryUI:showForm(playerName)
|
||||||
end)
|
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)
|
PlayerInventoryUI:registerOnFormFieldActionMatch('.+::craft_item', function(player, fieldName, fieldValue)
|
||||||
---@type InvRef
|
---@type InvRef
|
||||||
local inv = player:get_inventory()
|
local inv = player:get_inventory()
|
||||||
|
|||||||
@@ -75,13 +75,13 @@ local function getCraftPane(self, playerName, paneType)
|
|||||||
craftsListForm:
|
craftsListForm:
|
||||||
itemImage(w+0.0625, h+0.0625, 1, 1, output)
|
itemImage(w+0.0625, h+0.0625, 1, 1, output)
|
||||||
else
|
else
|
||||||
local k = time%#craft+1
|
local craft = craft[1]
|
||||||
craft = craft[k]
|
|
||||||
assert(craft ~= nil)
|
assert(craft ~= nil)
|
||||||
|
|
||||||
craftsListForm:
|
craftsListForm:
|
||||||
imageButton(w, h, 1.125, 1.125, 'player_inventory_craft_pane_button_background.png', craft.group..'::'..paneType..'::group_button'):
|
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
|
end
|
||||||
w = w + 1.125
|
w = w + 1.125
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
Reference in New Issue
Block a user