Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them has been replaced with a symlink. Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still be present.
12 lines
306 B
JavaScript
12 lines
306 B
JavaScript
var width = 0,
|
|
height = 0;
|
|
|
|
function onUpdate(dt) {
|
|
if (width != Window.innerWidth || height != Window.innerHeight) {
|
|
width = Window.innerWidth;
|
|
height = Window.innerHeight;
|
|
print("New window dimensions: " + width + ", " + height);
|
|
}
|
|
}
|
|
|
|
Script.update.connect(onUpdate);
|