Skip to content

Conversation

@TheBoogle
Copy link
Contributor

Unless I am going crazy, according to the documentation and from my own testing, this would be the correct types for SetDragStyleFunction

image

@github-actions
Copy link

🛡️ Generated Files Protection

❌ This PR modifies files in include/generated/ which are auto-generated and should NEVER be manually edited.

What you need to do:

  1. Remove the changes to files in include/generated/
  2. Edit include/customDefinitions.d.ts instead to make your changes
  3. These files will be automatically regenerated after your PR is merged

This check will automatically pass once the generated files are removed from your PR.

SetDragStyleFunction(this: UIDragDetector, callback: (inputPosition: UDim2) => UDim2 | void): void;
SetDragStyleFunction(
this: UIDragDetector,
callback: (inputPosition: Vector2) => LuaTuple<[UDim2, number]> | UDim2 | void,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The space of the return values and the relativity of the motion are determined by the DragSpace and DragRelativity properties, unless overridden by returning a specified Enum.UIDragDetectorDragRelativity and Enum.UIDragDetectorDragSpace as the third and fourth return values.

Based on the docs, sounds like we need the tuple to possible supply an optional Enum.UIDragDetectorDragRelativity and Enum.UIDragDetectorDragSpace.

Is this rotation value optional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants