ddnet/src/rust-bridge
Robert Müller aa5a24abc4 Improve color config variable handling
- Add separate `CFGFLAG_COLLIGHT7` for 0.7 color config variables, which use `61/255` as darkest lighting value. In comparison, `CFGFLAG_COLLIGHT` uses `0.5` darkest lighting, so the color values being shown for 0.7 color variables were incorrect. Closes #8775.
- Pass darkest lighting as parameter directly instead of using `bool`s to avoid duplicating the logic.
- Add `ColorHSLA::DARKEST_LGT7` constant to replace existing `CTeeInfo::ms_DarkestLGT7` and `CSkins7::DARKEST_COLOR_LGT` constants.
- Round color components before printing them in config variable command handler, as color components are generally also rounded before being packed and before rendering.
- Remove default value of `ColorHSLA::UnclampLighting` function, to avoid incorrect usage.
2024-09-17 12:27:10 +02:00
..
cpp Improve color config variable handling 2024-09-17 12:27:10 +02:00
engine/shared Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00
test update ci actions, update rust edition to 2021 since our MSRV covers it 2024-02-25 15:55:10 +01:00
.clang-tidy Add support for Rust code in DDNet 2022-10-19 23:46:06 +02:00