Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BoundActionInfo type. #1319

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion include/customDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ interface ContextActionService extends Instance {
): void;
GetButton(this: ContextActionService, actionName: string): ImageButton | undefined;
GetAllBoundActionInfo(this: ContextActionService): Map<string, BoundActionInfo>;
GetBoundActionInfo(this: ContextActionService, actionName: string): BoundActionInfo;
GetBoundActionInfo(this: ContextActionService, actionName: string): BoundActionInfo | {};
}

interface DataModel extends ServiceProvider<Services> {
Expand Down
13 changes: 13 additions & 0 deletions include/roblox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,21 @@ interface PlayerJoinInfo {
}

interface BoundActionInfo {
/** Describes whether a touch button should be created on TouchEnabled devices */
createTouchButton: boolean;
/** The description of action set by SetDescription */
description?: string;
/** The title of the action set by SetTitle */
title?: string;
/** The image of the action's touch button set by SetImage */
image?: string;
/** The input types passed to BindAction for which this action will trigger */
inputTypes: Array<Enum.KeyCode | Enum.PlayerActions | Enum.UserInputType | string>;
/** Describes the priority level of the action.
* Priority level will still be included even if `BindActionAtPriority` wasn't used - by default it will be 2000.
*/
priorityLevel: number;
/** Describes the index of the action on the stack (increasing) */
stackOrder: number;
}

Expand Down
Loading