Commit 927c9ea2 authored by wildfirecode13's avatar wildfirecode13

1

parent 0f46fce0
......@@ -21,7 +21,7 @@ const widgetConfig = {
}
function App() {
const [widgetVisible, setWidgetVisible] = useState(true);
const [widgetVisible] = useState(true);
const widgetRef = useRef();
function onReady(widget) {
......
......@@ -4,20 +4,11 @@ import Root from './Root';
class GameStage extends WidgetBase {
onLaunched() {
let label = new TextField();
label.text = 'Hello CanvasWidget!';
label.fillColor = '#000';
label.size = 40;
this.addChild(label);
// let img = new Sprite();
// img.x = 200;
// img.y = 300;
// img.texture = TextureCache['image'];
// img.anchorTexture.set(0.5, 0.5);
// this.addChild(img);
// Tween.get(img, { loop: true })
// .to({ rotation: 360 }, 30000);
// let label = new TextField();
// label.text = 'Hello CanvasWidget!';
// label.fillColor = '#000';
// label.size = 40;
// this.addChild(label);
this.addChild(new 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