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

Add all required arguments to y_dialog docs #690

Open
wants to merge 1 commit into
base: 5.x
Choose a base branch
from
Open
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
6 changes: 3 additions & 3 deletions YSI_Visual/y_dialog/features.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ inline Inline(pid, did, response, listitem, string:inputtext[])
{
#pragma unused pid, did
}
Dialog_ShowCallback(playerid, using inline Inline, "Title", "Caption", "Button 1");
Dialog_ShowCallback(playerid, using inline Inline, DIALOG_STYLE_MSGBOX, "Title", "Caption", "Button 1");
```

However, to save time, this is also valid:
Expand All @@ -20,7 +20,7 @@ However, to save time, this is also valid:
inline Inline(response, listitem, string:inputtext[])
{
}
Dialog_ShowCallback(playerid, using inline Inline, "Title", "Caption", "Button 1");
Dialog_ShowCallback(playerid, using inline Inline, DIALOG_STYLE_MSGBOX, "Title", "Caption", "Button 1");
```

Note that you must either have ALL the parameters or just those three - you can't mix and match any other combinations. This also won't easily work for `using public` unless you give the type explicitly.
Expand All @@ -29,6 +29,6 @@ Note that you must either have ALL the parameters or just those three - you can'
public Public(response, listitem, string:inputtext[])
{
}
Dialog_ShowCallback(playerid, using public Public<iis>, "Title", "Caption", "Button 1");
Dialog_ShowCallback(playerid, using public Public<iis>, DIALOG_STYLE_MSGBOX, "Title", "Caption", "Button 1");
```