Page 1 of 1

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

Posted: Sat Jul 28, 2018 4:50 pm
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