Messagebox alignment messing up on different resolutions
#1

It appears that messageboxes mess up on smaller screen resolutions.

Good example:

1920x1080:

As you can see, the dialog displays without any issues.

1280x720

Same dialog on a smaller resolution.

The alignment totally messes up, but only on smaller screen resolutions. This seems to happen with almost every msgbox, but not for listboxes.

Code:
pawn Код:
stock ShowPlayerAchievementMenu(playerid, menu)
{
    new string[128];
    switch(menu)
    {
        case 0:
        {
            // This dialog wasn't shown in the example.
        }
        case 1:
        {
            CMDSString = "";
            format(string, sizeof(string), "[%s] WTF?! Lotto Hax!\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Win The Lotto 5 Times.\n", GetPlayerAchievementCompletion(playerid, "WTFLottoHax"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] No Messages kthx\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Disable PMs For The First Time.\n", GetPlayerAchievementCompletion(playerid, "NoMessageskthx"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] Lazy\t\t\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Enable Auto Login For The First Time.\n", GetPlayerAchievementCompletion(playerid, "Lazy"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] Come To Me\t\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Enable Goto For Other Players For The First Time.\n", GetPlayerAchievementCompletion(playerid, "ComeToMe"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] Millionare\t\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Earn More Than $1,000,000.\n", GetPlayerAchievementCompletion(playerid, "Millionare"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] Time Waster\t\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Play For More Than 1 IRL Day.\n", GetPlayerAchievementCompletion(playerid, "TimeWaster"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] Spank Me!\t\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Get Slapped For The First Time By An Admin.\n", GetPlayerAchievementCompletion(playerid, "SpankMe"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] Sn1p3r\t\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Kill 50 People In Sniper DM With Your Sniper.\n", GetPlayerAchievementCompletion(playerid, "Sn1p3r"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] Whore\t\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Kill 50 People In Dildo DM With Your Dildo.\n", GetPlayerAchievementCompletion(playerid, "Whore"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] Ninja\t\t\t\t"DC_BLUE"Requirement:"DC_DIALOG" Kill 50 People In Katana DM With Your Katana.\n", GetPlayerAchievementCompletion(playerid, "Ninja"));
            strcat(CMDSString, string);
            format(string, sizeof(string), "[%s] What Is Love? Baby Dont Hurt Me!\t"DC_BLUE"Requirement:"DC_DIALOG" Get Killed 50 Times.\n\n", GetPlayerAchievementCompletion(playerid, "BabyDontHurtMe"));
            strcat(CMDSString, string);
            strcat(CMDSString, "["DC_RED"*"DC_DIALOG" = Not Finished | "DC_GREEN"*"DC_DIALOG" = Completed]. Click "DC_RED"'Previous' "DC_DIALOG"To View More Achievements.");
            ShowPlayerDialog(playerid, ACHIEVEMENTSMENU+1, DIALOG_STYLE_MSGBOX, ""DC_GREEN"Achievement Status "DC_RED"[Page 2/2]", CMDSString, "Previous", "Exit");
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)