Page 1 of 3

[MOD 0.15+] Color Picker 0.4.4 - Reworked mod settings

Posted: Mon Aug 08, 2016 3:38 am
by Mooncat
Type: Library Mod
Name: Color Picker
Description: Adds a color picker GUI that can be used by other mods. But this mod itself doesn't do anything alone.
License: GNU LGPLv3
Version: 0.4.4
Release: 2017-08-10
Tested-With-Factorio-Version: 0.15.33
Category: Utility
Tags: color, color picker, library, player, locomotive, cargo wagon, fluid wagon, train stop
Download-Url: https://mods.factorio.com/mods/Mooncat/color-picker
Website: viewtopic.php?f=97&t=30657
License
Long description
Version history
Known issues

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Posted: Mon Aug 08, 2016 4:00 am
by Nexela
Digging into this now!

Typo: Along should be alone.

Code: Select all

This is a library mod which doesn't do anything along. 

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Posted: Mon Aug 08, 2016 4:08 am
by Mooncat
Nexela wrote:Digging into this now!

Typo: Along should be alone.

Code: Select all

This is a library mod which doesn't do anything along. 
Aw, a careless typo. xD Thanks!
Edit: I just posted the github link. ;)

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Posted: Wed Aug 17, 2016 5:51 pm
by Mooncat
Happy to announce that Nexela's Circuit Alerter has been released! Feel free to try his mods. ;)
Added link to the mod in description.

As for this mod, I will study on adding a hex color textfield under the RGB bars, so players can copy the hex color and paste on another color picker easily.

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Posted: Wed Aug 17, 2016 6:33 pm
by aubergine18
For working with hex colours, there's a useful util function "color()" in __core__/prototypes/style.lua -- it does a good job of parsing hex rgba colours in to factorio color objects.

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Posted: Thu Aug 18, 2016 1:38 am
by Mooncat
aubergine18 wrote:For working with hex colours, there's a useful util function "color()" in __core__/prototypes/style.lua -- it does a good job of parsing hex rgba colours in to factorio color objects.
Thanks for the info. ;)

Re: [Library MOD 0.14+] Color Picker 0.1.1

Posted: Wed Aug 31, 2016 7:25 am
by Mooncat
Released a small update for this mod:
- Updated for Factorio 0.14.
- Added get_color remote method, in contrast to the set_color method. ;)

Re: [Library MOD 0.14+] Color Picker 0.2.0 - Hex color!

Posted: Wed Sep 14, 2016 6:43 pm
by Mooncat
Version 0.2.0 is released!
Happy to announce that binbinhfr's Stick Notes has added support to this mod. If you have this mod installed, you can use the color picker to change font color on the notes. ;)
binbinhfr has also provided the French locale. Thanks a lot!

This version also introduces hexadecimal color representation. If you want to share the color across multiple color pickers, now you can copy the hex value and paste on the other color pickers. 8-)
For modders, the hex-color-related parameters and functions are also ready to use.

Re: [Library MOD 0.14+] Color Picker 0.2.1 - Hex color

Posted: Thu Sep 15, 2016 5:36 pm
by Mooncat
Released version 0.2.1, mainly for fixing bad UI alignment in different Factorio window sizes. ;)

Re: [Library MOD 0.14+] Color Picker 0.2.1 - Hex color

Posted: Sat Sep 17, 2016 4:32 pm
by aubergine18
Could progress bars be used to indicate colors - eg. a 20x20 px progress bar, with the color defined by percentage?

Re: [Library MOD 0.14+] Color Picker 0.2.1 - Hex color

Posted: Sat Sep 17, 2016 5:00 pm
by Mooncat
aubergine18 wrote:Could progress bars be used to indicate colors - eg. a 20x20 px progress bar, with the color defined by percentage?
But I believe progress bars cannot be dragged?

Re: [Library MOD 0.14+] Color Picker 0.2.1 - Hex color

Posted: Sat Sep 17, 2016 5:24 pm
by aubergine18
I was thinking more from a display perspective - possibly trying to overlap them to create a custom RGB display.

Re: [Library MOD 0.14+] Color Picker 0.2.1 - Hex color

Posted: Sat Sep 17, 2016 5:55 pm
by Mooncat
Progress bars under the existing discrete bars? Or you mean the result color?

Re: [Library MOD 0.14+] Color Picker 0.2.1 - Hex color

Posted: Sat Sep 17, 2016 6:37 pm
by aubergine18
Result color. The progress bar with smooth color gradient can be used to display specific color. Alternatively see if there's any filled square characters in the default font and that could be used instead via font color.

Re: [Library MOD 0.14+] Color Picker 0.2.1 - Hex color

Posted: Sat Sep 17, 2016 8:55 pm
by Mooncat
hm... I have never used progress bar, so I don't know what does smooth color gradient mean. :P
But I know the alternative will work. I have tried the unicode black square with default font, but it wasn't shown. Now I think the current version allows us to use custom font? If so, I will make a font with just a black square. :lol:

Re: [Library MOD 0.15+] Color Picker 0.3.0 - Factorio 0.15

Posted: Mon May 01, 2017 8:37 am
by Mooncat
Updated for Factorio 0.15.

Will work on the proper result color display, and also color presets!

Re: [Library MOD 0.15+] Color Picker 0.3.0 - Factorio 0.15

Posted: Mon May 01, 2017 12:21 pm
by Adventurer
Could you update your naming scheme so all your color related mods begin with the word 'Color' so they're grouped together?

Re: [Library MOD 0.15+] Color Picker 0.3.0 - Factorio 0.15

Posted: Mon May 01, 2017 1:22 pm
by Mooncat
Adventurer wrote:Could you update your naming scheme so all your color related mods begin with the word 'Color' so they're grouped together?
I can change the mod names (not IDs) to start with "Color Picker -". But I need some more time. Please bare with me. :)

Re: [Library MOD 0.15+] Color Picker 0.3.0 - Factorio 0.15

Posted: Mon May 01, 2017 3:38 pm
by Mooncat
Finished changing the mod names. They should be grouped nicely now.
Mod Grouping.png
Mod Grouping.png (33.2 KiB) Viewed 11664 times

Re: [Library MOD 0.15+] Color Picker 0.3.0 - Factorio 0.15

Posted: Wed May 10, 2017 7:28 am
by Philip017
looks interesting how about a version that works on lamps? :)