Lua for MA3 Custom UI Elements Pt 3 - A Streamlined Method

Опубликовано: 25 Май 2026
на канале: From Dark To Light
982
23

This is the final video in my series on coding your own custom UI elements, or pop-ups for the user interface, in GrandMA3 using Lua. At this point, I'm assuming you know how to build a custom UI element, so I'm going to show you how to make a streamlined function to make your custom UI element easily reusable in different ways! It will function (pun intended) similarly to MessageBox(), where you put in information to customize it differently each time you use it. But now you've built it to do whatever YOU want, accept information however you've decided, and you can change it at will if you decide it should be different!

Check out the series playlist here -    • Building Custom UI Elements with Lua for G...  

I'm using GrandMA3 OnPC version 2.2.5.0 and Lua 5.1 in this video.
Here's the link to the folder with today's files on GitHub - https://github.com/DeeeLight/FromDark...

Join my Discord server for Lua for GrandMA3 users here -   / discord  
Find the transcript of this video here - https://fromdarktolighttutorials.blog...

"Your Word is a lamp to my feet and a light to my path." - Psalm 119: 105

Chapters:
0:00 Intro
1:13 Set the Function Up to be Called From Another
2:11 Title
3:13 DialogWidth
4:47 My Ambitious Plans for This Function
7:04 ActivateCheckbox()
11:05 ActivateSubtitle()
12:52 For Loop to Create Elements
14:02 Explaining the Loop
15:11 Setting Element Positions
16:37 Explaining this Loop
17:51 Setting Variables at the Beginning and Cleaning Up
20:16 Retrieving Data from the Dialog
21:19 Explaining the Code
22:35 Getting the States Outside CustomChecklist()
25:18 Testing the States (And How I Use the Function)
27:00 Error 1
28:10 Error 2
28:55 Error 3
30:23 Error 4
31:26 How The States Are Working
32:08 Outro



Summertime by LiQWYD   / liqwyd  
Creative Commons — Attribution 3.0 Unported — CC BY 3.0
Free Download / Summertime: https://www.audiolibrary.com.co/liqwy...
Music promoted by Audio Library    • Progressive, House, Chill No Copyright Mus...