-
Автор темы
- #21
[weave] JavaScript: Load error: ReferenceError: identifier 'UI' undefinedпопробуй это мб сработает:UI.add_slider("Delay per phase", "slider_delay",0, 60) //Here you can set your own max delay UI.add_checkbox("Add slider", 'slider_add') var TotalSliders = 0; var CurrentPhase = 0; function CreateSlider() { if (vars.get_int("slider_add")) { TotalSliders++; ui.add_slider("Phase #" + toString(TotalSliders), "phase_lol" + toString(TotalSliders),-60, 60); } vars.set_bool("slider_add", false); } register_callback('render', CreateSlider) function CheckPhase() { if (CurrentPhase > TotalSliders) CurrentPhase = TotalSliders; const delay = vars.get_int("slider_delay"); if (global_vars.curtime() % delay == 0) CurrentPhase++; } register_callback('render', CheckPhase) function ForcePhase() { CurrentDegress = vars.get_int("phase_lol" + toString(CurrentPhase)); antiaim.override_body_lean(CurrentDegress); } register_callback("createmove", ForcePhase);
window resized
Там в варсе чтоли было, или в рендере че то с window resized связано, можно фикс ?xd