[Module] Custom GUI -Unofficial

The Lua scripting language allows you to give your plugin more advanced features.

Moderators: Plugin Moderators, Scenario Moderators

User avatar
ian`
Supporter
Posts: 118
Joined: 04 Apr 2020, 17:36
Location: Indonesien
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

[Module] Custom GUI -Unofficial

#1

Post by ian` »

This is an unofficial GUI functions that i made for other plugin creators.

How To Use
Place the module in the same folder with the main script. This module can be called by using require function like this:

Code: Select all    Reset

local funName = require('moduleName.plugin/module/moduleName.lua') -- funName can be replaced with another name you want to use. moduleName can be replaced only by the file name you download from this post.
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Lua editor

Output: Select all

...
runText GUI
Show
This function can be used for a text that longer than the parent GUI.
running label.png
running label.png (18.99 KiB) Viewed 21063 times

Code: Select all    Reset

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Lua editor

Output: Select all

...
Download :
runText.plugin
(993 Bytes) Downloaded 1171 times
moveButton GUI
Show
This function can be used for create a movable button.
movable button.png
movable button.png (19.5 KiB) Viewed 21063 times

Code: Select all    Reset

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Lua editor

Output: Select all

...
Download :
moveButton.plugin
(1.02 KiB) Downloaded 1035 times
splitLabel GUI
Show
This function can be used for a long text that can be placed in listbox or anythings.
longtext.PNG
longtext.PNG (36.5 KiB) Viewed 20851 times

Code: Select all    Reset

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Lua editor

Output: Select all

...
Download :
splitLabel.plugin
(1019 Bytes) Downloaded 1359 times
 ! Message from: ian`
Don't use Lua Wrapper when you using the require function, because it will occur an error. You can use this function when you are done with other stuff on your script. If you upload your plugin and it contains this module, please set the minimum version to at least 1949.
Off Topic
This module is free to use. Give me a credit in your plugins is optional, but you can benefit from doing so.
Last edited by ian` on 01 Mar 2021, 13:42, edited 3 times in total.

User avatar
PixelDubs
TheoTown Veteran in Pension
Posts: 604
Joined: 02 Nov 2020, 20:14
Location: United Kingdom
Plugins: Showcase Store

Plugin Creator

Platform

Re: Custom GUI -Unofficial

#2

Post by PixelDubs »

Can you show me a picture before it starts using all my cache from lua?

User avatar
ian`
Supporter
Posts: 118
Joined: 04 Apr 2020, 17:36
Location: Indonesien
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Custom GUI -Unofficial

#3

Post by ian` »

LZS Gaming wrote:
30 Jan 2021, 13:52
Can you show me a picture before it starts using all my cache from lua?
sorry, what kind of picture? i don't understand. :bq

User avatar
PixelDubs
TheoTown Veteran in Pension
Posts: 604
Joined: 02 Nov 2020, 20:14
Location: United Kingdom
Plugins: Showcase Store

Plugin Creator

Platform

Re: Custom GUI -Unofficial

#4

Post by PixelDubs »

ian` wrote:
30 Jan 2021, 15:08
LZS Gaming wrote:
30 Jan 2021, 13:52
Can you show me a picture before it starts using all my cache from lua?
sorry, what kind of picture? i don't understand. :bq
A screenshot of the plugin.

User avatar
ian`
Supporter
Posts: 118
Joined: 04 Apr 2020, 17:36
Location: Indonesien
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Custom GUI -Unofficial

#5

Post by ian` »

LZS Gaming wrote:
30 Jan 2021, 15:32
A screenshot of the plugin.
there is sample code in rar file. You can try it.

anyway, this is not a complete plugin. this is just a module for plugin creators who want to add features like my plugins. (e.g. shortcut box or part of the animation dev. tool). and also i post this in tutorial and documentation, not in plugin showcase. :teach :plugin

User avatar
Hadestia
Inhabitant of a Megalopolis
Posts: 727
Joined: 17 Jul 2017, 16:16
Location: Philippines
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: Custom GUI -Unofficial

#6

Post by Hadestia »

I'm waiting for these Awesome job ! One more thing is there any "text" Parameters for that movable button?

User avatar
ian`
Supporter
Posts: 118
Joined: 04 Apr 2020, 17:36
Location: Indonesien
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Custom GUI -Unofficial

#7

Post by ian` »

rjroldan1 wrote:
30 Jan 2021, 20:25
I'm waiting for these Awesome job ! One more thing is there any "text" Parameters for that movable button?
i'm not going to include any text for the movable button because i anticipate if it's too wide, it will block the screen. :calc

User avatar
ian`
Supporter
Posts: 118
Joined: 04 Apr 2020, 17:36
Location: Indonesien
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Module] Custom GUI -Unofficial

#8

Post by ian` »

update : splitLabel. :bc:

User avatar
Hadestia
Inhabitant of a Megalopolis
Posts: 727
Joined: 17 Jul 2017, 16:16
Location: Philippines
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: [Module] Custom GUI -Unofficial

#9

Post by Hadestia »

Splitlabel require throws me an exceptions

Post Reply Previous topicNext topic

Return to “Lua Scripting”