2025-07-31 03:11 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0005841Spring engineGeneralpublic2018-02-08 18:00
ReporterGoogle_Frog 
Assigned ToKloot 
PrioritylowSeverityfeatureReproducibilityN/A
StatusresolvedResolutionfixed 
Product Version104.0 +git 
Target VersionFixed in Version 
Summary0005841: Set the colour of area selection for custom commands
DescriptionAs far as I can tell there is currently no way to set the area colour for custom commands. The areas always draw with a semitransparent grey. I am able to change everything else about a command (cursor, queue drawing colour), see here for an example: https://github.com/ZeroK-RTS/Zero-K/commit/6947a99cc81923c3e9d3c83f9223a871412e98d0#diff-836b8904ef2c837fc0536a895bd49ad1R19
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0018651

sprung (reporter)

https://github.com/spring/spring/blob/ca5552ca61340e49d6b1bdda505c8b62f300e38d/rts/Game/UI/GuiHandler.cpp#L3537-L3552

~0018686

Kloot (developer)

Fix a42f68db896c88cde8183b6e9a60288cb5443998 committed to develop branch: fix 0005841, repo: spring changeset id: 9358

~0018786

Google_Frog (reporter)

I don't think this is complete. As far as I can tell the change (https://github.com/spring/spring/commit/a42f68db896c88cde8183b6e9a60288cb5443998) made it possible to modify the grey colour that is used for all custom command areas. What I wanted was to be able to set the colour for each custom command. I have a custom command with a yellow cursor and stippled line so I want to make the area yellow. I have another custom command with blue cursor and line so I want to make its area blue.

~0018787

Kloot (developer)

Last edited: 2018-02-08 10:32

View 2 revisions

I don't think you read the commit comments.

~0018789

Google_Frog (reporter)

I see that customArea colour can be changed. How do I make multiple different custom colours for area commands?

~0018790

Kloot (developer)

Spring.SetCustomCommandDrawData

~0018791

Google_Frog (reporter)

Are you saying that I should call Spring.LoadCmdColorsConfig between each application of Spring.SetCustomCommandDrawData? I already use Spring.SetCustomCommandDrawData and it appears to have no effect on custom areas.

~0018792

Kloot (developer)

That might be a bug in area-command drawing then, I'll check the code again later.

~0018793

Kloot (developer)

Fix e10e7d86aee0b399e90472a9f5463c698fa9fd78 committed to develop branch: fix 0005841 add., repo: spring changeset id: 9554
+Notes

-Issue History
Date Modified Username Field Change
2017-11-20 07:23 Google_Frog New Issue
2017-11-21 13:36 sprung Note Added: 0018651
2017-12-09 23:39 Kloot Changeset attached => spring develop a42f68db
2017-12-09 23:39 Kloot Note Added: 0018686
2017-12-09 23:39 Kloot Assigned To => Kloot
2017-12-09 23:39 Kloot Status new => resolved
2017-12-09 23:39 Kloot Resolution open => fixed
2018-02-08 06:55 Google_Frog Status resolved => feedback
2018-02-08 06:55 Google_Frog Resolution fixed => reopened
2018-02-08 06:55 Google_Frog Note Added: 0018786
2018-02-08 10:28 Kloot Note Added: 0018787
2018-02-08 10:32 Kloot Note Edited: 0018787 View Revisions
2018-02-08 11:15 Google_Frog Note Added: 0018789
2018-02-08 11:15 Google_Frog Status feedback => assigned
2018-02-08 11:42 Kloot Note Added: 0018790
2018-02-08 11:45 Google_Frog Note Added: 0018791
2018-02-08 12:23 Kloot Note Added: 0018792
2018-02-08 18:00 Kloot Changeset attached => spring develop e10e7d86
2018-02-08 18:00 Kloot Note Added: 0018793
2018-02-08 18:00 Kloot Status assigned => resolved
2018-02-08 18:00 Kloot Resolution reopened => fixed
+Issue History