Fix blank mission results panel; record Workshop 0.0.127
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -54,8 +54,18 @@ modded class ERR_GameMode
|
||||
{
|
||||
MenuBase menu = GetGame().GetMenuManager().GetTopMenu(); if (!menu) return;
|
||||
TextWidget text = TextWidget.Cast(menu.GetRootWidget().FindAnyWidget("RoundStatistics"));
|
||||
foreach (string widgetName : {"Base_ContentHolder", "ERR_RoundResults", "ResultFrame", "GameOver_State", "StatisticsScroll", "RoundStatistics"})
|
||||
{
|
||||
Widget measured = menu.GetRootWidget().FindAnyWidget(widgetName);
|
||||
if (!measured) continue;
|
||||
float width, height, x, y;
|
||||
measured.GetScreenSize(width, height); measured.GetScreenPos(x, y);
|
||||
PrintFormat("ERR RESULT GEOMETRY: %1 x=%2 y=%3 width=%4 height=%5 visible=%6 opacity=%7", widgetName, x, y, width, height, measured.IsVisible(), measured.GetOpacity());
|
||||
if (!ERR_CommunityCheck(width > 0 && height > 0, widgetName + " has positive rendered dimensions")) return;
|
||||
}
|
||||
if (!ERR_CommunityCheck(text && text.IsVisible() && text.GetText() == ERR_RoundSummary() && text.GetText().Contains("All reporting servers: 7 wins | 3 failures | 70% win rate"), "open TEST_OUTCOME screen refreshes after late community result")) return;
|
||||
Print("ERR STATS UI READY: community TEST_OUTCOME screen");
|
||||
JsonSaveContext ready = new JsonSaveContext(); ready.WriteValue("ready", true); ready.SaveToFile("$profile:results-ready.json");
|
||||
System.MakeScreenshot("$logs:community-TEST_OUTCOME");
|
||||
m_ERRCommunityTestStage = 3; m_ERRCommunityTestWait = GetWorld().GetWorldTime() + 5000; return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user