• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->
Resource icon

Lua - Starter Lua ImGUI Window (1 Viewer) 1.0

Joined
Dec 27, 2022
RedCents
4,643¢
Pronouns
He/Him
MrInfernal submitted a new resource:

Starter Lua ImGUI Window - Skeleton GUI window to speed up Lua creation

When I was creating my first Lua, I had a lot of trouble just creating the GUI window. After quite a bit of trial and error, I was able to cut it down to the minimum to run the window. Here is that skeleton for you to put your own window elements and functions in to. For those just starting out, there are some simple variables for a pair of checkboxes, some text, and even a button. I have commented the code, so hopefully you can remove what you don't need while understanding how to add/use...

Read more about this resource...
 
Yes, to the tutorial. Please.

I've done many macros in my former EQ life. And have a rudimentary understanding of Lua. Now that I'm diving back into the game, I've got a couple of Lua scripts I'd like to write up, and the GUI is frustrating me.
 
Yes, to the tutorial. Please.

I've done many macros in my former EQ life. And have a rudimentary understanding of Lua. Now that I'm diving back into the game, I've got a couple of Lua scripts I'd like to write up, and the GUI is frustrating me.
Getting started with Lua and imgui in MQ: http://docs.macroquest.org/lua/
vs code extension for mq definitions https://marketplace.visualstudio.com/items?itemName=ZenithCodeForge.mq-defs
vs code definitions source (instructions in mq-definitions README.md): https://github.com/macroquest/mq-definitions
ImGui demo code: https://github.com/macroquest/macroquest/tree/master/src/plugins/lua/lua/examples/imgui_demo Run it in EQ with: /Lua run examples/imgui_demo
MQ bindings for ImGui and Lua: https://github.com/macroquest/macroquest/tree/master/src/plugins/lua/bindings
A minimal ImGui window sample: https://github.com/aquietone/misclua/blob/main/uisample1.lua
Macro to Lua guide https://docs.macroquest.org/lua/macro-to-lua/
Programming in Lua (free online book covering the basics of Lua) http://www.lua.org/pil/contents.html

mq-defs vscode extension and the imgui demo (both the c++ version and the Lua version, both which are included in mq) are going to be your best resources.
 
Those are great resources and should be able to help you get your feet wet and get into development. My intention behind this was to create the shell of the GUI and to “hook” the functions to the window elements.
 
Lua - Starter Lua ImGUI Window

Users who are viewing this thread

Back
Top