mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-27 11:27:04 +02:00
See description
Reverted ToastVariant back to an enum internally. Still exposed to player as just possible strings. Changed all 1-line documentation comments to actually be 1-line. Moved some because they were not providing documentation for the thing they were trying to.
This commit is contained in:
@@ -1,21 +1,13 @@
|
||||
/**
|
||||
* Represents the possible configuration values that can be provided when creating the progress bar text.
|
||||
*/
|
||||
/** Represents the possible configuration values that can be provided when creating the progress bar text. */
|
||||
interface IProgressBarConfiguration {
|
||||
/**
|
||||
* Current progress, taken as a decimal (i.e. '0.6' to represent '60%')
|
||||
*/
|
||||
/** Current progress, taken as a decimal (i.e. '0.6' to represent '60%') */
|
||||
progress?: number;
|
||||
|
||||
/**
|
||||
* Total number of ticks in progress bar. Preferably a factor of 100.
|
||||
*/
|
||||
/** Total number of ticks in progress bar. Preferably a factor of 100. */
|
||||
totalTicks?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents concrete configuration values when creating the progress bar text.
|
||||
*/
|
||||
/** Represents concrete configuration values when creating the progress bar text. */
|
||||
interface IProgressBarConfigurationMaterialized extends IProgressBarConfiguration {
|
||||
progress: number;
|
||||
totalTicks: number;
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/**
|
||||
* Returns a MM/DD HH:MM timestamp for the current time
|
||||
*/
|
||||
/** Returns a MM/DD HH:MM timestamp for the current time */
|
||||
export function getTimestamp(): string {
|
||||
const d: Date = new Date();
|
||||
// A negative slice value takes from the end of the string rather than the beginning.
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/**
|
||||
* Keyboard key codes as returned by event.key
|
||||
*/
|
||||
/** Keyboard key codes as returned by event.key */
|
||||
export enum KEY {
|
||||
//SHIFT: 16, // Check by `&& event.shiftKey`
|
||||
//CTRL: 17, // Check by `&& event.ctrlKey`
|
||||
@@ -72,9 +70,7 @@ export enum KEY {
|
||||
Z = "z",
|
||||
}
|
||||
|
||||
/**
|
||||
* Keyboard key codes as returned by event.code
|
||||
*/
|
||||
/** Keyboard key codes as returned by event.code */
|
||||
export enum KEYCODE {
|
||||
//SHIFT: 16, // Check by `&& event.shiftKey`
|
||||
//CTRL: 17, // Check by `&& event.ctrlKey`
|
||||
|
||||
Reference in New Issue
Block a user