StatsWidget
Inherits from Panel
Widget displaying player's stats.
Variables
Name | Type | Description |
---|---|---|
player | Player object | |
hour_text | OnscreenText | Text displaying the hour |
money_text | OnscreenText | Text displaying current funds |
hygiene_text | OnscreenText | Text displaying hygiene |
hygiene_bar | DirectWaitBar | Bar displaying hygiene status |
hunger_text | OnscreenText | Text displaying hunger |
hunger_bar | DirectWaitBar | Bar displaying hunger status |
sleep_text | OnscreenText | Text displaying sleep |
sleep_bar | DirectWaitBar | Bar displaying sleep status |
task_update_stats | Task | Task that updates the stat panel |
Functions
Name | Description |
---|---|
update_stats | Updates all bars and text |
update_stats_task(task) | Keeps repeating the Task that runs |
Last modified: 31 December 2024