The Elder Scrolls Online

File information

Last updated

Original upload

Created by

Tyx

Uploaded by

Logo17490

Virus scan

Safe to use

About this mod

Recreation of the old Clock - Tamriel Standard Time with almost 300.000 downloads.

Clock - TST gives you a fully customizable lore- (and real-) date and time system with moon cycle integration.

Requirements
Permissions and credits
Mirrors
Changelogs
Donations

Clock

Tamriel Standard Time
by @Tyx

Version 2.0


This is a completely rewritten version of Clock - Tamriel Standard Time. It will show you the time and date in Tamriel and in the real world together with the current moon phase in Tamriel, as a pretty and fully customizable interface.






Dependencies
  • LibClockTST
  • LibAddonMenu-2.0
  • LibFeedback

I was recently in the mood to update my old Clock - Tamriel Standard Time addon, but I didn't like the code I wrote six years ago. (Such a long time feels much shorter) Especially the user interface hasn't aged very well. So while I tried to fix a few things, I decided to just rewrite it. :D
I've split the logic (calculation of time, date and moon phase) into a new Library: LibClockTSTthe UI part in this one.

I decided to upload it as a new addon, because it will break all old settings and is not yet tested by anyone except myself. (I wrote nice unit tests though :cool:)
The old Clock will stay as a legacy code, but will not get any further updates from me.


Custom Textures

I created new textures for moons and Clock which are released under GPL-3, as is this entire addon. You are free to use any of my code and textures for your own projects as long as you use the same license and it stays Open Source.





Various Styles

You can adjust the style of the clock completely. Not just chose from some predefined colours and fonts with their sizes, but you are able to chose any RGBA colour, out of 10 fonts with 6 different styles. The size of the moon and the clock is dynamically adjustable by scrolling with the mouse wheel.





Visual Helper

If you hover over the Clock or Moon object, a tooltip will apear giving you further information about the time, date and moon phase. Especially the moon tooltip is quite usful, as it shows you how many days (in Tamriel) and hours (in real time) it will take, until the moon is full again.




Fully Customizable

Clock uses the LibAddonMenu-2.0 to give you a lot of options to customize the Clock to your liking.
For instance, you are now able to just write whatever you want in the Clock label with special variables which will be automatically replaced with their respective value.







Modable

I tried to create Clock 2.0 in a way to make it easily possible to create patches and addons for it. For instance, if you want to create your own background texture, you only need Paint.net, create an image with transparent background, save in your patch/mod addon somewhere as an dds image with Linear DX5 format.
Finally, you have to overload the function: Clock_TST.CONSTANTSDon't worry, it is quite simple:

[highlight="Lua"]
local const = Clock_TST.CONSTANTS()
table.insert(const.Menu.time.BACKGROUND, "MyTextureName")

local myData = {
path = "PathToMyFileFolder",
background = "nameOfMyFile.dds",
hover = "nameOfMyHoverFile.dds"
}
const.UI.BACKGROUND["MyTextureName"] = myData

Clock_TST.CONSTANTS = function() return const end
[/highlight]

Did not test it though :p


You can find the documentation here.