23.11.2015, 17:45
I have resolve bug, when we have juste one line.
In
You must replace:
by
And i find a solution for resolution problem with certain player.
Put this in the top of include:
In
Replace:
by
And in:
Replace:
by:
So if you want keep orginal dimension you have juste to set define, like that:
In
Код:
static Dialog_ShowList(playerid, info[], page, selected)
Код:
if ((t_iSplitItems % 2) > 0) { t_iSplitItems -= 1; }
Код:
if (t_iSplitItems == 0) { t_iSplitItems -= 1; }
Put this in the top of include:
Код:
#define T_DIALOG_SIZE 2 #define T_DIALOG_DECAL 4.0
Код:
static Dialog_PTDCreate
Код:
PlayerTextDrawLetterSize(playerid, var, lettersizeX, lettersizeY);
Код:
PlayerTextDrawLetterSize(playerid, var, lettersizeX*T_DIALOG_SIZE, lettersizeY*T_DIALOG_SIZE);
Код:
static Dialog_ShowHUDS
Код:
stock static Dialog_ShowHUDS(playerid, title[], button1[], button2[]) { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogTitle], playerid, 173.000000, 121.000000, title, 50, 1, 0.129998, 0.799998, -36, 0, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogTitle]); if (button2[0]) { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonLeft], playerid, 278.000000, 311.000000, button1, 50, 1, 0.129998, 0.799998, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonLeft]); Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonRight], playerid, 348.000000, 311.000000, button2, 50, 1, 0.140000, 0.899999, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonRight]); g_PlayerDialogInfo[playerid][e_pDialogDualButtons] = true; } else { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonCenter], playerid, 317.000000, 311.000000, button1, 50, 1, 0.140000, 0.899999, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonCenter]); g_PlayerDialogInfo[playerid][e_pDialogDualButtons] = false; } }
Код:
stock static Dialog_ShowHUDS(playerid, title[], button1[], button2[]) { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogTitle], playerid, 173.000000, 121.000000-T_DIALOG_DECAL, title, 50, 1, 0.129998, 0.799998, -36, 0, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogTitle]); if (button2[0]) { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonLeft], playerid, 278.000000, 311.000000-T_DIALOG_DECAL, button1, 50, 1, 0.129998, 0.799998, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonLeft]); Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonRight], playerid, 348.000000, 311.000000-T_DIALOG_DECAL, button2, 50, 1, 0.140000, 0.899999, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonRight]); g_PlayerDialogInfo[playerid][e_pDialogDualButtons] = true; } else { Dialog_PTDCreate(g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonCenter], playerid, 317.000000, 311.000000-T_DIALOG_DECAL, button1, 50, 1, 0.140000, 0.899999, -36, 2, 0, 1, 1, 0); PlayerTextDrawShow(playerid, g_PlayerDialogHUDS[playerid][e_txtPlayerDialogButtonCenter]); g_PlayerDialogInfo[playerid][e_pDialogDualButtons] = false; } }
Код:
#define T_DIALOG_SIZE 1 #define T_DIALOG_DECAL 0.0