mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-30 21:07:04 +02:00
allbuild commit c9432e4c
This commit is contained in:
@@ -23,32 +23,50 @@ export const CurrentOptionsPage = (props: IProps): React.ReactElement => {
|
||||
const [timestampFormat, setTimestampFormat] = useState(Settings.TimestampsFormat);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
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);
|
||||
Settings.AutosaveInterval = newValue as number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user