Ryuushu Posted January 3, 2017 Share Posted January 3, 2017 (edited) So, I want to add a persistent minimap icon to a wormhole for a client only mod. I've got the save/load part already (thanks to Blueberrys DataContainer), but I have no idea how I should tackle the next part: add the icon. The minimap icon already changes when the player gets close enough to the wormhole (already know its position), but if he's far away it doesn't updates (like expected). Is there any way to add the icon manually to the minimap? The only idea that comes to my mind is creating a custom widget that contains the icons, add it to the mapscreen, get its scale just right, position the icons relative to their position and the minimap position, and update everything when the map is dragged around.. which sounds like a lot of pain. Edited January 3, 2017 by Ryuushu Link to comment Share on other sites More sharing options...
Kzisor Posted January 3, 2017 Share Posted January 3, 2017 Alternatively, check out how the moonrock markers work. They are persistent, but may require server side mod. Link to comment Share on other sites More sharing options...
Ryuushu Posted January 3, 2017 Author Share Posted January 3, 2017 (edited) Thanks, already did. And yup, they'd require a server side mod with that approach. I guess I'll have to go with the painful widget approach. Edited January 3, 2017 by Ryuushu Link to comment Share on other sites More sharing options...
Ryuushu Posted January 3, 2017 Author Share Posted January 3, 2017 (edited) Welp, I totally messed up on the title. It should have been "Temporal/dummy minimap icon", because I only need it to be there until the player walks close enough to it for the minimap to update. Well, both of them work actually, but a temporal one sounds easier to implement. Edited January 3, 2017 by Ryuushu Link to comment Share on other sites More sharing options...
Recommended Posts
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