Colorset Editor V1.6 [IMGS]

Author Topic: Colorset Editor V1.6 [IMGS]  (Read 26432 times)

COLORSET EDITOR




What can I do with this?
Create new colorsets & edit existing ones easily
Preview colorset changes on your builds in single player
Steal "private" colorsets from servers with category names intact
Package colorsets in a folder that only needs to be zipped for release


Tutorial
Opening The Editor

The mod adds a button to the colorset tab in the start-a-game GUI:



Just click it! Alternatively, there is also a keybind to set so you can open it in servers.
The editor pops up! If you think the window is too small, just re-size it.



Creating A New Colorset

In the Toolbox, hit "Create Set":



Woot! You created a new set with one division with one color:





Editing The Colorset

This is going to be a bit more extensive. Let's get the basics first:
The color with the dark frame around it is the currently selected color.
That means that you can edit this color on the right side of the window.
To select another color, just click on it. To deselect the color, click on the selected color.
To add a new division, hit the + that is on it's own.
To add a new color to a division, hit the + at the bottom of that division.



To edit the selected color, play with the sliders and number fields on the right side.
That will update the preview. If you are happy with the color, click "Apply".
You can also copy and paste the values from the color sliders.
After hitting "Copy" for the first time, "Paste" will become available.



After hitting "Apply", the color will be copied on the slot in the set:



Now if we just play around, we might end up with something like this:



Now, I think it would be good to have an orange below the red! Let's insert a color.
To do this, we select the red and hit "Insert Color" in the Toolbox. We end up with this:



Now we can just set that new color to orange. Wouldn't it be good to have the same colors transparent?
To do this, we select the red and hit "Copy Div Down" in the Toolbox.
"Copy Div Down" copies the selected color and all colors below it.
"Copy Div Up" copies the selected color and all colors above it.
"Copy Color" copies the selected color only.
Now, you might notice that the scroll bar for the Toolbox has gotten a little smaller.
This is because, we now have two more buttons!
"Paste Into Current Div" will paste the copied colors into the current div, right between the selected color and the others.
"Paste As New Div" will paste the copied colors as a new division behind the selected color.
Since we want a second division, we hit "Paste As New Div":



Now we can just make each of the new colors transparent:



Looks fine for a first colorset! We should do one more thing though:
Name those divisions. Select a color in the div and hit "Set Div Name":



If we just change that "New Division" to something like "Neon Colors" and hit "Apply", the division has a name!
We do this for the second division too.
To get rid of an unwanted color just select it and hit "Delete Color". I does magic.
If you delete the last color in a division, the division is gone.
You can also delete the whole division by hitting "Delete Div".
Now it's time to save the set! First, deselect the color (by clicking the selected color).
Then, notice the Toolbox has changed. Click that "Save Set" button.



Enter a file name and some other information (for description.txt) and hit "Save".
The colorset has now been saved together with a description.txt.
You only need to zip it up if you want to release it :D.
Now just close the editor and notice the colorset is already available for your server:




Importing A Colorset
To load a colorset from a file, just click "Load Set" in the empty editor.
Then select a file and hit "Load":




Stealing A Colorset
To steal a colorset from a server, just click "Steal Set" in the empty editor.


Changing The Colorset In Single Player
You have to be running Single Player for this.
To change the colorset in the Single Player, bring up the editor (with the keybind).
Then, load a set (if you want a new) or "steal" the servers set if you want to edit it.
Then, deselect the color and hit "Show In Single Player".
Before loading the set, it must clear all bricks. So save first. (Don't worry, it asks you).
Then, (if the new set has more colors than the old one), it will (ask first then) create the missing datablocks.
Then it will load the set into your Single Player.
You can start building with the new colors right away!
NOTE: If you load a colorset with less colors than the one before, you will notice artifacts when loading bricks.


New in 1.6: Edit the color as hex value
To edit the hex value of a color, simply select the color and hit "Hex”:




Credits
Zeblote – Gui, script
Ephialtes – RTB gui profiles
Port – A little help
Mustang – Testing


GIVE ME THIS RIGHT NOW
« Last Edit: June 25, 2015, 01:15:28 PM by Zeblote »

Woo hoo! This is sweet :D

Looks amazing dude, great job.

Sweet, ready to try it!

Haha, this looks great! Good job on this.

Does it prevent you from having more than 64 colours?

Also, HSV sliders would be nice. Pixel artists would especially appreciate this.
« Last Edit: May 11, 2013, 12:30:44 PM by otto-san »


Does it prevent you from having more than 64 colours?
Yes

Looks amazing..
you made a better color set stealer :C


im sry :c
I looked at the code for the stealer,
It looks pretty much like a slightly modified version of mine..?
Did you use it as a base?

Compare/Contrast, Me, Zeb
   %lC=0;%CC=0;
   %currentColor = 0;

   for(%i=0;%i<$Paint_NumPaintRows-1;%i++)
   for(%i = 0; %i < $Paint_NumPaintRows - 1; %i++)

      %c=getSprayCanDivisionSlot(%i);
      %count = getSprayCanDivisionSlot(%i) + 1;

      %n=getSprayCanDivisionName(%i);
      %set.divname[%i] = getSprayCanDivisionName(%i);

      %lC=%c-%lC;
      %set.colorsindiv[%i] = %count - %currentcolor;

      for(%j=%CC;%j<=%c;%j++)
      for(%j = %currentColor; %j <= %count; %j++)

         %p=getColorIDTable(%j);
         %line = getColorIDTable(%j);
« Last Edit: May 11, 2013, 12:45:22 PM by MARBLE MAN »

I looked at the code for the stealer,
It looks pretty much like a slightly modified version of mine..?
Did you use it as a base?
Of course it looks like yours, because that is the best way for getting the colorset?

Of course it looks like yours, because that is the best way for getting the colorset?
:'') does that mean I made and released the first, best, colorset stealer?

edit-Released
« Last Edit: May 11, 2013, 12:53:58 PM by MARBLE MAN »