Kromster80 / kam_remake

"KaM Remake" is an RTS game remake written in Delphi from scratch.
http://www.kamremake.com
GNU Affero General Public License v3.0
361 stars 90 forks source link

Add eyedropper tool for color to map editor color panel #233

Open Alexandr57 opened 7 years ago

Alexandr57 commented 7 years ago

Hello. I would like to propose the idea of ​​a remake by color in the editor. Here is a sample view of my ideas: krckrc2

Add 1 fields and 1 button 1 box - to display the player's color and color code in the BGR format, which is used to display text in libx, as well as dynamic scripts (* .script). Button - to select the color (ie, the user enters the color as they wish) Why is it necessary to: In some missions you want to set the text color of the player in libx file. It is not so easy now to get player color (in BGR format). To do this you need determine pixel color of screenshot by some third-party programs (f.e. with eyedropper tool).

Kromster80 commented 7 years ago

Text field with a color code (BGR) sounds like a good idea. Color-picker is not needed IMO.

lewinjh commented 7 years ago

I agree with Krom. Typing a colour code is not convenient.

I wouldn't be against a more advanced colour picker in the editor so it's possible to pick any colour, e.g. with a hue slider and 2D saturation/brightness table: http://www.colorpicker.com/

Alexandr57 commented 7 years ago

@lewinjh Well, I had in mind to choose a new color through with the necessary tools an additional window. And there I deduced because it is not the color gain and output color code

Alexandr57 commented 7 years ago

@Kromster80 , @lewinjh : https://github.com/Kromster80/kam_remake/pull/337 Then you can add a button to select a random color if you do not mind, and who have time. I myself can not write arbitrary color selection dialog box. Just I do not know how it should look like yes and no suitable components in kam remake. So is this a bummer but you can add as an option in the plans for the future