Download
(3 Kb)
Download
Updated: 05/20/22 04:03 AM
Pictures
File Info
Compatibility:
Necrom (9.0.0)
High Isle (8.0.0)
Updated:05/20/22 04:03 AM
Created:09/15/15 04:56 PM
Monthly downloads:240
Total downloads:61,927
Favorites:66
MD5:
Mini Clock  Popular! (More than 5000 hits)
Version: 7.101035
by: hatsune681 [More]
Display a mini clock on the screen.

Automatically switches to 12/24 hours format and colours depending on default games colours and
the one you choose : World map clock and Performance meter

Originally based on v0.0.1 of alfpog's SimpleClock, this addon had been "tainted" by
No compass, eso tutorials, eso wiki and a nice idea in wow wiki (implementation was
different but this greatly lowered gpu/cpu usage) and obviously esoui source code.


Note : 2023-06-06 mod seems to be okay with Necrom
7.101035
Fixed : 24h format, API version number updated
6.101032: Updated API version number
6.100036: Reuploading from my current working game folder
6.100036: Updated API version number
6.100033: Updated API version number
6.100032: Updated API version number
6.100031: removed obsoleted call to LibStub
5.100031 : updated API version number
5.100030 : updated API version number
5.100029 :
Added World Map clock format
Added auto hide on World map
Changed perf-meter font to fit.
Now depends on libaddonmenu

4.1.100029 : removed /mcxx commands. Time has now the same format as the one shown on world map
4.100029 : updated API version number
4.100028 : updated api ; switched from per account to per character settings based on Id
3.100027 : used suggested code from "WfD Temp Account" (now 3 co-authors, thx guys)
2.100027 : updated API version number
2.100021 : updated API version number
2.100019 : updated API version number
2.100017 : updated API version number
2.100016 : updated API version number
2.100015 : updated API version number
2.100014 : updated API version number
2.100013 : updated API version number
2.100012 : added CaptainBlagBird's code (just used 128 px wide, seems a little bit more centered, not sure)
1.100012 : Initial Realease
Optional Files (0)


Archived Files (2)
File Name
Version
Size
Uploader
Date
6.101032
3kB
hatsune681
11/07/21 06:45 AM
6.100036
3kB
hatsune681
06/20/21 04:46 AM


Post A Reply Comment Options
Unread 11/09/21, 06:27 AM  
hatsune681
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 29
Uploads: 3
Originally Posted by Th3M3nT0r
It bugged for me. It shows only in the menu mode (Esc press) and hides when return to normal view.
I couldn't reproduce the bug here. This is strange but could be a compatibility issue with another installed add-on. Can you tell me which add-ons you're using ? It could be something related to ZO_WorldMap_GetMode function.
Last edited by hatsune681 : 11/10/21 at 01:44 AM.
Report comment to moderator  
Reply With Quote
Unread 11/08/21, 06:16 AM  
Th3M3nT0r
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 27
Uploads: 1
It bugged for me. It shows only in the menu mode (Esc press) and hides when return to normal view.
Report comment to moderator  
Reply With Quote
Unread 06/02/21, 05:21 PM  
shira
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 13
Uploads: 1
Originally Posted by DreamsUnderStars
Code:
user:/AddOns/MiniClock/MiniClock.lua:99: function expected instead of nil
stack traceback:
user:/AddOns/MiniClock/MiniClock.lua:99: in function 'MiniClock:setupOptions'
|caaaaaa<Locals> self = [table:1]{ModuleName = "MiniClock", currentFrameTime = 373.82485961914}, panelData = [table:2]{version = "Current ^_^", name = "MiniClock", registerForDefaults = T, type = "panel"}, optionsTable = [table:3]{} </Locals>|r
user:/AddOns/MiniClock/MiniClock.lua:112: in function 'MiniClock:init'
|caaaaaa<Locals> self = [table:1], x = 20, y = 18 </Locals>|r
user:/AddOns/MiniClock/MiniClock.lua:144: in function 'OnLoad'
|caaaaaa<Locals> eventCode = 65536, name = "MiniClock" </Locals>|r
I get this error with the last update.
same here, its the libstub call at line 99. replace with

Code:
local LAM = LibAddonMenu2
Report comment to moderator  
Reply With Quote
Unread 06/02/21, 10:56 AM  
DreamsUnderStars

Forum posts: 7
File comments: 90
Uploads: 0
Code:
user:/AddOns/MiniClock/MiniClock.lua:99: function expected instead of nil
stack traceback:
user:/AddOns/MiniClock/MiniClock.lua:99: in function 'MiniClock:setupOptions'
|caaaaaa<Locals> self = [table:1]{ModuleName = "MiniClock", currentFrameTime = 373.82485961914}, panelData = [table:2]{version = "Current ^_^", name = "MiniClock", registerForDefaults = T, type = "panel"}, optionsTable = [table:3]{} </Locals>|r
user:/AddOns/MiniClock/MiniClock.lua:112: in function 'MiniClock:init'
|caaaaaa<Locals> self = [table:1], x = 20, y = 18 </Locals>|r
user:/AddOns/MiniClock/MiniClock.lua:144: in function 'OnLoad'
|caaaaaa<Locals> eventCode = 65536, name = "MiniClock" </Locals>|r
I get this error with the last update.
Report comment to moderator  
Reply With Quote
Unread 01/18/21, 11:53 AM  
hatsune681
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 29
Uploads: 3
Re: Clock Request

Originally Posted by amuridee
Hi,

Love this addons, its work perfectly
May I ask, how to change time format from 12 hours to 24 hours?
And can I have a request for add the Tamriel time too on this addons as well?

Thank you
Hello,

about manual change between 12 and 24 formats, it was the case in release 4.x and previous. I removed it as I wanted the clock to fit perfectly UI standards.

Looking at what API gives to get in-game time and if there are any addons which already does that, I found something really nice. Exactly what you may want : ClockTST by @Tyx which is fully customizable. Time format, which one, twice, colour, background etc. Don't forget libClockTST if you use it.

Regards
Report comment to moderator  
Reply With Quote
Unread 01/04/21, 02:05 AM  
amuridee
 
amuridee's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 57
Uploads: 7
Clock Request

Hi,

Love this addons, its work perfectly
May I ask, how to change time format from 12 hours to 24 hours?
And can I have a request for add the Tamriel time too on this addons as well?

Thank you
Report comment to moderator  
Reply With Quote
Unread 05/20/20, 01:20 PM  
hatsune681
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 29
Uploads: 3
Originally Posted by Doombug
The clock is auto-hidden unless I open the menu or my character screen. I want it to be always visible but can't find any settings to turn off the auto-hide.
...
Hi,

I didn't watch the website for a long time...
I'll try to find a different way : is there any way to check if an addon is active ? I have to find the answer in the hope of it being yes and then to not hide the clock if case these addons (a string table for example) are loaded. Maybe there is a way to hide the map when the world map is active but not a "fake" world map.
I won't make any promise but I'll try.

regards
Report comment to moderator  
Reply With Quote
Unread 04/29/20, 02:38 AM  
Doombug

Forum posts: 2
File comments: 10
Uploads: 0
The clock is auto-hidden unless I open the menu or my character screen. I want it to be always visible but can't find any settings to turn off the auto-hide.

EDIT
I fixed it myself. Since this auto hides when the world map is open and my minimap is simply a small world map open at all times the clock was hidden at all times lol. I just went into the .lua and changed true to false.

local oldOnShow = ZO_WorldMap_OnShow
function ZO_WorldMap_OnShow()
MiniClockW:SetHidden(true) <--- false
oldOnShow(self)
end

While this wouldn't be ideal for everyone, maybe a toggle for the auto-hide in the addon menu could be added for those who use minimaps.
Last edited by Doombug : 04/29/20 at 02:56 AM.
Report comment to moderator  
Reply With Quote
Unread 10/27/19, 04:57 AM  
hatsune681
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 29
Uploads: 3
Originally Posted by Mladen90

@Author: You should preview the changes before making an update
Hi, sorry for being late, in fact I was looking for a way to remove the /mcxx commands, found it (ZO_FormatClockTime()) ,
changed the code locally but didn't upload it as I'm also looking for a way to change the font as I want to have 2 looks : the same as latency and the same as world map clock.

I'll upload a 4.1 version without /mc commands, the one I'm using now.
Report comment to moderator  
Reply With Quote
Unread 10/26/19, 02:58 PM  
Mladen90
 
Mladen90's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 76
Uploads: 6
UPDATE

Version: 5.100029
Adding Lock for Mini Clock
Updating width depending on Hour format (12 Hour format has different width)
Updating slash commands ("/mc" -> "/mc_")
Adding slash command /mc_tl and /mc_info

@Author: You should preview the changes before making an update
Last edited by Mladen90 : 10/26/19 at 02:58 PM.
Report comment to moderator  
Reply With Quote
Unread 03/11/18, 09:53 PM  
WfD Temp Account

Forum posts: 0
File comments: 34
Uploads: 0
Update

XML-based OnUpdates are bad news. Very bad news. It means that the OnUpdate can fire before lua functions exist. Addon authors should never use XML OnUpdates, only RegisterForUpdate, zo_callLater, or just calling the function from within itself according to the coder's preference.

In fact, we can already see evidence of this directly below! That is an XML OnUpdate error. They tweaked me out when I was writing BugCatcher as they're the most useless of errors. I was almost tempted to just hide them.

What I've done in the updated code is simply switched from the XML OnUpdate to RegisterForUpdate.
Report comment to moderator  
Reply With Quote
Unread 03/15/17, 12:12 AM  
wearestarrdust

Forum posts: 0
File comments: 9
Uploads: 0
Error today:

MiniClockW_Update:2: function expected instead of nil
stack traceback:
MiniClockW_Update:2: in function '(main chunk)'
Report comment to moderator  
Reply With Quote
Unread 09/16/15, 10:00 AM  
CaptainBlagbird
 
CaptainBlagbird's Avatar
AddOn Author - Click to view AddOns

Forum posts: 53
File comments: 177
Uploads: 23
Awesome add-on!

The background looks a bit cut off though and it can't be moved out of the screen as much as the performance panel.

I took a look at the xml, if you change it like this

diff Code:
  1. --- MiniClock.xml   Tue Sep 15 20:05:48 2015
  2. +++ MiniClock_new.xml   Wed Sep 16 15:54:36 2015
  3. @@ -1,12 +1,13 @@
  4.  <GuiXml>
  5.      <Controls>
  6.     <TopLevelControl name="MiniClockW" mouseEnabled="true" movable="true" clampedToScreen="true">
  7. -       <Dimensions x="80" y="64" />
  8. +       <Dimensions x="100" y="64" />
  9. +       <ClampedToScreenInsets left="10" top="17" right="-10" bottom="-17" />
  10.         <OnUpdate>updateWidget()</OnUpdate>
  11.         <OnMoveStop>saveWidgetPosition()</OnMoveStop>
  12.         <Controls>
  13. -       <Texture name="MiniClockBG" textureFile="/esoui/art/windows/gamepad/gp_grunge_scalable.dds" alpha="0.8">
  14. -           <TextureCoords left="0" right="0.1" top="0" bottom="1" />
  15. +       <Texture name="MiniClockBG" textureFile="/EsoUI/Art/Performance/StatusMeterMunge.dds">
  16. +           <TextureCoords left="0.18" right="0.8" top="0.38" bottom="0.62" />
  17.             <AnchorFill />
  18.         </Texture>
  19.         <Label name="MiniClockL" font="ZoFontWinH5" color="FFFFFF" wrapMode="TRUNCATE" verticalAlignment="CENTER" horizontalAlignment="CENTER">

it'll look like this:



And it'll be able to be moved just the right amount out of the screen edge.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: