mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
refresh sprites
This commit is contained in:
parent
48c765d3be
commit
29abf3f26f
2 changed files with 5 additions and 0 deletions
|
@ -73,6 +73,7 @@ local function set_lukki(entity, peer_id)
|
|||
end
|
||||
if new ~= nil then
|
||||
ComponentSetValue(sprite, "image_file", new)
|
||||
EntityRefreshSprite(entity, sprite)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -49,6 +49,10 @@ function cos.player_color(player_entity)
|
|||
local x, y = EntityGetTransform(ctx.my_player.entity)
|
||||
local cape2 = EntityLoad(player_cape_sprite_file, x, y)
|
||||
EntityAddChild(player_entity, cape2)
|
||||
EntityRefreshSprite(player_entity, player_sprite_component)
|
||||
if player_sprite_component_lukki ~= nil then
|
||||
EntityRefreshSprite(player_entity, player_sprite_component_lukki)
|
||||
end
|
||||
end
|
||||
|
||||
function cos.player_cosmetics(player_entity)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue