-
-
Notifications
You must be signed in to change notification settings - Fork 988
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add wesnoth.colors #4797
add wesnoth.colors #4797
Conversation
@CelticMinstrel im also unsure won whether to make the function that gives a pango compatible string a poperty of a function |
0c1c950
to
12e572a
Compare
|
Hmm yes could do that, when i started writing it i wasn't sure what exactly i wanted to put in that lua_color class so i just started with a new class.
the doc says "High-contrast shade, intended for the minimap markers." i just coped the name rep from the c++ code name. so we could call it
I thought the name pango_string is more self explaining as it imples that its in the pango format, in particular that it contains the leading |
Yeah, calling it some variation of "map color" seems better than the cryptic As for the other, maybe |
Whoops, somehow accidentally closed it. By the way, is the pango hex string also the contrast colour? |
No, its the "mid" color. afaik that's also what other dialogs with side colors (mp create) use. |
My only other thought is wondering if we should avoid single-letter members (red, green, blue, alpha instead of r, g, b, a)… |
hmm no strong opinion on this one. |
see wesnoth#3706 the main usecase to be able to show messages and dialog labels in the color of a specific team.
* fix cb projecfile after https://github.com/wesnoth/wesnoth/pull/4797/files * Update tests.cbp * Update wesnoth.cbp
see #3706
the main usecase to be able to print messages and dialog labels in the color of a specific team.
Im still not 100% sure about the exact interface thougfh