Module twdll.campaign_ui

Campaign UI singleton accessor for Total War: Attila.

Functions

GetMemoryAddress () Returns the memory address of the CAMPAIGN_UI singleton as a hexadecimal string.
SetMaxSlots (slots) Overrides the maximum number of building slots shown in the settlement panel.
GetMaxSlots () Returns the currently configured max-slot override, or nil if none is set.
ClearMaxSlots () Restores the game default max-slot count (4, or 6 for capitals).


Functions

GetMemoryAddress ()
Returns the memory address of the CAMPAIGN_UI singleton as a hexadecimal string.

Returns:

    string memory address (e.g. "0x12345678"), or nil if not yet initialised
SetMaxSlots (slots)
Overrides the maximum number of building slots shown in the settlement panel. Clamped to 1..20. Applies from the next panel open/refresh onwards. Values below 1 are rejected (no-op). Use ClearMaxSlots to restore the default.

Parameters:

  • slots number max slot count to display

Returns:

    number the applied value, or nil if rejected
GetMaxSlots ()
Returns the currently configured max-slot override, or nil if none is set.

Returns:

    number or nil slots
ClearMaxSlots ()
Restores the game default max-slot count (4, or 6 for capitals).
generated by LDoc 1.5.0