samp.directory
← Scripts et bibliothèques

shierru/Dialog-Include

📄Simple library add-on over standard dialogs.

Bibliothèque★ 0mis à jour oct. 2024MPL-2.0Pawnsampctl
Ouvrir sur GitHub

Installer avec sampctl

sampctl package install shierru/Dialog-Include

Lance ceci dans le dossier de ton projet. sampctl télécharge le paquet et ce dont il dépend.

L’essayer dans le compilateur Pawn →

Ajoute ses fichiers include, avec les bibliothèques dont il dépend, au compilateur Pawn de ton navigateur, prêts à être inclus dans un script.

Dépend de 3 paquets

README.md

Dialog-Include

This repository contains the code for the Dialog library.

Installation

Simple installation method:

sampctl package install Dialog-Include

You can then incorporate it into your game mode/script:

#include <Dialog-Include\dialog>

Functions

Syntax
Dialog_Show(playerid, func[])
Parameters
NameInfo
playeridplayer ID
funcThe name of the dialog to show to the player
Returns

Always returns true.

Remarks

Shows the player a pre-created template for a dialog (DialogCreate:).

Syntax
Dialog_Open(playerid, func[], style, caption[], body[], button1[], button2[])
Parameters
NameInfo
playeridplayer ID
funcThe name of the dialog to show to the player
styleThe style of the dialog
titleThe title at the top of the dialog
bodyThe text to display in the main dialog
button1The text on the left button
button2The text on the right button
Returns

Always returns the execution value of the ShowPlayerDialog function.

Remarks

Shows dialog to the player.

Syntax
Dialog_Close(playerid)
Parameters
NameInfo
playeridplayer ID
Returns

Depending on the presence of the HidePlayerDialog function, it returns either the result of executing the first function, or the result of ShowPlayerDialog.

Remarks

Closes the dialog shown to the player in case the player has it open.

Syntax
Dialog_IsOpen(playerid, func[] = "")
Parameters
NameInfo
playeridplayer ID
funcThe name of dialog
Remarks

Checks if the player has any dialog open, or (depending on the optional parameter) checks if the player has any dialog open.

Contributing

Pull requests are welcome.

dialoggta-san-andreasopen-mppawnscript

Cette page est construite à partir de ce que GitHub publie sur le dépôt. samp.directory n’héberge pas le code. Signaler un problème avec cette fiche

shierru/Dialog-Include : Bibliothèque SA-MP | samp.directory