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

Added an option to display toasts at the provided x/y #1

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

togfoxy
Copy link

@togfoxy togfoxy commented Sep 24, 2022

I wanted to use lovely toasts inside my game tutorial trainer and this means displaying toasts at all x/y co-ordinates so here we go.

Can invoke by providing optional x/y co-ordinates when invoking toasts:

lovelyToasts.show("Hold on!",nil ,nil , 500, 500)

lovelyToasts.show(stringvalue, [duration],[position],[x],[y])

Backwards compatible. X/Y values will ignore position values.

@togfoxy
Copy link
Author

togfoxy commented Sep 24, 2022

Removed a print statement that shouldn't be there.

@togfoxy
Copy link
Author

togfoxy commented Sep 24, 2022

Updated instructions on how to invoke the optional x/y positioning.

@togfoxy
Copy link
Author

togfoxy commented Sep 25, 2022

Formatted the readme correctly

@togfoxy
Copy link
Author

togfoxy commented Sep 25, 2022

I realised the styles weren't documented. Now they are. :)

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.

None yet

1 participant