gui position? how to make entity tooltips? player.opened?

Place to get help with not working mods / modding interface.
User avatar
ownlyme
Filter Inserter
Filter Inserter
Posts: 445
Joined: Thu Dec 21, 2017 8:02 am
Contact:

gui position? how to make entity tooltips? player.opened?

Post by ownlyme »

1. i want to make a tooltip when you hover entities, but i couldn't find the position parameters in luagui

2. i assume there is also no api for cursor coordinates or something like that? well i can still put it at the right border of the screen if #1 works

3. an alternative would be to use floating text, but those don't scale with player zoom level so i couldn't just make an entity for the background etc.

4. i want to make an bonus production bar for a nuclear reactor (it outputs additional used fuel cells), but player.opened is only an entity and there seems to be no way to access this gui. (also it doesn't have the bonus_progress property)

any ideas?

i could make an entity for every digit, but that would result in at least 15 entities per tooltip... + 2 progress bars
creator of 55 mods
My api requests/suggestions: ui relative for overlay||Grenade arc||Player Modifiers||textbox::selection||Singleplayer RCON||disable car's ground sounds
Post Reply

Return to “Modding help”