def sheetXY(name, initialValue=None, update=None, below=0): """ 'prints' a slider to the sheet. takes four parameters: -> a name for this UI element -> an optional 'initial value" which is a Vector2(x,y) with components between 0 and 1 -> an optional 'update' function that's called when change happens -> whether this element should be positioned 'below' the box or to the right (the default) """ r=OutputInsertsOnSheet.printXYSlider(name, getSelf(), update, below) if (OutputInsertsOnSheet.lastWasNew and initialValue): r.set(initialValue) return r