Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2af445
commit a4491a1
Showing
5 changed files
with
315 additions
and
10 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
gamemodes/modules/PBP/Config/callbacks/OnDialogResponse.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,36 @@ | |||
/*! | |||
* PBP/Config/callbacks/OnDialogResponse.inc | |||
* | |||
* OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) | |||
* | |||
> Priority: 0 | |||
*/ | |||
|
|||
{ | |||
switch (dialogid) { | |||
case this.DIALOG_CONFIG_MAIN: { | |||
if (response == 1) { | |||
this.ShowEditorDialog(playerid, listitem); | |||
} | |||
} | |||
|
|||
case this.DIALOG_CONFIG_CATEGORY: { | |||
if (response == 1) { | |||
this.ShowEditorDialog(playerid, _, listitem); | |||
} else { | |||
this.ShowEditorDialog(playerid); | |||
} | |||
} | |||
|
|||
case this.DIALOG_CONFIG_EDITOR: { | |||
if (response == 1) { | |||
if (!isnull(inputtext)) | |||
this.SetValueFromString(GetPVarInt(playerid, #this.InEntry), inputtext); | |||
} | |||
|
|||
DeletePVar(playerid, #this.InEntry); | |||
|
|||
this.ShowEditorDialog(playerid, GetPVarInt(playerid, #this.InModule) | 0x80000000); | |||
} | |||
} | |||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters