|
@@ -19,6 +19,12 @@ class PlayerOutput extends Atomic.UIWindow {
|
|
|
|
|
|
|
|
this.output = <Atomic.UIEditField> this.getWidget("output");
|
|
this.output = <Atomic.UIEditField> this.getWidget("output");
|
|
|
|
|
|
|
|
|
|
+ (<Atomic.UIButton>this.getWidget("closebutton")).onClick = () => {
|
|
|
|
|
+
|
|
|
|
|
+ this.close();
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
this.subscribeToEvent(this, "WidgetEvent", (data) => this.handleWidgetEvent(data));
|
|
this.subscribeToEvent(this, "WidgetEvent", (data) => this.handleWidgetEvent(data));
|
|
|
this.subscribeToEvent(EditorEvents.PlayerLog, (ev: EditorEvents.PlayerLogEvent) => this.handlePlayerLog(ev));
|
|
this.subscribeToEvent(EditorEvents.PlayerLog, (ev: EditorEvents.PlayerLogEvent) => this.handlePlayerLog(ev));
|
|
|
|
|
|
|
@@ -32,7 +38,7 @@ class PlayerOutput extends Atomic.UIWindow {
|
|
|
|
|
|
|
|
var text = this.output.text;
|
|
var text = this.output.text;
|
|
|
if (text.length > 32768)
|
|
if (text.length > 32768)
|
|
|
- text = "";
|
|
|
|
|
|
|
+ text = "";
|
|
|
text += ev.message;
|
|
text += ev.message;
|
|
|
this.output.text = text + "\n";
|
|
this.output.text = text + "\n";
|
|
|
this.output.scrollTo(0, 0xffffff);
|
|
this.output.scrollTo(0, 0xffffff);
|