TimerDialogDisplay

Parameters
whichDialog timerdialog

target dialog.

display boolean

true to show, false to hide.

comment

Show/hide the dialog for all players.

A timer dialog is displayed above a multiboard in the top-right corner.

note

Multiple timer dialogues stack from right to left, for example: "Timer dialog 2 12:34:56" "Timer dialog 1 02:10:42".

note

If the timer has not been started yet, it will not show any time: "Remaining ".

note

A dialog display can be toggled per-player by using it inside a GetLocalPlayer condition.

bug

(v1.32.10) The second timerdialog's width and position is calculated and displayed incorrectly in ultra-wide mode (beyond 1800x920, 1.95 ratio).

bug

(v1.32.10) If you toggle visibility of one dialog but not the other in a single frame, the first dialog will appear below the second one.

    tdialog = CreateTimerDialog(CreateTimer())
    TimerDialogSetTitle(tdialog, "Timer1 Dialog __ 1")
    TimerDialogDisplay(tdialog, true)
    tdialog2 = CreateTimerDialog(CreateTimer())
    TimerDialogSetTitle(tdialog2, "Timer2 Dialog")
    TimerDialogDisplay(tdialog2, true)
    -- Correct up to this point.
    -- This is buggy:
    TimerDialogDisplay(tdialog, false)
    TimerDialogDisplay(tdialog2, true)
    TimerDialogDisplay(tdialog, true)
    -- Now tdialog will appear beneath tdialog2.

Workarounds:

  1. Hide every dialog, then show those that you need.
  2. Introduce a sleep-wait before turning dialog display on.
note

See: IsTimerDialogDisplayed.

patch

1.00

Source
common.j
return type
nothing
Source code
native TimerDialogDisplay               takes timerdialog whichDialog, boolean display returns nothing