ui.add_checkbox("Enable Default Arrows", "_enable")
ui.add_slider("Size arrows", "_size",1,3)
function Ondraw() {
var enable = vars.get_bool("js._enable")
var font_size = vars.get_int("js._size")
var screen = render.get_screen_size()
x = screen[0];
y = screen[1];
var forward = vars.is_bind_active("manual_forward")
var isActive90 = vars.is_bind_active("manual_right");
var isActiveMin90 = vars.is_bind_active("manual_left");
render.text([x / 2 + 20, y / 2 * 0.982], [40, 40, 40,30],1,font_size,">")
render.text([x / 2 -32, y / 2 * 0.982], [40, 40, 40,30],1,font_size,"<")
render.text([x / 2 - 5, y / 2 * 0.950], [40, 40, 40,30],1,font_size,"^")
if(enable) {
if(isActive90) {
render.text([x / 2 + 20, y / 2 * 0.982], [255, 255, 255,255],1,font_size,">")
}
else if(isActiveMin90) {
render.text([x / 2 -32, y / 2 * 0.982], [255, 255, 255,255],1,font_size,"<")
}
else if(forward) {
render.text([x / 2 - 5, y / 2 * 0.950], [255, 255, 255,255],1,font_size,"^")
}
}
}
register_callback("render", Ondraw)