need help creating mod to add visualization aids

Place to get help with not working mods / modding interface.
royce3
Inserter
Inserter
Posts: 22
Joined: Mon May 08, 2017 8:31 pm
Contact:

need help creating mod to add visualization aids

Post by royce3 »

hi, I'm partially color-blind and have a lot of trouble with the agricultural tower.

I noticed when I pick up artificial soil, it draws white squares around tiles that would benefit from the soil near a tower.

I would like to mod the tower so that when choosing a spot to place the tower, I can customize to do something similar as the soil. I want to draw white square around areas that are ready for seed, yellow where artificial soil is needed and red squares where overgrowth would be required, and no squares if the tile doesn't support planting.

I can't seem to figure out how to get the position that the ghost or item is hovering over to draw an overlay. How can I accomplish this?
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 613
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: need help creating mod to add visualization aids

Post by Silari »

Far as I'm aware you can't, because cursor position isn't part of the game state, just their cursor_stack. You'd have to draw the overlay over the entire possible area for as long as the player has the tower in hand.
Post Reply

Return to “Modding help”