Skip to content

Commit

Permalink
Merge pull request #146 from DC23/144-assistant-gm-does-not-see-the-e…
Browse files Browse the repository at this point in the history
…xact-time-when-it-is-hidden-from-players

Fixed Assistant GM doesn't see the exact time issue.
  • Loading branch information
DC23 authored Nov 20, 2024
2 parents 51ccb22 + f935ba3 commit 634c97c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/uipanel.mjs
Original file line number Diff line number Diff line change
@@ -158,7 +158,7 @@ export class UIPanel extends HandlebarsApplicationMixin(ApplicationV2) {
if (UIPanel.#playerSeesNothing) {
context.time = game.i18n.localize('JDTIMEKEEPING.YouHaveNoIdeaOfTheTime')
} else {
if (Helpers.showTimeOfDay) {
if (Helpers.showExactTime) {
context.time = Helpers.toTimeString(this.#time, {
includeDay: true,
i18nFormatter: 'JDTIMEKEEPING.uiTimeOfDay',
@@ -179,7 +179,7 @@ export class UIPanel extends HandlebarsApplicationMixin(ApplicationV2) {
context.dbtime.shifts += 1
context.dbtime.stretches += 1
// make adjustments just to the copy, since the original is used for the graphical display
if (Helpers.showTimeOfDay) context.dbtime.days = null // hide days if they are already shown in time string
if (Helpers.showExactTime) context.dbtime.days = null // hide days if they are already shown in time string
}

if (UIPanel.#showRadialClocks) context.clocks = this.#prepareClocks(dbtime)
@@ -252,7 +252,7 @@ export class UIPanel extends HandlebarsApplicationMixin(ApplicationV2) {
* Has the GM chosen to hide all UI elements from players?
*/
static get #playerSeesNothing () {
return !UIPanel.#showDBTime && !Helpers.showTimeOfDay && !UIPanel.#showRadialClocks
return !UIPanel.#showDBTime && !Helpers.showExactTime && !UIPanel.#showRadialClocks
}

static get #showDBTime () {

0 comments on commit 634c97c

Please sign in to comment.