|
@@ -3,7 +3,7 @@ import ToolBox from './ToolBox';
|
|
import Keyboard from './keyboard';
|
|
import Keyboard from './keyboard';
|
|
import Mouse from './mouse';
|
|
import Mouse from './mouse';
|
|
import React from 'react';
|
|
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 Library from 'trapilib/dist/lib';
|
|
import SideBar from './SideBar';
|
|
import SideBar from './SideBar';
|
|
import MainBar from './MainBar';
|
|
import MainBar from './MainBar';
|
|
@@ -49,10 +49,14 @@ export default class Gui {
|
|
this.saveEnv();
|
|
this.saveEnv();
|
|
this.forceUpdate()
|
|
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() {
|
|
onMount() {
|
|
- debugger;
|
|
|
|
if(this.phone){
|
|
if(this.phone){
|
|
// thats fine
|
|
// thats fine
|
|
this.ToolBoxMouse = new Mouse(this.toolbox.current);
|
|
this.ToolBoxMouse = new Mouse(this.toolbox.current);
|