You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added UIMenuItem.OnInput(UIMenu, Common.MenuControls) method that handles input events from the parent menu when selected.
Added UIMenuItem.OnMouseInput(UIMenu, RectangleF, PointF, MouseInput) method that handles mouse input events from the parent menu when selected.
Added UIMenuItem.TextStyle property.
Added public setter to UIMenuItem.RightLabel property.
Added UIMenuItem.RightLabelStyle property.
Added public setter to UIMenuItem.LeftBadge property.
Added public setter to UIMenuItem.RightBadge property.
Added UIMenuItem.BadgeInfo class that allows to create custom badges.
Added UIMenuItem.LeftBadgeInfo property.
Added UIMenuItem.RightBadgeInfo property.
Added new UIMenuItem.BadgeStyles: CardSuitClubs, CardSuitDiamonds, CardSuitHearts, CardSuitSpades, Art, Blank (for indenting item contents without drawing a badge) and Custom (for user created BadgeInfos).
Added UIMenuScrollerItem base class with UIMenuListScrollerItem<T> and UIMenuNumericScrollerItem<T> derived classes. Replacement for UIMenuListItem.
Added UIMenuScrollerSliderBar class that allows to display a UIMenuScrollerItem with a slider bar instead of left/right arrows.
Added UIMenuCheckboxItem.Toggle(UIMenu) method to allow toggling a checkbox from user code.
Added UIMenuCheckboxItem.Style property and UIMenuCheckboxStyle enum allowing to display a cross instead of a tick in checkboxes.
Now the setter of UIMenuItem.RightBadge property can be used with UIMenuCheckboxItems and UIMenuListItems.
Added TabView.IsAnyPauseMenuVisible which allows to detect if any pause menu TabView is currently open, including pause menus from different plugins.
Added TabView.InstructionalButtons property which returns the InstructionalButtons instance of the TabView.
Added TabView.PauseGame property.
Added TabInteractiveListItem.BackingMenu property which returns the UIMenu used internally by the tab item.
Instructional Buttons
Added InstructionalButtonGroup that allows displaying multiple buttons in a single slot.
Added IInstructionalButtonSlot interface. Implemented by InstructionalButton and InstructionalButtonGroup.
Added IInstructionalButtonSlot.BindedControl which binds a GameControl to a slot, allowing the user to click it which simulates pressing the control (InstructionalButtons.MouseButtonsEnabled needs to be set to true).
Added InstructionalButtonId struct which wraps the different kind of buttons: from a string (t_, T_ or w_ based on length), from a GameControl and from a raw button ID (b_).
Added HudColorExtensions class including GetName, GetColor and SetColor extension methods for HudColor.
Added TextStyle structure.
Added TextFont enum.
Added TextJustification enum.
Added an overload to BigMessageHandler.ShowMpMessageLarge that allows to specify the subtitle string.
Added BaseCollection<T>.Add(params T[])/AddRange(IEnumerable<T>) allowing to add multiple items at once (e.g. with MenuPool, TimerBarPool or InstructionalButtonsCollection).
Fixes
UIMenu
Improved performance.
Fixed UIMenu display issues in large resolution setups.
Fixed crashes when UIMenu has no items.
Fixed slight flicker when changing menus (i.e. opening a child menu or going back to the parent menu).
Timer Bars
Fixed timer bars from different TimerBarPools overlapping, including timer bars from different plugins.
Fixed timer bars overlapping the game native timer bars.
Pause Menu
Fixed background post-fx remaining active when unloading a plugin with a TabView open.
Fixed TabSubmenuItem and its selected child TabItem receiving input at the same time.
Fixed TabInteractiveListItem not properly supporting all UIMenuItems.
Fixed drawing position of TabView.Photo.
Misc
Fixed BigMessageHandler.ShowMpMessageLarge showing a hardcoded string as the subtitle.
Fixed BigMessageHandler.ShowColoredShard using textColor and bgColor parameters incorrectly, textColor was used as the background color and bgColor as the text color.
Fixed game recording stopping when opening a menu.
Breaking changes
UIMenu
Marked UIMenu.Title property as obsolete in favor of UIMenu.TitleText.
Marked UIMenu.Subtitle property as obsolete in favor of UIMenu.SubtitleText.
Removed UIMenuItem._text and UIMenuItem._labelText protected fields in favor of UIMenuItem.TextStyle and UIMenuItem.RightLabelTextStyle.
Removed UIMenuItem._rectangle, UIMenuItem._selectedSprite, UIMenuItem._badgeLeft and UIMenuItem._badgeRight protected fields.
Marked UIMenu.HoldTimeBeforeScroll as obsolete in favor of UIMenu.SetKeyAcceleration().
Marked UIMenu.IsControlBeingPressed method as obsolete.
Marked UIMenu.HasControlJustBeenPressed method as obsolete.
Marked UIMenu.HasControlJustBeenReleased method as obsolete.