PenguinGUI
PenguinGUI copied to clipboard
Useability
I may be missing some crucial piece of the puzzle here but it would be incredibly useful to have access to the entity that called your console script. I see the example object is using configParameters to juggle data though there is not a lot of doco about that anywhere or on configParameters in general when it comes to starbound.
For instance if you made an object that connects to door nodes then brings up a nice GUI for controlling how those doors function. At the moment as far as I can figure out there is no way to access anything about your object from the console script (like wire connections) without somewhat dirtily scanning around using the world global to try and get your objects id which gets rather messy if you had more than one in close proximity.
Would be nice to have something along the lines of: GUI.callingEntity -- giving you a reference to the entity that called this console script
Apologies if this is something incredibly obvious, am rather new to the way Lua (specifically starbound) does things.
While that would be a nice usability improvement, in order to get the calling entity ID, you would also need to modify the object script (as opposed to only the console script), which PenguinGUI is not designed to be used in. Since it has been quite a while since I have done any Starbound modding, it's quite possible that there are easier ways to do this now, but based off my previous experience, the best way to get the entity ID to the console script is what I did with StarModMenu. Take a look at smmobject.lua and smmconsole.lua for an example.