Prechádzať zdrojové kódy

Update editor for Maximum Power!

Nikatlas 5 rokov pred
rodič
commit
3f993a6efb
3 zmenil súbory, kde vykonal 18 pridanie a 5 odobranie
  1. 5 3
      Systems/Gui.js
  2. 1 1
      yalc.lock
  3. 12 1
      yarn.lock

+ 5 - 3
Systems/Gui.js

@@ -166,9 +166,11 @@ export default class Gui extends BaseSystem {
 
   addFrame(routeName = Math.random().toString(36).substring(7)) {
       let VS = new Library.View();
-      let root = VS.getRoot();
-      root.props.selected = true;
-      VS.setColumns(root, 3);
+      let container = VS.getDefaultContainer();
+      container.props.selected = true;
+      let mainContent = new ViewNode(Math.random(), 'BaseContainer', {width: 375, height: 667});
+      VS.setContent(mainContent, container);
+
       this.CoreSystem.addPage(routeName,VS);
       this.forceUpdate()
   }

+ 1 - 1
yalc.lock

@@ -2,7 +2,7 @@
   "version": "v1",
   "packages": {
     "trapilib": {
-      "signature": "205e017a17fa91cccd8773804addb910",
+      "signature": "5ec863012392830153d1a7738615dda5",
       "file": true,
       "replaced": "http://git.onarbooks.com/Klapi/TrapiLib.git"
     }

+ 12 - 1
yarn.lock

@@ -5716,9 +5716,20 @@ [email protected]:
   resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.0.tgz#7e1be3470f1e77948bc43d94a3c8f4d7752ba553"
   integrity sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==
 
+"trapilib@file:.yalc/trapilib":
+  version "1.1.1-5ec86301"
+  dependencies:
+    expo "^34.0.0-experiment.8"
+    prop-types "^15.7.2"
+    react "16.8.3"
+    react-dom "^16.8.6"
+    react-native "https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz"
+    react-native-elements "^1.1.0"
+    react-native-web "^0.11.5"
+
 "trapilib@http://git.onarbooks.com/Klapi/TrapiLib.git":
   version "1.1.1"
-  resolved "http://git.onarbooks.com/Klapi/TrapiLib.git#f2fb44bb7ba4f8dbe61b966ebda4b867c63f02f7"
+  resolved "http://git.onarbooks.com/Klapi/TrapiLib.git#a012a25c1abddc0ef82bcb9743d283943cc6d414"
   dependencies:
     expo "^34.0.0-experiment.8"
     prop-types "^15.7.2"