summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2026-03-27 17:40:05 +0000
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2026-03-27 17:40:05 +0000
commit135402168801035c38be600fa64702c1ba63b9fe (patch)
tree36f13d91fc08b0f0cb395fa648bde777c8c76773 /ui
parentAdd wrapper for ImGui::TextEx for any contiguous char range (diff)
downloadilt-135402168801035c38be600fa64702c1ba63b9fe.tar.bz2
ilt-135402168801035c38be600fa64702c1ba63b9fe.tar.xz
ilt-135402168801035c38be600fa64702c1ba63b9fe.zip
Use std::chrono for worldTimeHEADmain
Defines a world time type alias, a game time scale factor (the rate at which world time progresses compare to real time) and display the world time on the status bar.
Diffstat (limited to 'ui')
-rw-r--r--ui/gameMainWindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp
index 056dac3..cc81a9b 100644
--- a/ui/gameMainWindow.cpp
+++ b/ui/gameMainWindow.cpp
@@ -28,6 +28,7 @@ public:
render() override
{
if (IltGui::BeginToolbar("bottomBar", ImGuiDir_Down, TOOLBAR_HEIGHT)) {
+ IltGui::Text(std::format("{:%a, %H:%M\n%d %m %Y}", gameState->environment->getWorldTime()));
if (ImGui::ImageButton("Build rails", *buildRailsIcon, TOOLBAR_ICON_SIZE<ImVec2>)) {
gms->target = std::make_unique<EditNetworkOf<RailLinks>>();
}