Color, built in editor and calculator/run in script

It would help with a built in sprite editor, but there are more useful litle tweaks that would help a lot.

List of easy and small changes:

  1. Insted of having color like this: color2 whould it be more useful to have a vector4 like in script (Just for copy paste if you would like to use that color in script) You don’t need to make a seperate line like this: color3, just place it here at least: color5

  2. Make an built in calculator or more intresting, color4
    make a run script button for just one line and then print() the result. Nothing fancy, just so you don’t have to run everything to see if it works.

  3. Make a defult background button, so you can change the background easier, just using the game.project. color6

These things are just me nitpicking. :slight_smile:

1 Like

Web color style colors are very useful to designers. A toggle input thing would be helpful as an option with smart copy and paste.

1 Like

This can actually be done already, but it’s not as easy as you suggest, but almost! If you look at the default render script you see in init() that it does:

self.clear_color = vmath.vector4(0, 0, 0, 0)
self.clear_color.x = sys.get_config("render.clear_color_red", 0)
self.clear_color.y = sys.get_config("render.clear_color_green", 0)
self.clear_color.z = sys.get_config("render.clear_color_blue", 0)
self.clear_color.w = sys.get_config("render.clear_color_alpha", 0)

This means that you can open game.project in a text editor and add a section like this:

[render]
clear_color_red=1.0
clear_color_green=1.0
clear_color_blue=1.0
clear_color_alpha=1.0

Which will end up like this when you open game.project in the editor:

PS Please report suggestions like these using Help->Report Issue

4 Likes