🍁
FF12 Lua Loader
  • Home
  • Getting Started
    • Resources
  • General
    • Functions
      • Get Lib Version
      • Check Min Version
  • Events
    • Types
    • Events
      • Exit
      • On Init Done
      • On Flip
      • On Map Jump
      • On Save Load
      • On Open File
    • Functions
      • Sleep
      • Get Clock
      • Execute After Ms
      • Register Event Sync
      • Unregister Event Sync
      • Register Event Async
      • Unregister Event Async
      • Register Save Handler
        • Callback
      • Unregister Save Handler
      • Register Load Handler
        • Callback
      • Unregister Load Handler
      • Create Flag
      • Set Flag
      • Get Flag
      • Delete Flag
      • Delete All Flags
      • Wait Flag
      • Register Flag Callback
      • Unregister Flag Callback
      • Get My Flags
      • Get All Flags
  • Memory / Save
    • Tables
      • Arg
    • Functions
      • Create Trampoline
      • Remove Trampoline
      • Create Hook
      • Remove Hook
      • Alloc Exe
      • Dealloc Exe
      • Alloc
      • Dealloc
      • Load File
      • Parse
      • Assemble
      • Execute
      • Execute A
      • Read S8
      • Read U8
      • Read S16
      • Read U16
      • Read S32
      • Read U32
      • Read S64
      • Read U64
      • Read Float
      • Read Double
      • Read Array
      • Write S8
      • Write U8
      • Write S16
      • Write U16
      • Write S32
      • Write U32
      • Write S64
      • Write U64
      • Write Float
      • Write Double
      • Write Array
      • Get Symbol
      • Register Symbol
      • Register Global Symbol
      • Unregister Symbol
      • Unregister Global Symbol
      • Unregister All Symbols
      • Unregister All Local Symbols
      • Unregister All Global Symbols
  • Message
    • Functions
      • Convert
      • Print
      • Print W
      • Close
  • Config
    • Functions
      • Save Json
      • Load Json
    • Tables
      • Path
  • Input
    • Tables
      • Key
    • Functions
      • Get Key Pressed
Powered by GitBook
On this page
  • Signatures
  • Description
  • Arguments
  • Notes
  1. Message
  2. Functions

Print W

Signatures

bool printw(string text)
bool printw(string text, u32 duration)
bool printw(string text, u32 duration, bool forceClose)

Description

Synchronously queues a converted text to be displayed in a system window in the top-left corner of the screen for a given duration.

The flow of execution is paused until the function finishes, which can cause delays if the function takes a long time.

Returns whether the operation was successful (true) or not (false).

If a window is open and the new message does not fit within it, the window will be closed and reopened.

Arguments

Text

The converted text that will be displayed.

Duration

The duration, in milliseconds, for which the text will be displayed.

If set to 0 or omitted (same as 0), the message will display for 2 seconds but will be removed early if another message is added to the queue.

Force Close

If set to true, forces the window to close and reopen even if the text fits within the window and reopening is unnecessary.

Notes

There are a total of 8 windows (0 -> 7) that can be used to simultaneously display several dialogues, shapes (textures), etc. at the same time.

This function uses window identifier 7 to display text.

PreviousPrintNextClose

Last updated 5 months ago