[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: 1173
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post by Mooncat » Mon Aug 08, 2016 3:38 am

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.
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Post by Nexela » Mon Aug 08, 2016 4:00 am

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: 1173
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Post by Mooncat » Mon Aug 08, 2016 4:08 am

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. ;)
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Post by Mooncat » Wed Aug 17, 2016 5:51 pm

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.
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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 » Wed Aug 17, 2016 6:33 pm

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: 1173
Joined: Wed May 18, 2016 4:55 pm
Contact:

Re: [Library MOD 0.13.13+] Color Picker 0.1.0

Post by Mooncat » Thu Aug 18, 2016 1:38 am

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. ;)
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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

Re: [Library MOD 0.14+] Color Picker 0.1.1

Post by Mooncat » Wed Aug 31, 2016 7:25 am

Released a small update for this mod:
- Updated for Factorio 0.14.
- Added get_color remote method, in contrast to the set_color method. ;)
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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

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

Post by Mooncat » Wed Sep 14, 2016 6:43 pm

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.
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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

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

Post by Mooncat » Thu Sep 15, 2016 5:36 pm

Released version 0.2.1, mainly for fixing bad UI alignment in different Factorio window sizes. ;)
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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 » Sat Sep 17, 2016 4:32 pm

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: 1173
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post by Mooncat » Sat Sep 17, 2016 5:00 pm

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?
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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 » Sat Sep 17, 2016 5:24 pm

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: 1173
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post by Mooncat » Sat Sep 17, 2016 5:55 pm

Progress bars under the existing discrete bars? Or you mean the result color?
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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 » Sat Sep 17, 2016 6:37 pm

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: 1173
Joined: Wed May 18, 2016 4:55 pm
Contact:

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

Post by Mooncat » Sat Sep 17, 2016 8:55 pm

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:
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1173
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 » Mon May 01, 2017 8:37 am

Updated for Factorio 0.15.

Will work on the proper result color display, and also color presets!
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

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 » Mon May 01, 2017 12:21 pm

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: 1173
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 » Mon May 01, 2017 1:22 pm

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. :)
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1173
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 » Mon May 01, 2017 3:38 pm

Finished changing the mod names. They should be grouped nicely now.
Mod Grouping.png
Mod Grouping.png (33.2 KiB) Viewed 6636 times
My mods (Deprecated, maybe temporary... idk. Currently time/mood to continue):

User avatar
Philip017
Filter Inserter
Filter Inserter
Posts: 298
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 » Wed May 10, 2017 7:28 am

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

Post Reply

Return to “Mods”

Who is online

Users browsing this forum: jimmy_1283