Skip to main content

Savingindicator

Based on game build 714014 | Last updated: 2026-03-08

Overview

SavingIndicator is a UI widget that provides visual feedback during world-saving operations. It displays an animation (saving bank) and localized text ("SAVING") to indicate that the game is saving. It extends the base Widget class and manages its visibility, animation playback, and text state manually via StartSave() and EndSave() methods.

Usage example

local owner = TheFrontEnd
local savingIndicator = CreateWidget("SavingIndicator", owner)
savingIndicator:SetOwner(owner)
savingIndicator:StartSave()
-- ... after save completes ...
savingIndicator:EndSave()

Dependencies & tags

Components used: None identified
Tags: None identified

Properties

PropertyTypeDefault ValueDescription
ownerentityThe entity that owns/hosts the widget (typically a UI root).
animUIAnimnil (initialized in constructor)The animation child widget used for the saving graphic.
textTextnil (initialized in constructor)The text child widget showing the "SAVING" message.
_scalenumber0.5Scaling multiplier applied to widget coordinates.

Main functions

SetScale(pos, y, z)

  • Description: Overrides base widget scaling to apply an internal multiplier (_scale) to all axes. Supports both scalar and vector input.
  • Parameters:
    • pos (number or Vector3) — if number, used for X/Y/Z; if Vector3, represents X/Y/Z components.
    • y (number, optional) — Y-axis scale factor. Only used if pos is a number.
    • z (number, optional) — Z-axis scale factor. Only used if pos is a number.
  • Returns: Nothing.

EndSave()

  • Description: Signals the end of the saving process. Hides the "SAVING" text and plays the save_post animation.
  • Parameters: None.
  • Returns: Nothing.

StartSave()

  • Description: Signals the start of the saving process. Shows the entire widget, plays the save_pre animation, schedules the "SAVING" text to appear after 0.5 seconds, and then loops the save_loop animation.
  • Parameters: None.
  • Returns: Nothing.

Events & listeners

None identified