mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Rename range_lerp to remap
This commit is contained in:
@@ -284,7 +284,7 @@ void EditorToaster::_draw_button() {
|
||||
void EditorToaster::_draw_progress(Control *panel) {
|
||||
if (toasts.has(panel) && toasts[panel].remaining_time > 0 && toasts[panel].duration > 0) {
|
||||
Size2 size = panel->get_size();
|
||||
size.x *= MIN(1, Math::range_lerp(toasts[panel].remaining_time, 0, toasts[panel].duration, 0, 2));
|
||||
size.x *= MIN(1, Math::remap(toasts[panel].remaining_time, 0, toasts[panel].duration, 0, 2));
|
||||
|
||||
Ref<StyleBoxFlat> stylebox;
|
||||
switch (toasts[panel].severity) {
|
||||
|
||||
Reference in New Issue
Block a user