What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How do I make a GUI or UI for a plugin

Giwin

Well-Known Member
Joined
Dec 3, 2011
Messages
3,431
Reaction score
48
Hello!

I'm sure this has already been covered but the search function doesn't work if it's 3 letters or less (too many matches it says).

Any links to guides would be great or bone only code (just the code needed to make a GUI in any plugin, like a pulse function).

Thank you!
 
add a form to your visual studio project.
Code:
        private Form _configForm;
        public override void OnButtonPress()
        {
            if (_configForm == null || _configForm.IsDisposed || _configForm.Disposing)
                _configForm = new AmpConfig();

            _configForm.ShowDialog();
        }

add that code to your plugin, change AmpConfig() to what you named your forms.
 
Gotten to where its all fine and no erorrs, but when I click on the Settings button... the GUI that I made doesn't load.

Keep in mind that it's just a button that does nothing, so very simple to change and not sure why its not working since I'm not getting any errors :(
 

Attachments

Last edited:
Thanks for the code, I will take my time and learn what you've wrote so I can then try and replicate it from scratch which means I fully understand it.

I usually create using ConsoleApplication Project instead of ClassLibrary as described in your tutorial.
 
Back
Top