mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-15 20:52:41 +00:00
[MIRROR] works directly with seconds (#8467)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -135,7 +135,7 @@
|
||||
for(var/i in 1 to LAZYLEN(L))
|
||||
real_new_time += text2num(L[i]) * (60 ** (LAZYLEN(L) - i))
|
||||
else
|
||||
real_new_time = text2num(new_time * 10)
|
||||
real_new_time = text2num(new_time)
|
||||
time = clamp(real_new_time, 0, 600)
|
||||
return TRUE
|
||||
if("range")
|
||||
|
||||
@@ -94,6 +94,6 @@
|
||||
for(var/i in 1 to LAZYLEN(L))
|
||||
real_new_time += text2num(L[i]) * (60 ** (LAZYLEN(L) - i))
|
||||
else
|
||||
real_new_time = text2num(new_time * 10)
|
||||
real_new_time = text2num(new_time)
|
||||
time = clamp(real_new_time, 0, 600)
|
||||
return TRUE
|
||||
|
||||
@@ -28,9 +28,9 @@ export const AssemblyProx = (props) => {
|
||||
<NumberInput
|
||||
animated
|
||||
fluid
|
||||
value={time / 10}
|
||||
value={time}
|
||||
minValue={0}
|
||||
maxValue={60}
|
||||
maxValue={600}
|
||||
format={(val) => formatTime(round(val * 10))}
|
||||
onDrag={(e, val) => act('set_time', { time: val })}
|
||||
/>
|
||||
|
||||
@@ -28,9 +28,9 @@ export const AssemblyTimer = (props) => {
|
||||
<NumberInput
|
||||
animated
|
||||
fluid
|
||||
value={time / 10}
|
||||
value={time}
|
||||
minValue={0}
|
||||
maxValue={60}
|
||||
maxValue={600}
|
||||
format={(val) => formatTime(round(val * 10))}
|
||||
onDrag={(e, val) => act('set_time', { time: val })}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user