Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Referencing behave-graph directly, instead of having a copy of the lib
spinning suzanne is the default updated readme fix some readme added unregister (#1) Smart contract actions separate from click handler (#2) * wip on gate node * fix a type * wip on token gating * created mock smart contract actions for this * can now commit and load smart contract actions successfully * made the new thing main thing is now spinning suzanne. copied updated script; Support enabling animations, switch json paths to use indeces instead of names (#7) * nice click to animate demo * better dropdown options * use json paths for numbers * Can now toggle on/off animations * Animations work. Default demo clicks to start the elevator * enabled changed to playing for animation. better code around animations state * cant get thing to stop animating Update README.md fixed playing/paused Better modal - split view changes. (#8) * made the ui splittable * Can change view to be vertical or horizontal * allowing to upload model and set json. now its time for example pairs :) * added example pairs * have gltf properly now stored as one thing * wip on nav * added mint dialog, which saves to ipfs and then mints world with that token * worked on modal but cannot center using flowbite. will try tailwind ui * incorporate tailwind ui for modal. a lot cleaner now! * mint dialog now shows interacitve scene, with proper status * showing nice status when minting * nice styling of the modal. all thats left is the nav! * better modal. switch to hash router so works on ipfs fix title Simpler hooks (#9) * Refactored to use cleaner hooks with more separation. for some reason animation wont play * Fixed animations - by not creating glb twice. Using react-suspense to make sure values always exist * some cleanup - fix so that its all the same * Re-integrated smart contract actions * fixed smart contract actions
- Loading branch information
Showing
237 changed files
with
3,647 additions
and
10,741 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
130 changes: 130 additions & 0 deletions
130
editor/public/examples/graphs/ClickButtonToAnimate.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
{ | ||
"nodes": [ | ||
{ | ||
"id": "d71ccb9c-0fea-4ce9-bf92-a31485e9b5a6", | ||
"type": "scene/set/color", | ||
"metadata": { | ||
"positionX": "184.79620709295074", | ||
"positionY": "18.913444261875217" | ||
}, | ||
"parameters": { | ||
"jsonPath": { | ||
"value": "materials/2/color" | ||
}, | ||
"value": { | ||
"link": { | ||
"nodeId": "5394babc-dcc0-4735-9daf-465c73a66e80", | ||
"socket": "result" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "5394babc-dcc0-4735-9daf-465c73a66e80", | ||
"type": "math/toColor/rgb", | ||
"metadata": { | ||
"positionX": "-145.20682021207682", | ||
"positionY": "90.16020188760152" | ||
}, | ||
"parameters": { | ||
"g": { | ||
"value": ".9" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "267d676e-79d4-49e5-9be8-c7dd8b157f00", | ||
"type": "math/toColor/rgb", | ||
"metadata": { | ||
"positionX": "-140.0557507122972", | ||
"positionY": "344.03584956239894" | ||
}, | ||
"parameters": { | ||
"r": { | ||
"value": ".9" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "98da1b8b-b49e-489d-80ff-24ce601ac0c0", | ||
"type": "scene/set/color", | ||
"metadata": { | ||
"positionX": "181.70354627203167", | ||
"positionY": "272.5116315772409" | ||
}, | ||
"parameters": { | ||
"jsonPath": { | ||
"value": "materials/2/color" | ||
}, | ||
"value": { | ||
"link": { | ||
"nodeId": "267d676e-79d4-49e5-9be8-c7dd8b157f00", | ||
"socket": "result" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "d326d57f-198b-41e8-9d2b-182130f1398f", | ||
"type": "flow/flipFlop", | ||
"metadata": { | ||
"positionX": "-51.98681837156558", | ||
"positionY": "-342.24335289662594" | ||
}, | ||
"flows": { | ||
"on": { | ||
"nodeId": "d71ccb9c-0fea-4ce9-bf92-a31485e9b5a6", | ||
"socket": "flow" | ||
}, | ||
"off": { | ||
"nodeId": "98da1b8b-b49e-489d-80ff-24ce601ac0c0", | ||
"socket": "flow" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "85179702-7634-4cf5-95ca-5908224cd4f0", | ||
"type": "scene/nodeClick", | ||
"metadata": { | ||
"positionX": "-517.3783747475436", | ||
"positionY": "-184.38358132733035" | ||
}, | ||
"parameters": { | ||
"jsonPath": { | ||
"value": "nodes/2" | ||
} | ||
}, | ||
"flows": { | ||
"secondFlow": { | ||
"nodeId": "fcb81837-650c-42fb-a708-236f2ee64abc", | ||
"socket": "flow" | ||
}, | ||
"flow": { | ||
"nodeId": "d326d57f-198b-41e8-9d2b-182130f1398f", | ||
"socket": "flow" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "fcb81837-650c-42fb-a708-236f2ee64abc", | ||
"type": "scene/set/boolean", | ||
"metadata": { | ||
"positionX": "174.3147945277493", | ||
"positionY": "-187.0779606350799" | ||
}, | ||
"parameters": { | ||
"jsonPath": { | ||
"value": "animations/0/playing" | ||
}, | ||
"value": { | ||
"link": { | ||
"nodeId": "d326d57f-198b-41e8-9d2b-182130f1398f", | ||
"socket": "isOn" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"variables": [], | ||
"customEvents": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
{ | ||
"nodes": [ | ||
{ | ||
"id": "2330db08-a922-42f1-9baa-3ddf38bdca55", | ||
"type": "math/multiply/float", | ||
"metadata": { | ||
"positionX": "-36.065423480605936", | ||
"positionY": "-354.6990195987005" | ||
}, | ||
"parameters": { | ||
"b": { | ||
"link": { | ||
"nodeId": "0", | ||
"socket": "time" | ||
} | ||
}, | ||
"a": { | ||
"link": { | ||
"nodeId": "7a028a53-5c15-4cf7-9d9d-75f19f08f202", | ||
"socket": "result" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "d349d0b4-3853-49b4-bf74-5edfba7cc6d1", | ||
"type": "flow/flipFlop", | ||
"metadata": { | ||
"positionX": "-389.72422824919556", | ||
"positionY": "-435.368506902373" | ||
} | ||
}, | ||
{ | ||
"id": "7a028a53-5c15-4cf7-9d9d-75f19f08f202", | ||
"type": "math/toFloat/boolean", | ||
"metadata": { | ||
"positionX": "-223.69031360750262", | ||
"positionY": "-359.83827013089973" | ||
}, | ||
"parameters": { | ||
"a": { | ||
"link": { | ||
"nodeId": "d349d0b4-3853-49b4-bf74-5edfba7cc6d1", | ||
"socket": "isOn" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "2c26a8fc-6559-41ab-97b2-9b38a2589498", | ||
"type": "scene/nodeClick", | ||
"metadata": { | ||
"positionX": "-725.9446546123424", | ||
"positionY": "-440.6662343069766" | ||
}, | ||
"parameters": { | ||
"jsonPath": { | ||
"value": "nodes/Cube" | ||
} | ||
}, | ||
"flows": { | ||
"flow": { | ||
"nodeId": "d349d0b4-3853-49b4-bf74-5edfba7cc6d1", | ||
"socket": "flow" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "0", | ||
"type": "lifecycle/onTick", | ||
"metadata": { | ||
"positionX": "-416.9233515932794", | ||
"positionY": "-218.4686464000493" | ||
}, | ||
"flows": { | ||
"flow": { | ||
"nodeId": "4", | ||
"socket": "flow" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "1", | ||
"type": "math/multiply/float", | ||
"metadata": { | ||
"positionX": "121.24074658278633", | ||
"positionY": "-347.7720188803507" | ||
}, | ||
"parameters": { | ||
"b": { | ||
"value": 0.001 | ||
}, | ||
"a": { | ||
"link": { | ||
"nodeId": "2330db08-a922-42f1-9baa-3ddf38bdca55", | ||
"socket": "result" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "2", | ||
"type": "math/toEuler/float", | ||
"metadata": { | ||
"positionX": "307.8153855124417", | ||
"positionY": "-365.4309832136541" | ||
}, | ||
"parameters": { | ||
"x": { | ||
"value": 0 | ||
}, | ||
"z": { | ||
"value": 0 | ||
}, | ||
"y": { | ||
"link": { | ||
"nodeId": "1", | ||
"socket": "result" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "3", | ||
"type": "math/toQuat/euler", | ||
"metadata": { | ||
"positionX": "501.7558210030621", | ||
"positionY": "-308.12717932377245" | ||
}, | ||
"parameters": { | ||
"a": { | ||
"link": { | ||
"nodeId": "2", | ||
"socket": "result" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "4", | ||
"type": "scene/set/quat", | ||
"metadata": { | ||
"positionX": "720.4152964457542", | ||
"positionY": "-207.25923839921975" | ||
}, | ||
"parameters": { | ||
"jsonPath": { | ||
"value": "nodes/Suzanne/rotation" | ||
}, | ||
"value": { | ||
"link": { | ||
"nodeId": "3", | ||
"socket": "result" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"variables": [], | ||
"customEvents": [] | ||
} |
File renamed without changes.
Oops, something went wrong.