The Mini Signs do not use the inventoryitem.atlasname property when getting drawn on. Therefore, all items with custom atlas (i.e. all mod items) do not display by default.
Partial solution:
Spoiler
This is the original function:
local function OnDrawnFn(inst, image, src) if image ~= nil then inst.AnimState:OverrideSymbol("SWAP_SIGN", "images/inventoryimages.xml", image..".tex") if inst:HasTag("sign") then inst.components.drawable:SetCanDraw(false) inst._imagename:set(src ~= nil and (src.drawnameoverride or src:GetBasicDisplayName()) or "") if src ~= nil then inst.SoundEmitter:PlaySound("dontstarve/common/together/draw") end end else inst.AnimState:ClearOverrideSymbol("SWAP_SIGN") if inst:HasTag("sign") then if not (inst.components.burnable ~= nil and inst.components.burnable:IsBurning()) then inst.components.drawable:SetCanDraw(true) end inst._imagename:set("") end end end
Without changing any function parameters, this tweak fixes the bug:
local function OnDrawnFn(inst, image, src) if image ~= nil then local atlas = (src and src.components.inventoryitem and src.components.inventoryitem.atlasname) or "images/inventoryimages.xml" inst.AnimState:OverrideSymbol("SWAP_SIGN", atlas, image..".tex") if inst:HasTag("sign") then --[...]
You might need to add a second netvar for the atlas. Nevertheless, it is a rather easy issue, hopefully you fix it soon. Thanks for reading and stay awesome Klei! ^_^
Steps to Reproduce
1) Plant a minisign 2) Place a mod item (with custom image) nearby 3) Use a Feather Pencil on the sign
1) Plant a minisign 2) Place a mod item (with custom image) nearby 3) Use a Feather Pencil on the sign
- 1
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now