Jump to content

Recommended Posts

So I am trying to make a minimap icon for my new bush type.

local function fn()	local inst = CreateEntity()	local trans = inst.entity:AddTransform()	local anim = inst.entity:AddAnimState()	local minimap = inst.entity:AddMiniMapEntity()	inst:AddTag("bush")	minimap:SetIcon("berrybush.png")

This makes it have the same icon as a berry bush but if i try and change that to a path or to anything else it just doesn't show up. No errors.

Where should I put the image, what should I code to get it to show up?

Thanks

Link to comment
https://forums.kleientertainment.com/forums/topic/43727-minimap-icons/
Share on other sites

Maybe? I tried putting one in with the inventory images.

Where would I put that?

 

An atlas is typically in the same folder as the texture, and also states what part of the image is the respective texture. Ideally, you copy one over and replace the values.

An atlas is typically in the same folder as the texture, and also states what part of the image is the respective texture. Ideally, you copy one over and replace the values.

Cool. So I know how atlases work.

What I need to know is how to make a custom minimap image show up.

I know what code goes in the prefab but what do I put for a path?

Where do I put the texture? Do I need code in modmain.lua?

 

EDIT: Thanks @DeathDisciple I'll try that.

Edited by boardman94

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...