//////////////// public UIEditModeMenuButton(UITheme theme, ModTagsEditorManager manager, float xCenterOffset, float y) : base(theme, UIEditModeMenuButton.ReadOnlyModeText, UIEditModeMenuButton.ButtonWidth, UIEditModeMenuButton.ButtonHeight, xCenterOffset, //Old value: -98f,172f, y, 0.36f, true) { this.Manager = manager; this.OnMouseOver += (_, __) => { if (this.IsEditMode) { manager.SetInfoText("Submit tags to online database.", Color.White); //MenuContext.InfoDisplay?.SetText( "Submit tags to online database.", Color.White ); } else if (this.IsReadOnlyMode) { manager.SetInfoText("Enable changing current mod's tags.", Color.White); } }; this.OnMouseOut += (_, __) => { manager.SetInfoText("", Color.White); }; this.RecalculatePosition(); }
//////////////// public UIModTagsEditorInterface(UITheme theme, ModTagsEditorManager manager, UIState uiModInfo) : base(theme, manager) { this.InitializeEditorControls(uiModInfo); }