ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun Jun 24, 2018 10:42 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: [v1.3.0+] Wall Clock
PostPosted: Thu May 24, 2018 11:25 pm 
Offline
Sher'Tul Godslayer

Joined: Thu Jan 23, 2003 8:13 pm
Posts: 1534
Location: A shallow water area south of Bree
By request, I've cobbled together a first pass at a simple Wall Clock addon, which adds a clock to the UI (presumably for the benefit of people who play in full-screen mode, which would cover up your computer's normal clock). The clock is a full-fledged interface element that can be moved and resized in the usual manner (via the padlock icon on the toolbar in the lower right corner). The clock's time format is controlled by the game option "UI | Wall clock format".

[I've also made an effort to play nice with the UI positioning preferences, so that if some of your characters have this addon enabled and some don't, the clock position information saved by the former won't choke the latter. That involved a bit of sneakiness. :wink: ]

Now, this is just a quick proof of concept; I don't know how much people are going to want to be able to configure this (I have a sneaking suspicion it's going to be a lot…). And this is probably a viable candidate for eventual future merging into ZOmnibus and ZOmnibus Lite.

_________________
"Blessed are the yeeks, for they shall inherit Arda..."


Top
 Profile  
 
 Post subject: Re: [v1.3.0+] Wall Clock
PostPosted: Fri May 25, 2018 2:27 am 
Offline
Halfling

Joined: Sat Sep 11, 2010 12:23 pm
Posts: 86
It works great! Thank you very much. :D


Top
 Profile  
 
 Post subject: Re: [v1.3.0+] Wall Clock
PostPosted: Fri May 25, 2018 7:34 pm 
Offline
Higher

Joined: Mon Aug 20, 2012 10:57 am
Posts: 53
Any chance this for Classic UI? It can be in the empty area, lower left just above the UI icons.


Top
 Profile  
 
 Post subject: Re: [v1.3.0+] Wall Clock
PostPosted: Fri May 25, 2018 11:12 pm 
Offline
Halfling

Joined: Sat Sep 11, 2010 12:23 pm
Posts: 86
I've got this error when I'm trying to learn "Aura of Silence":

Lua Error: /data/resources.lua:89: attempt to index global 'shat' (a nil value)
At [C]:-1 __index
At /data/resources.lua:89 display_resource_bar
At /mod/class/uiset/Minimalist.lua:846 displayResources
At /mod/class/uiset/Minimalist.lua:1986 super_display
At ...dons/wall_clock/superload/mod/class/uiset/Minimalist.lua:68 display
At /mod/class/Game.lua:1856

I've learned other talents just fine, but as soon as I click to skill the talent, the game start flicking and becomes unresponsive.

Edit: I've just created a wyrmic as test and the flickering starts just after character creation.


Top
 Profile  
 
 Post subject: Re: [v1.3.0+] Wall Clock
PostPosted: Sat May 26, 2018 2:17 am 
Offline
Sher'Tul Godslayer

Joined: Thu Jan 23, 2003 8:13 pm
Posts: 1534
Location: A shallow water area south of Bree
Laerte wrote:
I've got this error when I'm trying to learn "Aura of Silence":

[…]

I've learned other talents just fine, but as soon as I click to skill the talent, the game start flicking and becomes unresponsive.

Edit: I've just created a wyrmic as test and the flickering starts just after character creation.

[sound F/X: source diving] The code that's choking is the bit that draws the Equilibrium resource bar. And frankly, I don't see how that code was working even before I got anywhere near it; it looks like it's accessing a variable it shouldn't have access to from that point. [sound F/X: further source diving] It looks like the Paradox resource bar would have the same problem.

Anyway, I'm not entirely sure how my change fixed it, but v1a appears to have resolved the problem. We Apologize for the Inconvenience.™ :?

Row wrote:
Any chance this for Classic UI? It can be in the empty area, lower left just above the UI icons.

Possibly; I have significantly less experience modifying the Classic UI. I'll investigate.

_________________
"Blessed are the yeeks, for they shall inherit Arda..."


Top
 Profile  
 
 Post subject: Re: [v1.3.0+] Wall Clock
PostPosted: Sun May 27, 2018 12:00 am 
Offline
Halfling

Joined: Sat Sep 11, 2010 12:23 pm
Posts: 86
The new version works flawlessly, so far.


Last edited by Laerte on Sun May 27, 2018 3:10 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: [v1.3.0+] Wall Clock
PostPosted: Sun May 27, 2018 2:17 am 
Offline
Sher'Tul Godslayer

Joined: Thu Jan 23, 2003 8:13 pm
Posts: 1534
Location: A shallow water area south of Bree
Laerte wrote:
The new version works flawlessly so far.

*whew* :mrgreen:

In the meantime, Classic UI support turned not to be as difficult as I'd feared, so that's going out as v1b. Now, the Classic UI doesn't appear to support moving interface elements around like the Minimalist UI does, so I hope the location Row suggested above (lower left corner, just above the action icons) is acceptable.

_________________
"Blessed are the yeeks, for they shall inherit Arda..."


Top
 Profile  
 
 Post subject: Re: [v1.3.0+] Wall Clock
PostPosted: Sun May 27, 2018 3:12 pm 
Offline
Higher

Joined: Mon Aug 20, 2012 10:57 am
Posts: 53
Attachment:
File comment: This is how it looks like for me. 1920x1080 resolution. Probably align to the right, or center. Also, I prefer the 24 hour format.
1.png
1.png [ 28.28 KiB | Viewed 175 times ]


Top
 Profile  
 
 Post subject: Re: [v1.3.0+] Wall Clock
PostPosted: Tue May 29, 2018 12:59 am 
Offline
Sher'Tul Godslayer

Joined: Thu Jan 23, 2003 8:13 pm
Posts: 1534
Location: A shallow water area south of Bree
Row wrote:
This is how it looks like for me. 1920x1080 resolution. Probably align to the right, or center.

[sound F/X: testing] Hmm, can't reproduce this. Do you have any other video options set, like screen zoom or font scale?

In the meantime, changing the clock position is straightforward enough:
Attachment:
clock-corner.png
clock-corner.png [ 18.11 KiB | Viewed 125 times ]

That's going out as v1b.1

Row wrote:
Also, I prefer the 24 hour format.

That's already configurable via the "UI | Wall clock format" game option.

_________________
"Blessed are the yeeks, for they shall inherit Arda..."


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group