Download
(745 Kb)
Download
Updated: 03/18/23 12:40 PM
Pictures
File Info
Compatibility:
Scribes of Fate (8.3.5)
Updated:03/18/23 12:40 PM
Created:02/20/20 09:11 PM
Monthly downloads:693
Total downloads:49,503
Favorites:149
MD5:
Categories:Graphic UI Mods, Info, Plug-in Bars, RolePlay, UI Media, Miscellaneous
Clock - Tamriel Standard Time  Popular! (More than 5000 hits)
Version: 2.2.7
by: Tyx, Phinix

Clock

Tamriel Standard Time
by @Tyx

Version 2.2


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.





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.
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 )
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.







Manage Settings In Presets
Change the look and feel to one of the default presets or create your own, to quickly change between various settings.





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:
Code:
Clock_TST.CONSTANTS
Don't worry, it is quite simple:

Lua Code:
  1. local const = Clock_TST.CONSTANTS()
  2. table.insert(cons*****nu.time.BACKGROUND, "MyTextureName")
  3.  
  4. local myData = {
  5.   path = "PathToMyFileFolder",
  6.   background = "nameOfMyFile.dds",
  7.   hover = "nameOfMyHoverFile.dds" -- optional
  8. }
  9. const.UI.BACKGROUND["MyTextureName"] = myData
  10.  
  11. Clock_TST.CONSTANTS = function() return const end

Did not test it though




--------------------
---- 2.2.7 ---- ~Phinix
- Updated for Scribes of Fate.
--------------------
---- 2.2.6 ---- ~Phinix
- Modified LibClockTST.GetWeekDay function to derive day-of-week value using unix epoch timestamps as the previous method was off by 1 for December 2021 and probably other dates.
- EDIT: Update without version change for Ascending Tide.
--------------------
---- 2.2.5 ---- ~Phinix
- Fixed double number formatting bug with days.
--------------------
---- 2.2.4 ---- ~Phinix
- Updated API for Waking Flame update.
--------------------
---- 2.2.3 ---- ~Phinix
- Fixed double zero padding display when using custom text string for real time for the floating clock.
- Fixed fake lore mode not returning values for $H, $M, $S, $X, or $p.
- Cleaned up English translation for better descriptive wording, particularly for the custom time string construction feature for the floating clock under Look Options. Also gave a simple example use.
- Tested all symbol modes with text replacement manually, and verified all are returning proper values now.
- Bumped API to support current PTS as well as live (though PTS now automatically loads out of date addons anyway).
--------------------
---- 2.2.2 ---- ~Phinix
- Corrected hour padding not working properly for certain variables (lore hours).
- Corrected real date/time day wrongly showing as the lore equivalent in the popup display.
- Corrected 24 hour time not working as expected in all cases (0 hundred hours becoming 12 even when not set to 12 hour time, etc.).
- Changed behavior so removing all custom character strings from Look Filters would disable showing the floating time display, which was not intuitive as you had to manually toggle it back on to edit the field again.
- Some other minor changes and cleanup.
--------------------
---- 2.2.1 ---- ~Phinix
- Incorporated Phuein's time format fixes (esoui.com/downloads/info2895-Clock-TamrielStandardTimeQuickPatch.html).
- Added options for zero-padding individual time variables (hour, minute, second, day, and month) so you can customize the floating time display more specifically. Before if you chose zero padding (so minutes would read as 12:04 P.M. for example), it would also zero pad all the other values. So, the date would read as 04th instead of 4th, hours would read as 08:14 A.M. instead of 8:14 A.M., and if you wanted to remove these zeroes by disabling zero padding it disabled it for minutes, so you would get things like 12:4 A.M.. Setting this option for individual types avoids these limitations.
- Added option for minimalist am/pm values in the floating time (doesn't effect the tooltip display). This causes for example, 4:12 A.M. to display as 4:12 am, for people who prefer a more minimal display.
- Added a new option to the text edit options for floating time display, %D, which will show the day with the phonetic suffixes "1st, 3rd, 4th," etc., while %d will just show the plain number (1, 3, 4), useful for doing things like 4-4-21.
--------------------
---- 2.2.0 ----
- Added Preset to setting menu
- Added Small preset
- Added Map preset
- Added HideInGroup toggle (thanks for the idea an function @Crunatus)
- Fixed bug where the map hides only after the first opening of the map if set ShowOnMap
- Replaced my own with ZO functions if possible
--------------------
---- 2.1.0 ----
- Added Bindings to togglle visibility time, moon and both
- Added slider to menu to scale the moon
- Added context menu button to moon and time to reset scaling
- Added possiblitiy to set a background colour and hover colour
- Optimized addon loading time
- Reorganized settings menu
- Changed background textures to white
- Changed waning textures to waxing (thanks for reporting @Azmodan)
- Fixed bug that moon background is still visible if moon is not (thanks for reporting @Circuitous)
- Fixed bug of time and moon where they were still interactable even if not visible
- Removed unnecessary text outputs (thanks for reporting @Varana)
--------------------
---- 2.0.1 ----
- Fixed the regional bug, where the real date could not be calculated (thankgs for reporting @Azmodan)
--------------------
---- 2.0.0 ----
- Completely new code base of the interface
- Added custom textures
- Added customizable time and date label
- Added customizable moon
- Added context menu
- Added tooltip
- Added settings menu
- Added fragment controls
- Added dependencies for LibAddonMenu-2.0, LibClockTST, LibFeedback
--------------------
Optional Files (1)
File Name
Version
Size
Author
Date
Type
2.2.1
737kB
01/09/21 04:48 AM
Patch


Archived Files (5)
File Name
Version
Size
Uploader
Date
2.2.6
745kB
Phinix
04/17/22 04:34 AM
2.2.0
745kB
Tyx
03/06/20 04:37 PM
2.1.0
740kB
Tyx
02/24/20 04:41 PM
2.0.1
1MB
Tyx
02/21/20 11:01 AM
2.0.0
1MB
Tyx
02/20/20 09:11 PM


Post A Reply Comment Options
Unread 08/02/20, 11:16 AM  
esosikkerhed

Forum posts: 0
File comments: 14
Uploads: 0
Re: Tooltip Date issue

Originally Posted by esosikkerhed
use "%I" (the capital letter i) to get a 12-hour value. (It's also stripped of leading zeros by default.)
Note that in the "Look" settings, the 12-hour format for "%I" appears to use positive numbers for the hour if it's AM. For PM, it uses negative numbers.

For example, "%I:%M %p" says "4:56 A.M." but "-4:56 P.M.".
Report comment to moderator  
Reply With Quote
Unread 08/02/20, 02:52 AM  
esosikkerhed

Forum posts: 0
File comments: 14
Uploads: 0
Tooltip Date issue

Love the addon! I keep mine small and in the corner under chat so I can keep an eye on real-world time in fullscreen play. I rely on the tooltip for expanded and lore time info while in game.

Only issue:

The tooltip shows the lore day name on both lines. I think this can be fixed with replacing "loreDate.A" with "realDate.A" on the 2.20 versions's "Lib/Feature/Time/Time.lua", line 221.

Another note (for users):

A simple "%H:%M" makes a good, small real-word clock, but the "%H" is always 24-hour. The reference in the "Look" settings doesn't mention that you can instead use "%I" (the capital letter i) to get a 12-hour value. (It's also stripped of leading zeros by default.)

Still the coolest clock addon for ESO! Thank you!
Report comment to moderator  
Reply With Quote
Unread 07/16/20, 02:50 PM  
HowellQagan
 
HowellQagan's Avatar

Forum posts: 11
File comments: 437
Uploads: 0
Heyo, love the rework. (It took me a while to recreate something similar than I used in 1.0, I couldn't find the "Add zeros" option :'D)
I just noticed that the scale factor seems to be 10+ digits after the decimal marker (i.e. it doesn't move by 1/10th for example).
Also, am I crazy or did Clock have left-aligned text previously? I would love that, I used to have the clock placed under the chat window, next to the FPS counter and ping meter, it was basically filling the rest of the length of the gap under the chat with its slightly transparent black background, while the text on it was on the left side.
Report comment to moderator  
Reply With Quote
Unread 05/23/20, 05:27 AM  
Pyromaniac

Forum posts: 0
File comments: 2
Uploads: 0
The issue has resolved itself somehow.
Report comment to moderator  
Reply With Quote
Unread 05/22/20, 06:34 AM  
Pyromaniac

Forum posts: 0
File comments: 2
Uploads: 0
Issue with moon texture

I've recently ran into an issue where the moon's texture doesn't show.
Anyone got any idea for what could be causing the issue and possibly the solution to fixing it?

According to the addon, the moon is currently waning which I believe means it's supposed to have this texture over it:
Report comment to moderator  
Reply With Quote
Unread 04/03/20, 01:36 PM  
Racke
 
Racke's Avatar

Forum posts: 9
File comments: 16
Uploads: 0
I've been using your clock addon for many years and have recently switched to the updated one. Thanks for this great addon, one of the must-have's for me. I'm now using the map option, where it only shows when I open the map. Works great and is immersive.
Report comment to moderator  
Reply With Quote
Unread 02/27/20, 07:06 AM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Originally Posted by Crunatus
IsUnitGrouped("player")
Returns true or false

That easy . Wow. Thank you! I will update the addon soon and will add this options. Also the update will fix the bug, that, if you have selected "Only show on the map", the UI elements will show always until you open the map once and close it again. Additionally, I think about adding some presets to the settings. Would be nice to change quickly between layouts. Maybe one under the map, another one at the top left or so. Stay tuned.
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 05:35 PM  
Crunatus
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 42
Uploads: 3
Originally Posted by Tyx
But I have no idea how to find out if you're in a group... I'll note it as a "maybe" for a future update.
IsUnitGrouped("player")
Returns true or false
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 04:58 PM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Originally Posted by Crunatus
Maybe it's better to have "Hide in group" instead "Hide in fights"? This is making more sense.
Good idea, but it doesn't have to be a replacement. It could be an addition. But I have no idea how to find out if you're in a group... I'll note it as a "maybe" for a future update.
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 04:50 PM  
Crunatus
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 42
Uploads: 3
Maybe it's better to have "Hide in group" instead "Hide in fights"? This is making more sense.
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 03:56 PM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Originally Posted by chione
hello I would like to know why the advancement of the moon is not done automatically but after a reload UI because it is annoying enough to have to reload UI so that the moons fill up progressively
I'm not sure. The moons are updated once an hour, if I remember correctly, because a full cycle takes about 174 hours. So to reduce the impact on performance, it is only calculated at the beginning of a session. There are 8 different phases supported. A phase should therefore last about 22 hours. If I have not created an error, a progression within a session should not be noticeable. Or did you mean by "moons fill up progressively" something else?


Originally Posted by Circuitous
I'll also try my hand at making a nice background image for the clock and moons, and if I come up with anything particularly nice, I'll upload it as a plugin (or release the rights to you to include it in the base download, if you also like it).

I look forward to it. If you use a white colour for the backgrounds, they can be freely coloured later in the game.
Report comment to moderator  
Reply With Quote
Unread 02/26/20, 03:04 PM  
chione

Forum posts: 0
File comments: 1
Uploads: 0
hello I would like to know why the advancement of the moon is not done automatically but after a reload UI because it is annoying enough to have to reload UI so that the moons fill up progressively
Report comment to moderator  
Reply With Quote
Unread 02/25/20, 10:00 AM  
Circuitous
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 49
Uploads: 3
Oh, I had noticed that "true"/"false" chat output as well and forgot to report it, silly me.

Tyx, thank you for taking care of that toggle bug, and all the other nice features you've added with this update.

Hovering over the moons and scrolling to adjust their size is a neat feature, but I hadn't realized it was possible! I thought it was just to get a better look at the textures, especially since there was a slider specifically for how big they should be when hovered over. Now that I know, I'll definitely give that a shot.

I'll also try my hand at making a nice background image for the clock and moons, and if I come up with anything particularly nice, I'll upload it as a plugin (or release the rights to you to include it in the base download, if you also like it).
Last edited by Circuitous : 02/25/20 at 10:01 AM.
Report comment to moderator  
Reply With Quote
Unread 02/24/20, 04:44 PM  
Tyx
 
Tyx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 23
File comments: 83
Uploads: 6
Re:

I uploaded the next update. You can see the changes in the changelog. It contains some minor additions and some patches. All together, I hope I fixed more bugs than I introduced



@Varana thanks for reporting. Removed the output. I used them to debug and completely forgot them


@Azmodan thanks for the continious reporting. I changed the textures. You will need to restart the game to see the effekt, but now they should fit the phase.
Report comment to moderator  
Reply With Quote
Unread 02/24/20, 01:39 PM  
Varana

Forum posts: 0
File comments: 2
Uploads: 0
"Hide in fights" option

Heya,

I've been using the old version since 2014, just now updated. So this might have to do with the Harrowstorm update.

When I enable "hide in fights", the addon writes
true
true
into my chat box once combat starts, and
false
false
when it ends.

Thanks for the great addon!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump:

Support AddOn Development!

You have just downloaded by the author . If you like this AddOn why not consider supporting the author? This author has set up a donation account. Donations ensure that authors can continue to develop useful tools for everyone.