Now that we can transfer items directly to/from the network chest, it would be nice to be able to "pin" the NetworkView GUI.
The "flib" mod has a good example of how to do that.
I rigged something up based on the flib 'test' example and found it to be handy.
I can put the Network View frame next to the Character inventory frame and move stuff back and forth.
A dialog is "pinned" by setting player.opened=nil and "unpinned" by setting player.opened back to the original value.
There is also some trickery with the callbacks, as you get an on_gui_closed event when clearing player.opened.
The 'close' buttton handler also has to be modified to be able to close the dialog when pinned.
Now that we can transfer items directly to/from the network chest, it would be nice to be able to "pin" the NetworkView GUI.
The "flib" mod has a good example of how to do that.
I rigged something up based on the flib 'test' example and found it to be handy.
I can put the Network View frame next to the Character inventory frame and move stuff back and forth.
A dialog is "pinned" by setting
player.opened=niland "unpinned" by settingplayer.openedback to the original value.There is also some trickery with the callbacks, as you get an
on_gui_closedevent when clearingplayer.opened.The 'close' buttton handler also has to be modified to be able to close the dialog when pinned.