Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Assistant GM doesn't see the exact time issue. #146

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/uipanel.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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)
Expand Down Expand Up @@ -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 () {
Expand Down
Loading