Interface ScriptUiHost


public interface ScriptUiHost
The host's handle on a script's UI, passed to ScriptUI.attach(ScriptUiHost) before every frame. A script that draws its own window chrome uses it for its close button. Call it from ScriptUI.render().
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes the script's pop-out window and returns the UI to the host's drawer, as the host's title-bar X does.
    boolean
    True when the UI is in its own pop-out window, false when docked in the host.
  • Method Details

    • close

      void close()
      Closes the script's pop-out window and returns the UI to the host's drawer, as the host's title-bar X does. Does nothing when the UI is docked.
    • poppedOut

      boolean poppedOut()
      True when the UI is in its own pop-out window, false when docked in the host.