namespace LemonUI.Scaleform { /// /// Loading screen like the transition between story mode and online. /// public class LoadingScreen : BaseScaleform { #region Public Properties /// /// The title of the loading screen. /// public string Title { get; set; } /// /// The subtitle of the loading screen. /// public string Subtitle { get; set; } /// /// The description of the loading screen. /// public string Description { get; set; } /// /// The Texture Dictionary (TXD) where the texture is loaded. /// public string Dictionary { get; private set; } /// /// The texture in the dictionary. /// public string Texture { get; private set; } #endregion #region Constructors /// /// Creates a new GTA Online like loading screen with no image. /// /// The title of the screen. /// The subtitle of the screen. /// The description of the screen. public LoadingScreen(string title, string subtitle, string description) : this(title, subtitle, description, string.Empty, string.Empty) { } /// /// Creates a new GTA Online like loading screen with a custom texture. /// /// The title of the screen. /// The subtitle of the screen. /// The description of the screen. /// The dictionary where the texture is located. /// The texture to use on the right. public LoadingScreen(string title, string subtitle, string description, string dictionary, string texture) : base("GTAV_ONLINE") { // Tell the Scaleform to use the online loading screen CallFunction("HIDE_ONLINE_LOGO"); CallFunction("SETUP_BIGFEED", false); // Save the values Title = title; Subtitle = subtitle; Description = description; Dictionary = dictionary; Texture = texture; // And send them back to the scaleform Update(); } #endregion #region Public Functions /// /// Changes the texture shown on the loading screen. /// /// The Texture Dictionary or TXD. /// The Texture name. public void ChangeTexture(string dictionary, string texture) { Dictionary = dictionary; Texture = texture; Update(); } /// /// Updates the Title, Description and Image of the loading screen. /// public override void Update() { CallFunction("SET_BIGFEED_INFO", "footerStr", Description, 0, Dictionary, Texture, Subtitle, "urlDeprecated", Title); } #endregion } }