Write UI for apps with GlyEngine + TSX.
Gly Engine supports building applications using JSX for interfaces, but with a few differences: you cannot insert raw text directly into the DOM tree, but you can easily include nodes written in Lua or Typescript.
import { GlyStd } from '@gamely/gly-types'
export const meta = {
title:
'Your Awesome Game',
author: 'IntellectualAuthor',
version: '1.0.0',
description: 'The best game in the world made in GlyEngine'
}
function Foo(props: {bar:string}, std: GlyStd) {
console.log(props.bar)
return <node/>
}
function load(std: GlyStd, props: any) {
const Bar = <node
load={() => console.log(
'Y')}/>;
const Baz = {
load: () => {console.log(
'W')}};
<grid class="2x2">
<Foo bar="z"/>
<node />
{Bar}
{Baz}
</grid>
}
}
local function title(window_name)
@decorator
local function callbacks(handler)