Class StardewAccessIntegration
Definition
Namespace: StardewUI.ModIntegration
Assembly: StardewUI.dll
Manages Stardew Access (shoaib.stardewaccess) integration
Inheritance
Object ⇦ StardewAccessIntegration
Members
Methods
| Name | Description |
|---|---|
| Initialize(IModHelper) | Initialize lookup anything integration |
| MakeScreenReadDelegated(Func<string, string>, Int32) | Make a ScreenReadableData with a particular text delegate. |
| MakeScreenReadTranslated(string, Func<string, Object>, Int32) | Make a ScreenReadableData using translated text from Stardew Access |
| SayHoveredMenuElement(ViewChild) | Say the currently hovered menu element using SayMenuElement(IScreenReadable, Boolean) |
Details
Methods
Initialize(IModHelper)
Initialize lookup anything integration
Parameters
helper IModHelper
MakeScreenReadDelegated(Func<string, string>, int)
Make a ScreenReadableData with a particular text delegate.
public static StardewUI.ModIntegration.ScreenReadableData MakeScreenReadDelegated(Func<string, string> textDelegate, int precedence);
Parameters
textDelegate Func<string, string>
Text delegate used to modify the inner text
precedence Int32
Returns
MakeScreenReadTranslated(string, Func<string, Object>, int)
Make a ScreenReadableData using translated text from Stardew Access
public static StardewUI.ModIntegration.ScreenReadableData MakeScreenReadTranslated(string translationKey, Func<string, System.Object> getTokens, int precedence);
Parameters
translationKey string
Stardew Access translation key
getTokens Func<string, Object>
Delegate that takes a string and returns translation tokens
precedence Int32
Returns
SayHoveredMenuElement(ViewChild)
Say the currently hovered menu element using SayMenuElement(IScreenReadable, Boolean)
Parameters
path ViewChild
Sequence of all elements, and their relative positions, that the mouse coordinates are currently within.