samp.directory
← Skrypty i biblioteki

SDraw/samp-lib-3dmenu

3D selecting menu for SA-MP

Biblioteka★ 6zaktualizowano paź 2020Brak licencjiPawnZarchiwizowane
Otwórz na GitHubie

Autor zarchiwizował to repozytorium, więc nie jest już rozwijane.

To repozytorium nie ma pliku licencji. Jest publiczne do odczytu, ale samo to nie daje pozwolenia na ponowne użycie.

Wypróbuj w kompilatorze Pawn →

Dodaje jej pliki include, razem z bibliotekami, od których zależy, do kompilatora Pawn w twojej przeglądarce, gotowe do dołączenia w skrypcie.

README.md

This library allows you to create new type of menu instead of standart menus or dialogs.

  • Creating of menu for each player.
  • Custom rotaion for menu.
  • Setting params for every box like for object.
  • Auto-calculatting of new lines and box position.

Requirements

Functions

  • Create3DMenu(playerid,Float: x,Float:y,Float:z,Float:rotation,boxes);
    • Creating 3DMenu in position with number of boxes for player.
      • Returns true if menu has been created, or false.
  • SetBoxText(playerid,box,text[],materialsize,fontface[],fontsize,bold,fontcolor,selectcolor,unselectcolor ,textalignment);
    • Set box text, like object material text.
      • Returns true if text has been changed, or false.
  • Select3DMenu(playerid);
    • Start player select menu. Keys - box change: Y,N ; select - Space.
      • Returns true if menu has been selected, or false.
  • CancelSelect3DMenu(playerid);
    • Cancel player's selecting of menu.
      • Returns true if selection has been canceled, or false.
  • Destroy3DMenu(playerid);
    • Destroying of menu.
      • Returns true if menu has been destroyed, or false.

Callbacks

  • OnPlayerChange3DMenuBox(playerid,boxid);
    • This callback is called when player presses MENU3D_KEY_UP or MENU3D_KEY_DOWN on selecting.
      • Note #1: Param boxid is equal ID of choosen box.
  • OnPlayerSelect3DMenuBox(playerid,boxid);
    • This callback is called when player presses MENU3D_KEY_SELECT in selecting mode.
      • Note #1: Param selected is equal ID of selected box.

pawn-languagesa-mp-library

Ta strona jest zbudowana z tego, co GitHub publikuje o repozytorium. samp.directory nie hostuje kodu. Zgłoś problem z tym wpisem

SDraw/samp-lib-3dmenu: Biblioteka SA-MP | samp.directory