Hard black shadow for floating numbers

This commit is contained in:
shweet committed 2026-11-13 00:57:34 -05:00
1 parent ee3430d5cb
commit dcd3006f24
1 file changed
+1 -2
+1 -2
View File
@@ -29,7 +29,6 @@ constexpr float BAR_EASE = 6;
constexpr float BAR_SHAKE = 2; constexpr float BAR_SHAKE = 2;
constexpr float BAR_SHAKE_SPEED = 40; constexpr float BAR_SHAKE_SPEED = 40;
constexpr float FLOATER_SHADOW = 3; constexpr float FLOATER_SHADOW = 3;
constexpr float FLOATER_SHADOW_ALPHA = 0.6f;
constexpr float OVERSTUFFED_PULSE = 0.35f; constexpr float OVERSTUFFED_PULSE = 0.35f;
constexpr float OVERSTUFFED_SPEED = 6; constexpr float OVERSTUFFED_SPEED = 6;
constexpr float STAR_WAIST = 0.3f; constexpr float STAR_WAIST = 0.3f;
@@ -767,7 +766,7 @@ void Ui::effects_draw(Play& play, ImVec2 screen)
Vec2 at = view * floater.position; Vec2 at = view * floater.position;
ImVec2 position = {at.x - size.x / 2, at.y - size.y / 2}; ImVec2 position = {at.x - size.x / 2, at.y - size.y / 2};
drawList->AddText(font, FONT_HEADER_2, {position.x + FLOATER_SHADOW, position.y + FLOATER_SHADOW}, drawList->AddText(font, FONT_HEADER_2, {position.x + FLOATER_SHADOW, position.y + FLOATER_SHADOW},
ImGui::GetColorU32(ImVec4(0, 0, 0, alpha * FLOATER_SHADOW_ALPHA)), text.c_str()); ImGui::GetColorU32(ImVec4(0, 0, 0, alpha)), text.c_str());
drawList->AddText(font, FONT_HEADER_2, position, ImGui::GetColorU32(color), text.c_str()); drawList->AddText(font, FONT_HEADER_2, position, ImGui::GetColorU32(color), text.c_str());
} }
if (effects.flash > 0) if (effects.flash > 0)