Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
library:inventorygui:usage [2020/11/28 12:55] – [State Element] phoenix616library:inventorygui:usage [2021/05/11 11:36] (current) – [Dynamic Element] Add per player info phoenix616
Line 118: Line 118:
  
 ### Dynamic Element ### Dynamic Element
-You can also dynamically load elements each time the GUI is re-drawn. E.g. when you want to cache GUIs but not the  +You can also dynamically load elements each time the GUI is re-drawn and for each viewing player individually. E.g. when you want to cache GUIs but not the text of some buttons, display different elements per player or dynamically change them while they are open without closing and reopening them.
-text of some buttons or dynamically change them while they are open without closing and reopening them.+
  
 Dynamic elements just return one of the other elements that should be displayed each time `InventoryGui#draw` is called. Dynamic elements just return one of the other elements that should be displayed each time `InventoryGui#draw` is called.