|
@@ -3,7 +3,7 @@ import ToolBox from './ToolBox';
|
|
|
import Keyboard from './keyboard';
|
|
|
import Mouse from './mouse';
|
|
|
import React from 'react';
|
|
|
-import {StyleSheet, View, Text} from 'react-native';
|
|
|
+import {Dimensions, StyleSheet, View, Text} from 'react-native';
|
|
|
import Library from 'trapilib/dist/lib';
|
|
|
import SideBar from './SideBar';
|
|
|
import MainBar from './MainBar';
|
|
@@ -49,10 +49,14 @@ export default class Gui {
|
|
|
this.saveEnv();
|
|
|
this.forceUpdate()
|
|
|
})
|
|
|
+
|
|
|
+ let cview = this.CoreSystem.getCurrentView();
|
|
|
+ let container = cview.getDefaultContainer();
|
|
|
+ let mainContent = new ViewNode(Math.random(), 'BaseContainer', {width: 1125/3, height: 2436/3 - 10});
|
|
|
+ cview.setContent(mainContent, container);
|
|
|
}
|
|
|
|
|
|
onMount() {
|
|
|
- debugger;
|
|
|
if(this.phone){
|
|
|
// thats fine
|
|
|
this.ToolBoxMouse = new Mouse(this.toolbox.current);
|