Alternative Alt Mode


Replaces the standard Alt-Mode by providing more information for more objects. This information is shown only for entities around the player cursor, so the graphics of other objects can be enjoyed without always having an information overlay on top of them.

Utilities
29 days ago
2.0
464

i Alternative mode on top of Alt-mode?

3 months ago

Alternative mode on top of Alt-mode, would that be possible?

To get detailed information up close, but still have the high-level overview as well (from the regular alt-mode)

3 months ago
(updated 3 months ago)

I'm reluctant, it does not improve things

https://i.imgur.com/TRKOfhf.png

https://i.imgur.com/eYgE4tz.png

3 months ago

Is it possible to make both modes display simultaneously, but for the alternative mode only digital indicators are displayed? More precisely: the alternative mode displays both icons and numbers (objects, liquids, etc.), but what if only digital indicators are added to the standard mode? Then a kind of symbiosis will result, when the standard mode will display all icons, and the alternative mode will display all quantitative indicators?

That is, to make a setting for this mod that will only show quantitative values ​​(without icons), and that will work together with the usual normal mode.

Or is it even possible to completely replace the simple mode with an alternative one, but so that the concept of the simple mode - displaying item icons on all entities where possible, is here too?

3 months ago
(updated 3 months ago)

+1 on this
just a "small" circle of alternative alt-mode, and the rest as before with normal alt-mode

3 months ago

Ok I see why that would be useful.

That is, to make a setting for this mod that will only show quantitative values ​​(without icons), and that will work together with the usual normal mode.

That requires me to reverse engineer the exact location and sizes of all icons. I tried to be as close as possible with most of them. But it's quite difficult, especially since I also need to figure them out for modded entities.

Also sometimes this mod shows more icons. For example on larger chests this mod shows more than 4 items. If I'd implement this all containers will only show 4 items max.

3 months ago

What could this be useful for?
Here's an example I had trouble with and had to make a choice on what to do next...
Somewhere in the boxes there are still iron plates that I need to add to the box in the center, and I either need to move the mouse around looking for these plates or switch to normal mode and look with my eyes. The second option is easier because you don't have to move the mouse, but you can look around the entire space at once and quickly find the item you need.
https://drive.google.com/file/d/1-EkfO65eDC9NMoW0GGSqV-_xQDmZebcE/view?usp=sharing

As for the other question. Didn't you initially have to write code to find the exact location and size of all the icons?
To be more precise and understand that we are talking about the same thing, I will clarify that I and other users are asking to implement an option where the normal mode (when the simple alt-mode is enabled, which is located inside the game) will be supplemented by your new alternative mode, which will only show the quantitative indicators of items, without additional icons, since these icons are already shown by the simple mode.
Hmm... while writing, I may have understood what difficulties you are talking about, but this is not certain, since I do not quite understand the specifics of writing code.
It seems to me that I saw in your code fragments that are written separately for searching for icons and their location, and fragments that only do quantitative indicators. This is what I was talking about, is it possible to overlay them on the normal mode?
By the way, the game already has code for the simple mode, but maybe it can be found and supplemented with fragments of your code, and then it will be easier for you to do this? Or am I oversimplifying? :)

3 months ago
(updated 3 months ago)

Didn't you initially have to write code to find the exact location and size of all the icons?

Yes, and it is a lot of trial and error to get them to exactly line up with the normal mode icons, while keeping it as generic as possible. Eventually I opted for a 'good enough' approach.

searching for icons and their location

I'm not searching for them as they are not available to get from the API, I'm recalculating them.
In theory it's a simple function that takes a rectangle and a number of items, and spits out the locations and sizes of the sprites within that rectangle. Just one function for all entities.

This is what I was talking about, is it possible to overlay them on the normal mode?

Of course that is possible. The problem is that it still needs to draw the quantities at the location where the normal alt icons are, or the offsets feel off. So I still need to know their exact position, sizes and order.


Just to reiterate, I understand what you want and why, but it's a lot of effort on my side. I'll work on it, but might take a while to get it exactly right.

30 days ago

Implemented in 0.3.2.

Let me know if there are any quirks

29 days ago

This is incredible!
You are the best! Thanks for the update!

New response