GetRootScope() methods - hovgaardgames/startupcompany GitHub Wiki
GetRootScope() methods
Some of methods needs parameters, check which by typing in the console the method name, e.g. GetRootScope().addTransaction.
| Method | Description |
|---|---|
| addNotification | Deprecated, replaced by Helpers.ShowNotification |
| addTransaction | Adds a transaction (can be positive or negative amount) |
| closeAllUi | Closes all views opened |
| confirm | Displays a confirm dialog |
| deleteWorkstation | deletes a workstation |
| getPercentage | Calculates percentage of provided numbers |
| getTaskPercentage | Get the task percentage of the selected workstation |
| isBankrupt | Returns if the player lost |
| resetConfirm | Reset GetRootScope().Message to default values |
| safeBuy | Allows you to withdraw amount |
| saveGame | Triggers the autosave process |
| saveOptions | Triggers the options save process |
| sendMail | Deprecated, replaced by Helpers.ShowNotification |
| setActiveView | - |
| setController | - |
| setRack | - |
| setWorkstation | - |
| showMessage | Displays a message dialog |
| startIdleTimer | Starts an idle time. Stops when the game is paused |
| updateFinanceData | Updates data of Finances > Budget |