Anim Editor: refactoring side pane code

This commit is contained in:
Maruno17
2024-04-04 21:33:08 +01:00
parent 1977bd866c
commit 9c3314843a
9 changed files with 764 additions and 412 deletions

View File

@@ -221,7 +221,6 @@ class UIControls::ControlsContainer
end
def add_control(id, control, add_offset = false, rows = 1)
i = @controls.length
ctrl_x, ctrl_y = next_control_position(add_offset)
ctrl_x += 4 if control.is_a?(UIControls::List)
add_control_at(id, control, ctrl_x, ctrl_y)