LackeyCCG

LackeyCCG Forum => Plugins & Plugin Creation Forum => Topic started by: Jynks on March 27, 2013, 05:52:01 AM

Title: Can you set default UI colour setup?
Post by: Jynks on March 27, 2013, 05:52:01 AM
Can a plugin author set a colour setup for the plugin to use by default? So when the plugin is installed it also installs a preset file and loads it?
Title: Re: Can you set default UI colour setup?
Post by: Trevor on March 27, 2013, 04:09:51 PM
What you can do is include a pluginpreferences.txt with your updatelist.txt, but it is VERY important that you make the check sum -1 (or was it 0? I forget off hand). Setting the check sum to that assures that the file will never be downloaded it there is any file locally with that name. Without this check sum fix, you would be overwriting a person's plugin preferences every time they updated. But if they don't have any pluginpreferences, as would be the case with a new plugin install, this should give them some initial settings.
Title: Re: Can you set default UI colour setup?
Post by: Jynks on March 27, 2013, 04:32:03 PM
interesting.. thanks i will try it!!
Title: Re: Can you set default UI colour setup?
Post by: Jynks on April 14, 2013, 06:54:28 PM
Quote from: Trevor on March 27, 2013, 04:09:51 PM
What you can do is include a pluginpreferences.txt with your updatelist.txt, but it is VERY important that you make the check sum -1 (or was it 0? I forget off hand). Setting the check sum to that assures that the file will never be downloaded it there is any file locally with that name. Without this check sum fix, you would be overwriting a person's plugin preferences every time they updated. But if they don't have any pluginpreferences, as would be the case with a new plugin install, this should give them some initial settings.

Can you confirm this please with exactly how to do it. I have tried -1 and 0 and it seams to update everytime... imo.. allowing plugin makers to set a default colours woudl be awesome as we can make the entire ui match ther graphical content.
Title: Re: Can you set default UI colour setup?
Post by: Trevor on April 14, 2013, 07:50:38 PM
Quote from: Tragic on April 14, 2013, 06:54:28 PM
Quote from: Trevor on March 27, 2013, 04:09:51 PM
What you can do is include a pluginpreferences.txt with your updatelist.txt, but it is VERY important that you make the check sum -1 (or was it 0? I forget off hand). Setting the check sum to that assures that the file will never be downloaded it there is any file locally with that name. Without this check sum fix, you would be overwriting a person's plugin preferences every time they updated. But if they don't have any pluginpreferences, as would be the case with a new plugin install, this should give them some initial settings.

Can you confirm this please with exactly how to do it. I have tried -1 and 0 and it seams to update everytime... imo.. allowing plugin makers to set a default colours woudl be awesome as we can make the entire ui match ther graphical content.
Oh, sorry about that. It looks like I had this disabled. It will be working in the new version which I will post tomorrow.
And it's 0.