Plugin Ideas: India Hits
Moderators: Scenario Moderators, Plugin Moderators
Re: Plugin Ideas: India Hits
Yes and for the moment this will be my last message because I will be busy with some things
Re: Plugin Ideas: India Hits
As you want, a pleasure to be in this talk
Re: Plugin Ideas: India Hits
Yes well this will be my last message because I will be busy this month thanks for this chat
- Minako-Kun
- Inhabitant of a Country
- Posts: 812
- Joined: 01 Apr 2023, 22:49
- Location: merica
- Plugins: Showcase Store
-
Platform
Re: Plugin Ideas: India Hits
I'd make the plugins but I'm too lazy and Infact I do not know how to make json and like that
Re: Plugin Ideas: India Hits
Code: Select all
(file name).json:
```json
[
{
"id":"$scriptingtest00",
"type":"script",
"script":"script.lua"
}
]```
or
```json
[
{
"id":"$scriptingtest00",
"type":"script",
"script":"#LuaWrapper",
"meta":{
"luawrapper":{
"script":"script.lua",
"dev":true //set this to true for real time lua editing
}
}
}
]```
script.lua:
```lua
function script:init()
Debug.toast('Hello World!')
end
function script:enterCity()
GUI.createRenameDialog {
title="Some title",
text="Some text, you can also verify JSON syntax here",
okText="OK",
onOk=function(value)
Debug.toast("You entered: "..value)
local tbl=Runtime.fromJson(value)
if tbl then
Debug.toast("Valid JSON")
else
Debug.toast("JSON syntax error")
end
end
}
end
local counter=0
function script:update()
Drawing.setColor(0,255,0)
Drawing.drawText('This is frame '..counter,30,26)
Drawing.setColor(255,255,255)
counter=counter+1
end```
Re: Plugin Ideas: India Hits
You can use my plugin I don't mind you can publish it I don't mind asweal