MrxGuiLtiPrecacheLayout
Module: mrxguiltiprecachelayout.lua
Overview
The mrxguiltiprecachelayout.lua file defines a static LocalWidgetList table describing a single full-screen (0,0)-(640,480) GUI widget named LTI_precache, centered both horizontally and vertically, with no children. It is a layout-data file, not a behavior module β it contains no functions of its own. It imports MrxGuiLTIPrecache and wires that moduleβs functions in as the widgetβs event handlers.
Inheritance
- Inherits from:
none β base/utility module(noinherit(...)call in the file) - Imports:
MrxGuiLTIPrecache
Instance pattern
Not applicable. This file has no Create/OnActivate/Awake/tInstance β itβs a single static table (LocalWidgetList[1]) built once at load time and never instantiated per-object.
Functions
There are no functions defined in this file (top-level function or Name = function). The two handlers referenced in LocalWidgetList[1].EventHandlers β MrxGuiLTIPrecache.HandleStateChangeEvent and MrxGuiLTIPrecache._Initialize β are looked up from the imported MrxGuiLTIPrecache module and are not defined here. (Note: if import fails/is unavailable, the file falls back to MrxGuiLTIPrecache = {}, an empty table β in that fallback case both EventHandlers entries would be nil.)
Events
No Event.* calls appear in this file. The tableβs EventHandlers field maps two GUI-system event names (used by the wider GUI framework that consumes LocalWidgetList, not by this file directly) to MrxGuiLTIPrecache functions:
GuiGameStateChangeβMrxGuiLTIPrecache.HandleStateChangeEventGuiInitializationβMrxGuiLTIPrecache._Initialize
Notes for modders
- This is pure layout data (position, anchor, color/translucency levels, event-handler wiring) for one widget β thereβs no logic to modify here beyond the table fields themselves.
- Actual behavior lives in
MrxGuiLTIPrecacheβ read that page for whatHandleStateChangeEventand_Initializedo (and note it documents three real bugs in_Initializeβs neighborhood). - The
"LTI_precache"widget is full-screen640Γ480, opaque white (TranslucencyLevel = 255), center-anchored,visible = 1β a rendered full-screen widget._Initializeattaches a fullscreenFlashWidgetloading the"LTI_precache"SWF as its actual visible content. - This layout is loaded by
MrxGuiShellBootstrapas"MrxGuiLTIPrecacheLayout"during the precache-screen transition.