|
@@ -122,12 +122,12 @@ export default class Gui extends BaseSystem {
|
|
|
let targetNode = this.CoreSystem.ray({event});
|
|
|
// targetNode.content
|
|
|
targetNode.props.selected = true;
|
|
|
- console.log(targetNode, data);
|
|
|
+
|
|
|
let node = new ViewNode(Math.random(), data.ctor, {}, data.namespace);
|
|
|
let containerNode = new Node(Math.random(), {}, node);
|
|
|
let View = this.CoreSystem.getCurrentView();
|
|
|
View.addViewNode(containerNode, targetNode);
|
|
|
- console.log(node);
|
|
|
+
|
|
|
|
|
|
this.forceUpdate();
|
|
|
}
|
|
@@ -195,13 +195,17 @@ export default class Gui extends BaseSystem {
|
|
|
|
|
|
return (
|
|
|
<View style={PageButtons.container}>
|
|
|
- <Button
|
|
|
- color="#F1F1F1"
|
|
|
- title={<Icon name='filter'
|
|
|
- color="#36BBAD"
|
|
|
- />
|
|
|
- }
|
|
|
- />
|
|
|
+ <View style={{borderRightWidth:"1px",
|
|
|
+ borderColor:"#B4b4b4",background:'white'}}>
|
|
|
+ <Button
|
|
|
+
|
|
|
+ color="white"
|
|
|
+ title={<Icon containerStyle={{paddingLeft:14,paddingRight:14,paddingTop:2,paddingBottom:2}} name='filter'
|
|
|
+ color="#36BBAD"
|
|
|
+ />
|
|
|
+ }
|
|
|
+ />
|
|
|
+ </View>
|
|
|
{pages}
|
|
|
|
|
|
<View style={PageButtons.addNew} onClick = {() => this.addFrame()}>
|
|
@@ -224,9 +228,8 @@ export default class Gui extends BaseSystem {
|
|
|
const PageButtons = StyleSheet.create({
|
|
|
container:{
|
|
|
flex:1,
|
|
|
- paddingLeft:15,
|
|
|
flexDirection:'row',
|
|
|
-
|
|
|
+ width:40,
|
|
|
},
|
|
|
activePage:{
|
|
|
backgroundColor:"#36BBAD",
|
|
@@ -249,7 +252,7 @@ const PageButtons = StyleSheet.create({
|
|
|
textAlign:"center",
|
|
|
overflow:'hidden',
|
|
|
width:160,
|
|
|
- height:49,
|
|
|
+ height:48,
|
|
|
},
|
|
|
addNew:{
|
|
|
|
|
@@ -257,7 +260,7 @@ const PageButtons = StyleSheet.create({
|
|
|
backgroundColor:"#D6D6D6",
|
|
|
cursor:'pointer',
|
|
|
width:160,
|
|
|
- height:49,
|
|
|
+ height:48,
|
|
|
},
|
|
|
|
|
|
addNewContainer:{
|