Plugin Ideas: India Hits

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
aeeaaqw4
Small-town resident
Reactions:
Posts: 31
Joined: 28 Aug 2022, 02:38

Re: Plugin Ideas: India Hits

#41

Post by aeeaaqw4 »

Yes and for the moment this will be my last message because I will be busy with some things

User avatar
aeeaaqw4
Small-town resident
Reactions:
Posts: 31
Joined: 28 Aug 2022, 02:38

Re: Plugin Ideas: India Hits

#42

Post by aeeaaqw4 »

As you want, a pleasure to be in this talk

User avatar
aeeaaqw4
Small-town resident
Reactions:
Posts: 31
Joined: 28 Aug 2022, 02:38

Re: Plugin Ideas: India Hits

#43

Post by aeeaaqw4 »

.

User avatar
aeeaaqw4
Small-town resident
Reactions:
Posts: 31
Joined: 28 Aug 2022, 02:38

Re: Plugin Ideas: India Hits

#44

Post by aeeaaqw4 »

.

User avatar
aeeaaqw4
Small-town resident
Reactions:
Posts: 31
Joined: 28 Aug 2022, 02:38

Re: Plugin Ideas: India Hits

#45

Post by aeeaaqw4 »

Yes well this will be my last message because I will be busy this month thanks for this chat

User avatar
Blueberri
Inhabitant of a Megalopolis
Reactions:
Posts: 704
Joined: 01 Apr 2023, 22:49
Location: My home❤️
Plugins: Showcase Store

Platform

Re: Plugin Ideas: India Hits

#46

Post by Blueberri »

I'd make the plugins but I'm too lazy and Infact I do not know how to make json and like that

User avatar
Best4444
Villager
Reactions:
Posts: 15
Joined: 30 Apr 2023, 17:34

Re: Plugin Ideas: India Hits

#47

Post by Best4444 »

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```

User avatar
Best4444
Villager
Reactions:
Posts: 15
Joined: 30 Apr 2023, 17:34

Re: Plugin Ideas: India Hits

#48

Post by Best4444 »

You can use my plugin I don't mind you can publish it I don't mind asweal

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”