easyDialog vs OnDialogResponse
#1

what is better for dialogs, like what makes code more readable or what is more beneficial?
Reply
#2

Quote:
FeatureOnDialogResponseeasyDialog.inc
Crash ProofNoYes
Named DialogsNoYes
Calling a dialog manuallyNoYes
Custom callback for handlingNoYes
Here are the benefits, which are located in easyDialog's post. This is why easyDialog is more beneficial.

EDIT: Personally though, I use mdialog.
Reply
#3

these are fake ass benefits
this is the only crash proof thingy there
PHP код:
for (new 0strlen(inputtext); l++)
    {
        if (
inputtext[i] == '%')
        {
            
inputtext[i] = '#';
        }
    } 
with this there can be also named dialogs in OnDialogResponse
enum {
DIALOG_LOGIN_PASSWORD
}
Reply
#4

I write all my dialogs with y_inline/y_dialog this way you don't have to worry about saving data outside the scope of your function. When a dialog response is received any variables created in your function are saved automatically. This eliminates the need of using arrays when you need to save a value.
Reply
#5

nice idea
Reply
#6

Basically y_dialogs can be used the same way as easyDialog:
pawn Код:
#define DIALOG:%1(%2) forward dlg_%1(%2);public dlg_%1(%2)
Код:
Dialog_ShowCallback(playerid, using callback dlg_login, DIALOG_STYLE_PASSWORD, "Login", "Type your password below:", "Login", "Leave");
pawn Код:
DIALOG:login(playerid, dialogid, response, listitem, string: inputtext[])
{
    // code..
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)