Coder Social home page Coder Social logo

nexiustailer / alternative-dialogs Goto Github PK

View Code? Open in Web Editor NEW
13.0 7.0 5.0 39 KB

Dialogs with a new design

Home Page: https://pawn.wiki/index.php?/topic/29973-alternative-dialogs/

Pawn 100.00%
altdialogs dialogs textdraw textdraws include inc samp sa-mp pawno pawn

alternative-dialogs's People

Contributors

nexiustailer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

alternative-dialogs's Issues

Issue w/ long lists

I noticed an issue that only happens with long list-type td dialogs. Clicking the "scroll down" button on the bottom right works; but clicking scroll back up does not.

Long Dialogs and "ESC" not detected

Hello!,
I'm using your include for DIALOG_STYLE_LIST formatted dialogs and it is very good!.
Anyway I noticed 2 issues, I don't know if it's a conflict with my gamemode or an include issue.

  1. When I press "ESC" and close an alt-dialog OnAltDialogReponse callback doesn't detect the "!response", it is only detected by pressing button "x" and BUTTON2 (right button) in the alt-dialog;

  2. Dialogs with "info" like this (multiple string to one string, long string), are not displaying correctly (some list_lines are missing):

new stringas[1000];
new stringass[1200];
format(string, sizeof(string),"string");
if(MOTO(var)){
if(PLAYER_INFO[playerid][pVip] == 1) format(stringass,sizeof(stringass),"%s\n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s",stringas, contador,GetWeaponNameEx(EspacioBaul[var][contador]));
if(PLAYER_INFO[playerid][pVip] >= 2) format(stringass,sizeof(stringass),"%s\n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s\n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s",stringas, contador,GetWeaponNameEx(EspacioBaul[var][contador]),contador+1,GetWeaponNameEx(EspacioBaul[var][contador+1]));
if(PLAYER_INFO[playerid][pVip] > 0)  ShowPlayerDialogEx(playerid, 26839, DIALOG_STYLE_LIST, "Maletero", stringass, "Sacar", "Salir");
}else{
if(counter == 2) format(stringas, sizeof(stringas), "Lugar {63B8FF}%d{FFFFFF}: %s \n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s\nLugar {63B8FF}%d{FFFFFF}: %s \n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s",contador,GetWeaponNameEx(EspacioBaul[var][contador]),contador+1,GetWeaponNameEx(EspacioBaul[var][contador+1]), contador+2,GetWeaponNameEx(EspacioBaul[var][contador+2]),contador+3,GetWeaponNameEx(EspacioBaul[var][contador+3])), contador += 4;
            
if(counter == 3) format(stringas, sizeof(stringas), "Lugar {63B8FF}%d{FFFFFF}: %s \n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s\nLugar {63B8FF}%d{FFFFFF}: %s \n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s\nLugar {63B8FF}%d{FFFFFF}: %s \n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s",contador,GetWeaponNameEx(EspacioBaul[var][contador]),contador+1,GetWeaponNameEx(EspacioBaul[var][contador+1]),contador+2,GetWeaponNameEx(EspacioBaul[var][contador+2]),contador+3,GetWeaponNameEx(EspacioBaul[var][contador+3]),contador+4,GetWeaponNameEx(EspacioBaul[var][contador+4]),contador+5,GetWeaponNameEx(EspacioBaul[var][contador+5])), contador += 6;
if(counter == 4) format(stringas, sizeof(stringas), "Lugar {63B8FF}%d{FFFFFF}: %s \n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s\nLugar {63B8FF}%d{FFFFFF}: %s \n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s\nLugar {63B8FF}%d{FFFFFF}: %s \n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s\nLugar {63B8FF}%d{FFFFFF}: %s \n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s",contador,GetWeaponNameEx(EspacioBaul[var][contador]),contador+1,GetWeaponNameEx(EspacioBaul[var][contador+1]),contador+2,GetWeaponNameEx(EspacioBaul[var][contador+2]),contador+3,GetWeaponNameEx(EspacioBaul[var][contador+3]),contador+4,GetWeaponNameEx(EspacioBaul[var][contador+4]),contador+5,GetWeaponNameEx(EspacioBaul[var][contador+5]),contador+6,GetWeaponNameEx(EspacioBaul[var][contador+6]),contador+7,GetWeaponNameEx(EspacioBaul[var][contador+7])), contador += 8;
if(PLAYER_INFO[playerid][pVip] == 0 && counter != 0) ShowPlayerDialogEx(playerid, 26839, DIALOG_STYLE_LIST, "Maletero", stringas, "Sacar", "Salir");

if(PLAYER_INFO[playerid][pVip] == 1) format(stringass,sizeof(stringass),"%s\n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s",stringas, contador,GetWeaponNameEx(EspacioBaul[var][contador]));
if(PLAYER_INFO[playerid][pVip] >= 2) format(stringass,sizeof(stringass),"%s\n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s\n{FFFFFF}Lugar {63B8FF}%d{FFFFFF}: %s",stringas, contador,GetWeaponNameEx(EspacioBaul[var][contador]),contador+1,GetWeaponNameEx(EspacioBaul[var][contador+1]));
if(PLAYER_INFO[playerid][pVip] > 0 && counter != 0)  ShowPlayerDialogEx(playerid, 26839, DIALOG_STYLE_LIST, "Maletero", stringass, "Sacar", "Salir");
}

Dialog with missing items ScreenShot: https://ibb.co/7KGjpJq

Sorry for my bad english.
Best regards and thanks for your time!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.