mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-13 11:13:50 +01:00
21 lines
700 B
TypeScript
21 lines
700 B
TypeScript
import { INetscriptHelper } from "./INetscriptHelper";
|
|
import { WorkerScript } from "../Netscript/WorkerScript";
|
|
import { IPlayer } from "../PersonObjects/IPlayer";
|
|
import { getRamCost } from "../Netscript/RamCostGenerator";
|
|
import { UserInterface as IUserInterface, UserInterfaceTheme } from "../ScriptEditor/NetscriptDefinitions";
|
|
import { Settings } from "../Settings/Settings";
|
|
|
|
export function NetscriptUserInterface(
|
|
player: IPlayer,
|
|
workerScript: WorkerScript,
|
|
helper: INetscriptHelper,
|
|
): IUserInterface {
|
|
return {
|
|
getTheme: function (): UserInterfaceTheme {
|
|
helper.updateDynamicRam("getTheme", getRamCost("ui", "getTheme"));
|
|
return {...Settings.theme};
|
|
},
|
|
}
|
|
}
|
|
|