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