Create mimgui-hello-world.lua
Browse files- mimgui-hello-world.lua +13 -0
mimgui-hello-world.lua
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
script_name 'mimgui hello world'
|
2 |
+
|
3 |
+
local imgui = require 'mimgui'
|
4 |
+
|
5 |
+
imgui.OnFrame(
|
6 |
+
function() -- condition
|
7 |
+
return isPlayerPlaying(PLAYER_HANDLE)
|
8 |
+
end,
|
9 |
+
function() -- render frame
|
10 |
+
imgui.Begin('mimgui')
|
11 |
+
imgui.Text('Hello, World!')
|
12 |
+
imgui.End()
|
13 |
+
end)
|