Page 1 of 1

[GUI] Add custom details to hover inspector

Posted: Tue Jan 02, 2018 7:30 am
by biscuitWizard
On the panel that shows details about an item (like liquid amount in a pipe), I'd like to add GUI elements/info for some of my custom prototypes.

I cannot find a play to really start on that, though I see LuaGuiElement, and I could probably iterate down the GUI tree to find the parent I want, I'd rather not do anomalous functionality and outright abuse the system. Are there any examples on how I might do that or places I can start to tinker with to figure that out?

Thanks, guys!

Re: [GUI] Add custom details to hover inspector

Posted: Tue Jan 02, 2018 9:41 am
by darkfrei
Any vanilla GUI can't be changed with mods. I am waiting for 0.17 :)

Re: [GUI] Add custom details to hover inspector

Posted: Tue Jan 02, 2018 8:30 pm
by biscuitWizard
Shoot!
So my best option would be to make my own GUI element from scratch that "looks"/mimicks the on hover inspector to add my own elements.

Is it possible to show/hide a GUI element on the player hovering over a specific prototype?

Re: [GUI] Add custom details to hover inspector

Posted: Tue Jan 02, 2018 8:41 pm
by darkfrei

Re: [GUI] Add custom details to hover inspector

Posted: Fri Jan 05, 2018 4:25 pm
by eradicator
You'll still be limited to gui.left/top/center though. And for left/right you don't really know what other mods have already added stuff there so the position will be somewhat random,

It might be worth a try to make a modding request for a "selected tooltip" gui position. i.e gui.tooltip. that's displayed above/below the normal tooltip.