-
Notifications
You must be signed in to change notification settings - Fork 795
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Show current time during gameplay. #6775
Conversation
You can check current time in chat log by pressing L |
Yes, but it can't be displayed all the time. |
We have added Lua to the codebase. It would be better to implement these kinds of customizations there. |
I was able to figure out how to implement this in C++, I'm afraid I'm not that good with Lua. |
You know a game is intended for a mature audience when it has an option to display the real life clock :) |
@nelchael if you can either create an issue for it or maybe get on the chat we can help you create a Lua implementation. |
in lua/user.lua put the following: local render = require('devilutionx.render')
local function ShowTime()
render.string(os.date('%H:%M:%S'), 85, 8)
end
Events.OnGameDrawComplete.Add(ShowTime) For US people you can get your odd format with: %I:%M:%S %p There is a slight catch though, |
Ok, so that's more like a DYI solution, bundling this script with a release build would force the clock display for everyone (I don't think settings are exposed to Lua either). |
Right, the point is to make these types of things more DIY. Like, you want a clock? Go download the Lua script that implements it. |
Got it, I'd prefer to just have an option in the release build, but it's just me :) |
We may well include some default mods that can be enabled form a menu in settings, same with any additional ones you make or download. |
Adding an option to display current time just under the FPS counter.