Commit 0f46fce0 authored by wildfirecode13's avatar wildfirecode13

11

parent f687bacd
...@@ -43,19 +43,19 @@ function App() { ...@@ -43,19 +43,19 @@ function App() {
console.log(`assets load complete`) console.log(`assets load complete`)
} }
function onClickButton(type) { // function onClickButton(type) {
switch (type) { // switch (type) {
case 'setup': // case 'setup':
setWidgetVisible(true); // setWidgetVisible(true);
break; // break;
case 'unSetup': // case 'unSetup':
setWidgetVisible(false); // setWidgetVisible(false);
break; // break;
default: // default:
widgetRef.current.emitEvent(type) // widgetRef.current.emitEvent(type)
break; // break;
} // }
} // }
return ( return (
<div className="App"> <div className="App">
......
import { Event, MouseEvent, Sprite, TextField, TextureCache, Tween, WidgetBase } from 'spark-wrapper-fyge'; import { TextField, WidgetBase } from 'spark-wrapper-fyge';
import metaConfig from '../meta.json'; import metaConfig from '../meta.json';
import Root from './Root'; import Root from './Root';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment