Feature: Transparency option for cost and income indicators (#11001)
This commit is contained in:
@@ -118,10 +118,10 @@ void DrawTextEffects(DrawPixelInfo *dpi)
|
||||
{
|
||||
/* Don't draw the text effects when zoomed out a lot */
|
||||
if (dpi->zoom > ZOOM_LVL_OUT_8X) return;
|
||||
|
||||
if (IsTransparencySet(TO_TEXT)) return;
|
||||
for (TextEffect &te : _text_effects) {
|
||||
if (te.string_id == INVALID_STRING_ID) continue;
|
||||
if (te.mode == TE_RISING || (_settings_client.gui.loading_indicators && !IsTransparencySet(TO_LOADING))) {
|
||||
if (te.mode == TE_RISING || _settings_client.gui.loading_indicators) {
|
||||
CopyInDParam(te.params);
|
||||
ViewportAddString(dpi, ZOOM_LVL_OUT_8X, &te, te.string_id, te.string_id - 1, STR_NULL);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user