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

Topics and discussion about specific mods
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post 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
Last edited by Mooncat on Wed Aug 09, 2017 8:14 pm, edited 41 times in total.

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Post 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. 

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Post 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. ;)

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Post 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.

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Post 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.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Post 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. ;)

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: [Library MOD 0.14+] Color Picker 0.1.1

Post 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. ;)

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post 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.

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post by Mooncat »

Released version 0.2.1, mainly for fixing bad UI alignment in different Factorio window sizes. ;)

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

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

Post by aubergine18 »

Could progress bars be used to indicate colors - eg. a 20x20 px progress bar, with the color defined by percentage?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post 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?

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

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

Post by aubergine18 »

I was thinking more from a display perspective - possibly trying to overlap them to create a custom RGB display.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post by Mooncat »

Progress bars under the existing discrete bars? Or you mean the result color?

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

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

Post 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.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post 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:

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post by Mooncat »

Updated for Factorio 0.15.

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

Adventurer
Inserter
Inserter
Posts: 28
Joined: Wed May 25, 2016 12:11 pm
Contact:

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

Post by Adventurer »

Could you update your naming scheme so all your color related mods begin with the word 'Color' so they're grouped together?

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post 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. :)

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1190
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post by Mooncat »

Finished changing the mod names. They should be grouped nicely now.
Mod Grouping.png
Mod Grouping.png (33.2 KiB) Viewed 11671 times

User avatar
Philip017
Filter Inserter
Filter Inserter
Posts: 356
Joined: Thu Sep 01, 2016 11:21 pm
Contact:

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

Post by Philip017 »

looks interesting how about a version that works on lamps? :)

Post Reply

Return to “Mods”