SHOW:
|
|
- or go back to the newest paste.
1 | - | function canvasWindow(ExistingCanvasName){ |
1 | + | function canvasWindow(existingCanvas: CanvasScript){ |
2 | - | x = getCanvas(ExistingCanvasName) |
2 | + | var root = existingCanvas.getElement('root'); |
3 | - | root = x.getElement('root') |
3 | + | var ui = @:privateAccess existingCanvas.cui; |
4 | - | ui = x.cui |
4 | + | root.y += 10; // Move stuff down a bit to make place for header |
5 | - | root.y += 10 |
5 | + | addHeader(ui); |
6 | - | addHeader(ui) |
6 | + | |
7 | ||
8 | function addHeader(ui: Zui){ | |
9 | - | function addHeader(ui){ |
9 | + | ui.button(... // add head element, close button, etc.. as usual way |
10 | - | ui.button(... // etc etc as usual |
10 | + |