Graphics()->ScreenWidth()
(in canvas size) was reported incorrectly before, which is now fixed.
Also, I noticed th...ColorRGBA{pColorInner->r * 0.5f, pColorInner->g * 0.5f, pColorInner->b * 0.5f, 1.0f}
float Lumen = mix(0.5f, 0.8f, 1.0f - (0.2126f * pColorInner->r + 0.7152f * pColorInner->g + 0.0722f * pColorInner->b));
float Alpha = clamp((pColorInner->a - 0.5f) / 0.5f, 0.0f, 1.0f);
RenderTools()->DrawUIRect(&Slider, ColorRGBA{pColorInner->r * Lumen, pColorInner->g * Lumen, pColorInner->b * Lumen, Alpha}, 0, 0);
color_cast<ColorRGBA>
docs/libtw2
.
Unrelated change: Add missing `` in the explain pages.