mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 12:15:44 +01:00
allbuild commit c9432e4c
This commit is contained in:
parent
c9432e4cd7
commit
8fe824e8cd
4
dist/main.bundle.js
vendored
4
dist/main.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/main.bundle.js.map
vendored
2
dist/main.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
42
dist/vendor.bundle.js
vendored
42
dist/vendor.bundle.js
vendored
File diff suppressed because one or more lines are too long
2
dist/vendor.bundle.js.map
vendored
2
dist/vendor.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
@ -23,32 +23,50 @@ export const CurrentOptionsPage = (props: IProps): React.ReactElement => {
|
|||||||
const [timestampFormat, setTimestampFormat] = useState(Settings.TimestampsFormat);
|
const [timestampFormat, setTimestampFormat] = useState(Settings.TimestampsFormat);
|
||||||
const [locale, setLocale] = useState(Settings.Locale);
|
const [locale, setLocale] = useState(Settings.Locale);
|
||||||
|
|
||||||
function handleExecTimeChange(event: any, newValue: number | number[]): void {
|
function handleExecTimeChange(
|
||||||
|
_event: Event | React.SyntheticEvent<Element, Event>,
|
||||||
|
newValue: number | number[],
|
||||||
|
): void {
|
||||||
setExecTime(newValue as number);
|
setExecTime(newValue as number);
|
||||||
Settings.CodeInstructionRunTime = newValue as number;
|
Settings.CodeInstructionRunTime = newValue as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleRecentScriptsSizeChange(event: any, newValue: number | number[]): void {
|
function handleRecentScriptsSizeChange(
|
||||||
|
_event: Event | React.SyntheticEvent<Element, Event>,
|
||||||
|
newValue: number | number[],
|
||||||
|
): void {
|
||||||
setRecentScriptsSize(newValue as number);
|
setRecentScriptsSize(newValue as number);
|
||||||
Settings.MaxRecentScriptsCapacity = newValue as number;
|
Settings.MaxRecentScriptsCapacity = newValue as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleLogSizeChange(event: any, newValue: number | number[]): void {
|
function handleLogSizeChange(
|
||||||
|
_event: Event | React.SyntheticEvent<Element, Event>,
|
||||||
|
newValue: number | number[],
|
||||||
|
): void {
|
||||||
setLogSize(newValue as number);
|
setLogSize(newValue as number);
|
||||||
Settings.MaxLogCapacity = newValue as number;
|
Settings.MaxLogCapacity = newValue as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePortSizeChange(event: any, newValue: number | number[]): void {
|
function handlePortSizeChange(
|
||||||
|
_event: Event | React.SyntheticEvent<Element, Event>,
|
||||||
|
newValue: number | number[],
|
||||||
|
): void {
|
||||||
setPortSize(newValue as number);
|
setPortSize(newValue as number);
|
||||||
Settings.MaxPortCapacity = newValue as number;
|
Settings.MaxPortCapacity = newValue as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleTerminalSizeChange(event: any, newValue: number | number[]): void {
|
function handleTerminalSizeChange(
|
||||||
|
_event: Event | React.SyntheticEvent<Element, Event>,
|
||||||
|
newValue: number | number[],
|
||||||
|
): void {
|
||||||
setTerminalSize(newValue as number);
|
setTerminalSize(newValue as number);
|
||||||
Settings.MaxTerminalCapacity = newValue as number;
|
Settings.MaxTerminalCapacity = newValue as number;
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleAutosaveIntervalChange(event: any, newValue: number | number[]): void {
|
function handleAutosaveIntervalChange(
|
||||||
|
_event: Event | React.SyntheticEvent<Element, Event>,
|
||||||
|
newValue: number | number[],
|
||||||
|
): void {
|
||||||
setAutosaveInterval(newValue as number);
|
setAutosaveInterval(newValue as number);
|
||||||
Settings.AutosaveInterval = newValue as number;
|
Settings.AutosaveInterval = newValue as number;
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,7 @@ import React, { useState } from "react";
|
|||||||
|
|
||||||
interface IProps {
|
interface IProps {
|
||||||
initialValue: number;
|
initialValue: number;
|
||||||
callback: (event: any, newValue: number | number[]) => void;
|
callback: (event: Event | React.SyntheticEvent<Element, Event>, newValue: number | number[]) => void;
|
||||||
step: number;
|
step: number;
|
||||||
min: number;
|
min: number;
|
||||||
max: number;
|
max: number;
|
||||||
|
Loading…
Reference in New Issue
Block a user