Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function canvasWindow(existingCanvas: CanvasScript){
  2.     var root = existingCanvas.getElement('root');
  3.     var ui = @:privateAccess existingCanvas.cui;
  4.     root.y += 10; // Move stuff down a bit to make place for header
  5.     addHeader(ui);
  6. }
  7.  
  8. function addHeader(ui: Zui){
  9.   ui.button(... // add head element, close button, etc.. as usual way
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement