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

GUI checkboxes doesnt work :/

Shaddar

Active Member
Joined
Mar 23, 2011
Messages
719
Reaction score
56
So, I've made my first GUI now. I've gone through it, dobble and tripple checked about everything. It simply doesnt work.
The GUI frame shows like its supposed to, but the problem is the checkboxes. It doesnt matter if i check or uncheck any of the checkboxes, the CC will still cast the spells i configure the GUI not to cast!

I'm not the best at explaining things! So hopefully someone can make some sense out of it.

If anyone happens to have a warlock, you can test it out and see for yourself.


Heres the files
 

Attachments

Send the template to me and i'll fix the "flaws" with information about what i changed :)
Just add it to the dropbox

Files - Export Template - Item Template -> Save to dropbox folder and i'll go it through
 
Last edited:
Are you saving every time? If I read this right...Since you are calling WarlockSettings.Instance.Load() everytime the GUI launches, it will reload you settings from config file each time.

-So if you have a change state of a checkbox, the setting will change.
-If you close your GUI, setting still good.
-Open GUI again, you create a new instace of GUI and settings reloaded form settings file.

This means if you do not save each time you change something, opening the GUI again just reloads from the file.

Also, I am not a fan of having a method for each checkbox changing. If you are not a fan of the propertyGrid (which is totally easy and awesome) and really want to do checkboxes, here is an an example from my hunter GUI.

Form1.cs
 
keep in mind because of the way customclasses are loaded into the bot, changes made wont take effect immediately, most of the time your going to have to reload honorbuddy to see the changes take effect.
 
Back
Top