Update HotReload
This commit is contained in:
@@ -72,6 +72,11 @@ namespace SingularityGroup.HotReload.Editor {
|
||||
}
|
||||
}
|
||||
|
||||
[MenuItem(Translations.MenuItems.OpenBugReport)]
|
||||
internal static void MenuOpenBugReport() {
|
||||
ReportWindowAPI.OpenBugReport();
|
||||
}
|
||||
|
||||
[MenuItem(Translations.MenuItems.RecompileHotReload)]
|
||||
internal static void Recompile() {
|
||||
HotReloadRunTab.Recompile();
|
||||
@@ -141,8 +146,9 @@ namespace SingularityGroup.HotReload.Editor {
|
||||
RenderTabs();
|
||||
}
|
||||
GUILayout.FlexibleSpace(); // GUI below will be rendered on the bottom
|
||||
if (HotReloadWindowStyles.windowScreenHeight > 90)
|
||||
if (HotReloadWindowStyles.windowScreenHeight > 90) {
|
||||
RenderBottomBar();
|
||||
}
|
||||
}
|
||||
|
||||
void RenderDebug() {
|
||||
@@ -293,6 +299,7 @@ namespace SingularityGroup.HotReload.Editor {
|
||||
var data = new EditorExtraData();
|
||||
data.Add("enjoy_app", false);
|
||||
RequestHelper.RequestEditorEventWithRetry(new Stat(StatSource.Client, StatLevel.Debug, StatFeature.RateApp), data).Forget();
|
||||
ReportWindowAPI.OpenFeedback();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -343,22 +350,20 @@ namespace SingularityGroup.HotReload.Editor {
|
||||
}
|
||||
|
||||
void RenderBottomBarCore() {
|
||||
bool troubleshootingShown = EditorCodePatcher.Started && HotReloadWindowStyles.windowScreenWidth >= 400;
|
||||
bool alertsShown = EditorCodePatcher.Started && HotReloadWindowStyles.windowScreenWidth > Constants.EventFiltersShownHideWidth;
|
||||
bool showEventsButton = !HotReloadRunTab.CanRenderBars(RunTabState) && !RunTabState.starting;
|
||||
bool troubleshootingShown = EditorCodePatcher.Started && HotReloadWindowStyles.windowScreenWidth >= 400 && !showEventsButton;
|
||||
using (new EditorGUILayout.VerticalScope()) {
|
||||
using (new EditorGUILayout.HorizontalScope(HotReloadWindowStyles.FooterStyle)) {
|
||||
if (!troubleshootingShown) {
|
||||
GUILayout.FlexibleSpace();
|
||||
if (alertsShown) {
|
||||
GUILayout.Space(-20);
|
||||
}
|
||||
} else {
|
||||
GUILayout.Space(21);
|
||||
}
|
||||
GUILayout.Space(0);
|
||||
var lastRect = GUILayoutUtility.GetLastRect();
|
||||
// show events button when scrolls are hidden
|
||||
if (!HotReloadRunTab.CanRenderBars(RunTabState) && !RunTabState.starting) {
|
||||
if (showEventsButton) {
|
||||
using (new EditorGUILayout.VerticalScope()) {
|
||||
GUILayout.FlexibleSpace();
|
||||
var icon = HotReloadState.ShowingRedDot ? InvertibleIcon.EventsNew : InvertibleIcon.Events;
|
||||
@@ -377,13 +382,20 @@ namespace SingularityGroup.HotReload.Editor {
|
||||
}
|
||||
}
|
||||
|
||||
GUILayout.FlexibleSpace();
|
||||
if (troubleshootingShown) {
|
||||
GUILayout.FlexibleSpace();
|
||||
using (new EditorGUILayout.VerticalScope()) {
|
||||
GUILayout.FlexibleSpace();
|
||||
OpenURLButton.Render(Translations.Miscellaneous.ButtonTroubleshooting, Constants.TroubleshootingURL);
|
||||
GUILayout.FlexibleSpace();
|
||||
}
|
||||
}
|
||||
if (GUILayout.Button(GUIHelper.GetInvertibleIcon(InvertibleIcon.BugReport), GUILayout.MaxHeight(20), GUILayout.MaxWidth(30))) {
|
||||
ReportWindowAPI.OpenBugReport();
|
||||
}
|
||||
if (!troubleshootingShown) {
|
||||
GUILayout.FlexibleSpace();
|
||||
} else {
|
||||
GUILayout.Space(21);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user