summaryrefslogtreecommitdiff
path: root/app/components/tweaks/tweaks.tsx
diff options
context:
space:
mode:
authorThomas F. K. Jorna <[email protected]>2021-07-18 01:42:47 +0200
committerThomas F. K. Jorna <[email protected]>2021-07-18 01:42:47 +0200
commit08124aa84fdbc48b1579c37e75cb7bc69c1feff8 (patch)
tree95e6c9b656342fe54bf82d154633bda8bf5c3420 /app/components/tweaks/tweaks.tsx
parentecfd4f05bd32c3942580a5b01f021b2acdff4b54 (diff)
first steps towards expand mode
Diffstat (limited to 'app/components/tweaks/tweaks.tsx')
-rw-r--r--app/components/tweaks/tweaks.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/components/tweaks/tweaks.tsx b/app/components/tweaks/tweaks.tsx
index d2b5bd1..49754d0 100644
--- a/app/components/tweaks/tweaks.tsx
+++ b/app/components/tweaks/tweaks.tsx
@@ -181,6 +181,13 @@ export const Tweaks = observer(function Tweaks(props: TweaksProps): JSX.Element
value={physics.collapse}
onValueChange={() => { setPhysics({ ...physics, collapse: !physics.collapse }) }}
/>
+ <Text preset="fieldLabel" text={"Change starting point: " + physics.rootId} />
+ <Slider style={{ height: 40, width: "90%" }}
+ minimumValue={0}
+ maximumValue={600}
+ onValueChange={(value) => { setPhysics({ ...physics, rootId: value }) }}
+ value={physics.rootId}
+ step={1} />
<Text preset="fieldLabel" text="3D" />
<Switch style={{ width: "5", height: 20, marginVertical: 10 }}
value={physics.threedim}