CORE/docs/references/Events.md
JeremyStarTM 99703cf03e CORE rewrite (#1)
Reviewed-on: StarOpenSource/core#1

Rewrote CORE and improved the startup process and startup time significantly. The documentation has been beefed up too and is now much better. Existing projects may need major refactoring however.
Co-authored-by: JeremyStarTM <jeremystartm@staropensource.de>
Co-committed-by: JeremyStarTM <jeremystartm@staropensource.de>
2023-08-25 14:34:57 +02:00

1.4 KiB

hide
navigation

Events (/root/CORE/Events)

Just connect a signal to a function and get updates when something happens

Signals

window_title

  • emitted on window title change
  • argument window_title (type String)
  • argument previous_window_title (type String)

window_size

  • emitted on window size change
  • argument update_coordinate (type String, can be X, Y or BOTH)
  • argument window_size (type Vector2i)
  • argument previous_window_size (type Vector2i)

window_pos

  • emitted on window position change
  • argument update_coordinate (type String, can be X, Y or BOTH)
  • argument window_pos (type Vector2i)
  • argument previous_window_pos (type Vector2i)

logger_all

  • emitted on log output
  • argument type (type String, can be "DIAG", "INFO", "WARN" or "ERROR")
  • argument script (type String)
  • argument message (type String)

logger_diag

  • emitted on diagnostic log output
  • argument script (type String)
  • argument message (type String)

logger_info

  • emitted on informational log output
  • argument script (type String)
  • argument message (type String)

logger_warn

  • emitted on warning log output
  • argument script (type String)
  • argument message (type String)

logger_error

  • emitted on error log output
  • argument script (type String)
  • argument message (type String)