This module is in on going rework
About
This is a simple dialogue module where you just insert texts(For buttons, names and the text) and actions for the buttons;
Examples
https://i.gyazo.com/f58abd359d219ea486860d1807839c85.mp4 - dialogue with buttons and name;
https://i.gyazo.com/fc13f7e5633e2c6a98bb494a4db22493.mp4 - dialogue button press with another dialogue;
https://i.gyazo.com/36c4aa03faa3e7e92c8d86243f64e539.mp4 - press button to close dialogue;
https://i.gyazo.com/ab4ae38fdee2a3083c608a295b60fda1.mp4 - dialogue without button.
Known bugs/glitchs/errors
- We can see in the videos above that some texts are overlapping others;
- Spamming trigger in the start of the dialogue may close and open it breaking buttons;
File
It contains the module(ChatGuiModule), a settings module, a example(ChatGuiScript) and a place holder gui.
You can also test it here: DialogueTest - Roblox
Features
- The gui can be totally customizable;(Sort of)
- Insert callback numbers to specify actions;
- Etc…
How to use
Before using the module you have to use the setup function:
module.Setup(script.Parent.MainChat,script.Parent.Button1,script.Parent.Button2,script.Parent.Button3,template,script.Parent.NPCName)
This will set objects to variables;
module.maketext("Hello!","Hi!","What?","Bye",1,1,0,"Cube") - maketext(DialogueText,Button1Text,Button2Text,Button3Text,Button1Action,Button2Action,Button3Action,NPCName)
This will start a dialogue, if you don’t put a name(make it nil) the name box will not appear, the numbers are callback;
module.maketextandclose("Hello noobs!",2,"Block") - maketextandclose(DialogueText,Seconds to close,NPCName)
This will start a dialogue but without buttons and will close after ??? seconds;
module.closetext()
When a dialogue is open use this function to close it;
module.closeandmaketext("Haha, thanks for coming!","No Problem!","Hehe","Bye",2,2,0,"Block") - closeandmaketext(DialogueText,Button1Text,Button2Text,Button3Text,Button1Action,Button2Action,Button3Action,NPCName)
When a dialogue is open use this function to erase the text and open another one;
There’s a settings module inside the main module where you can change some settings;
Coming soon: Custom text actions when appearing(easier to change) and after effects(like shaking text)
I hope you like it, feedback is always welcome,
. Thanks, agiotabm.