Hook for detecting click in cWindow, currently only cLuaWindow
#6
I tested the hook for regular windows and it works.
But for this I have a idea:
  1. Get the block entity that the player wants to open
  2. Deny the opening of the block entity
  3. Create a lua window with the content of the block entity
  4. Call cPlayer:OpenWindow to open it
  5. Now the hook will be called and combining a list containing the player and the block entity - everything should be possible
  6. If the player closes the window, the callback SetOnClosing can be used to write the content back
Reply
Thanks given by:


Messages In This Thread
RE: Hook for detecting click in cWindow, currently only cLuaWindow - by Seadragon91 - 06-06-2017, 05:58 PM



Users browsing this thread: 1 Guest(s)