Commit 0f46fce0 authored by wildfirecode13's avatar wildfirecode13

11

parent f687bacd
......@@ -43,19 +43,19 @@ function App() {
console.log(`assets load complete`)
}
function onClickButton(type) {
switch (type) {
case 'setup':
setWidgetVisible(true);
break;
case 'unSetup':
setWidgetVisible(false);
break;
default:
widgetRef.current.emitEvent(type)
break;
}
}
// function onClickButton(type) {
// switch (type) {
// case 'setup':
// setWidgetVisible(true);
// break;
// case 'unSetup':
// setWidgetVisible(false);
// break;
// default:
// widgetRef.current.emitEvent(type)
// break;
// }
// }
return (
<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 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