Quantcast
Download
(3 Kb)
Download
Updated: 06/23/20 09:37 AM
Pictures
File Info
Compatibility:
Greymoor (6.0.5)
Updated:06/23/20 09:37 AM
Created:09/15/15 04:56 PM
Monthly downloads:872
Total downloads:32,699
Favorites:49
MD5:
6.0.5
Mini Clock  Popular! (More than 5000 hits)
Version: 6.100031
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.
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
5.100031
3kB
hatsune681
05/27/20 04:55 AM
5.100030
3kB
hatsune681
02/24/20 06:37 PM


Post A Reply Comment Options
Unread 05/20/20, 01:20 PM  
hatsune681
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 17
Uploads: 2
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: 17
Uploads: 2
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: 49
Uploads: 2
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: 176
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.
__________________
My Addons: Quest Map, Helmet Toggle, Sieged Keeps, Target Whisper, ... | Also available on GitHub
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: