Godot Version
4.3
Question
hey! i’m trying to make a TextEdit that resembles lined paper, but i can’t seem to figure out how to get draw_line()s to scroll with the TextEdit. i tried using the TextEdit’s VScrollBar’s value, but it doesn’t go by pixel it seems, so it’s not just a simple i + the value.
this is my current line generating code, in a _draw function:
for i in range(29, screen_size.y, 29):
draw_line(Vector2(0, i), Vector2(screen_size.x, i), Color.hex(0x63AFFDFF))
how would i go about getting it to consistently scroll with the textedit?