Update for latest version of seamless
Notable feature: ModAPI
This commit is contained in:
@@ -113,7 +113,7 @@ namespace SeamlessClient.GUI.Screens
|
||||
m_isTopMostScreen = true;
|
||||
|
||||
object instance = PatchUtils.GetProperty(PatchUtils.MyLoadingPerformance, "Instance").GetValue(null);
|
||||
if(instance != null)
|
||||
if (instance != null)
|
||||
PatchUtils.GetMethod(PatchUtils.MyLoadingPerformance, "StartTiming").Invoke(instance, null);
|
||||
|
||||
//MyLoadingPerformance.Instance.StartTiming();
|
||||
@@ -160,7 +160,7 @@ namespace SeamlessClient.GUI.Screens
|
||||
MySession.LoadingLocalTotalSet = (Action<float>)Delegate.Combine(MySession.LoadingLocalTotalSet, new Action<float>(SetLocalTotal));
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -200,8 +200,8 @@ namespace SeamlessClient.GUI.Screens
|
||||
m_multiTextControl.OriginAlign = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_BOTTOM;
|
||||
m_multiTextControl.TextBoxAlign = MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_BOTTOM;
|
||||
Controls.Add(m_wheel);
|
||||
|
||||
|
||||
|
||||
|
||||
RefreshText();
|
||||
}
|
||||
|
||||
@@ -235,12 +235,12 @@ namespace SeamlessClient.GUI.Screens
|
||||
MySandboxGame.Log.DecreaseIndent();
|
||||
MySandboxGame.Log.WriteLine("MyGuiScreenLoading.LoadContent - END");
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public static string GetRandomBackgroundTexture()
|
||||
{
|
||||
|
||||
|
||||
|
||||
string text = MyUtils.GetRandomInt(MyPerGameSettings.GUI.LoadingScreenIndexRange.X, MyPerGameSettings.GUI.LoadingScreenIndexRange.Y + 1).ToString().PadLeft(3, '0');
|
||||
return "Textures\\GUI\\Screens\\loading_background_" + text + ".dds";
|
||||
@@ -531,9 +531,9 @@ namespace SeamlessClient.GUI.Screens
|
||||
MyGuiManager.GetSafeHeightFullScreenPictureSize(MyGuiConstants.LOADING_BACKGROUND_TEXTURE_REAL_SIZE, out outRect);
|
||||
|
||||
bool isCustom = false;
|
||||
if(LoadingScreenComponent.CustomLoadingTextures.Count != 0)
|
||||
if (LoadingScreenComponent.CustomLoadingTextures.Count != 0)
|
||||
{
|
||||
if(LoadingScreenComponent.CustomLoadingTextures.Count > 1)
|
||||
if (LoadingScreenComponent.CustomLoadingTextures.Count > 1)
|
||||
{
|
||||
if (!backgroundTimer.Enabled)
|
||||
{
|
||||
@@ -567,9 +567,9 @@ namespace SeamlessClient.GUI.Screens
|
||||
|
||||
MyGuiManager.DrawString(m_font, loading, MyGuiConstants.LOADING_PLEASE_WAIT_POSITION, MyGuiSandbox.GetDefaultTextScaleWithLanguage() * 1.1f, new Color(MyGuiConstants.LOADING_PLEASE_WAIT_COLOR * m_transitionAlpha), MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_BOTTOM);
|
||||
MyGuiManager.DrawString(m_font, string.Format("{0}%", m_displayProgress), MyGuiConstants.LOADING_PERCENTAGE_POSITION, MyGuiSandbox.GetDefaultTextScaleWithLanguage() * 1.1f, new Color(MyGuiConstants.LOADING_PLEASE_WAIT_COLOR * m_transitionAlpha), MyGuiDrawAlignEnum.HORISONTAL_CENTER_AND_VERTICAL_BOTTOM);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if (!isCustom && string.IsNullOrEmpty(m_customTextFromConstructor))
|
||||
{
|
||||
string font = m_font;
|
||||
@@ -590,7 +590,7 @@ namespace SeamlessClient.GUI.Screens
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
private void BackgroundTimer_Elapsed(object sender, ElapsedEventArgs e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user