Gui.screen_to_local doesn't take into account node's scale

gui.screen_to_local doesn’t take into account node’s scale

Hi! I decided to add a checkbox (“Large interface”) that sets the scale of all windows to 1.75. But when scaling the window, the slider works incorrectly

The slider’s code uses gui.screen_to_local(slider, vmath.vector3(action.screen_x, action.screen_y, 0)) to convert the screen position to the local position

I think the slider works incorrectly because gui.screen_to_local doesn’t take into account node’s scale. Yes, i can multiply the position by the node’s scale manually but i want gui.screen_to_local to do it on its own

1 Like