The clock of the tab menu (fl_gametime_clock): the game time with the game date below it,
aligned to the right. The Game Time plugin puts it at the right end of the button bar of
the tab menu. It takes no mouse input, so it never gets in the way of the buttons.
A theme can draw the clock itself with the PaintGameTimeClock theme hook, which receives
the panel, its width and its height; get_texts gives it the texts to draw.
Derives from fl_base_panel.
Summary
Methods
GameTime:should_draw_clock says that the clock is hidden or the active theme draws it in its PaintGameTimeClock hook.Methods
Returns the texts of the clock. They are formatted again only when a new game minute has begun or when the player has switched between the 12-hour and the 24-hour clock.
Returns
- String the game time
- String the game date
Makes the clock ignore the mouse and the keyboard.
Draws the game time and the game date, unless GameTime:should_draw_clock says that the
clock is hidden or the active theme draws it in its PaintGameTimeClock hook.
Parameters
- w Number panel width
- h Number panel height