1 Star 0 Fork 0

CovScript 智锐编程语言/picasso-ui

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
picasso_widget.ecs 889 Bytes
一键复制 编辑 原始数据 按行查看 历史
李登淳 提交于 2021-05-18 21:45 +08:00 . update windows
package picasso_widget
import picasso_base as base
import imgui
class text extends base.window_view
var text = new string
function construct(txt : string)
text = txt
end
function on_draw() override
imgui.text(text)
end
end
class button extends base.window_view
var text = new string
var on_click = new base.event
function construct(txt : string)
text = txt
end
function on_draw() override
if imgui.button(text + "##" + this.id)
on_click.activate(this)
end
end
end
class input extends base.window_view
var text = new string
var hint = new string
function construct(txt : string, hnt : string)
text = txt
hint = hnt
end
function render() override
this.on_render.activate(text)
imgui.input_text(hint + "##" + this.id, text, 512)
end
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/covscript/picasso-ui.git
git@gitee.com:covscript/picasso-ui.git
covscript
picasso-ui
picasso-ui
master

搜索帮助