From 689e91a425e08fd2e8a05f8d5df2d4f30eeb2f83 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 21 Jul 2019 21:31:33 +0200 Subject: [PATCH] Adjust font for delete message to match original --- SourceX/DiabloUI/dialogs.cpp | 6 ------ SourceX/DiabloUI/selyesno.cpp | 10 +++++----- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/SourceX/DiabloUI/dialogs.cpp b/SourceX/DiabloUI/dialogs.cpp index 6c9ac120d..879570bc5 100644 --- a/SourceX/DiabloUI/dialogs.cpp +++ b/SourceX/DiabloUI/dialogs.cpp @@ -28,12 +28,6 @@ UI_Item SELOK_DIALOG[] = { { { 230, 390, 180, 35 }, UI_LIST, UIS_CENTER, 0, "OK" }, }; -UI_Item SELYESNO_DIALOG[] = { - { { 120, 210, 400, 168 } }, // Question text - { { 230, 390, 180, 35 }, UI_LIST, UIS_CENTER, 0, "Yes" }, - { { 230, 426, 180, 35 }, UI_LIST, UIS_CENTER, 0, "No" }, -}; - UI_Item SPAWNERR_DIALOG[] = { { { 140, 199, 400, 177 }, UI_TEXT, 0, 0, "The Rogue and Sorcerer are only available in the full retail version of Diablo. For ordering information call (800) 953-SNOW." }, { { 230, 407, 180, 43 }, UI_BUTTON, 0, 0, "OK" }, diff --git a/SourceX/DiabloUI/selyesno.cpp b/SourceX/DiabloUI/selyesno.cpp index 209098aa7..ab6e8abba 100644 --- a/SourceX/DiabloUI/selyesno.cpp +++ b/SourceX/DiabloUI/selyesno.cpp @@ -12,10 +12,10 @@ BOOL(*selyesno_gfnRemove) char selyesno_confirmationMessage[256]; char selyesno_title[32]; -UI_Item DEL_SELYESNO_DIALOG[] = { +UI_Item SELYESNO_DIALOG[] = { { { 0, 0, 640, 480 }, UI_IMAGE, 0, 0, NULL, &ArtBackground }, { { 24, 161, 590, 35 }, UI_TEXT, UIS_CENTER | UIS_BIG, 0, selyesno_title }, - { { 100, 230, 280, 270 }, UI_TEXT, UIS_BIG, 0, selyesno_confirmationMessage }, + { { 120, 236, 280, 168 }, UI_TEXT, UIS_MED, 0, selyesno_confirmationMessage }, { { 230, 390, 180, 35 }, UI_LIST, UIS_CENTER | UIS_BIG | UIS_GOLD, 0, "Yes" }, { { 230, 426, 180, 35 }, UI_LIST, UIS_CENTER | UIS_BIG | UIS_GOLD, 1, "No" }, }; @@ -55,9 +55,9 @@ BOOL UiSelHeroDelYesNoDialog( } sprintf(selyesno_confirmationMessage, "Are you sure you want to delete the character \"%s\"?", selyesno_heroInfo.name); - WordWrap(&DEL_SELYESNO_DIALOG[2]); + WordWrap(&SELYESNO_DIALOG[2]); - UiInitList(0, 1, NULL, selyesno_Select, selyesno_Esc, DEL_SELYESNO_DIALOG, size(DEL_SELYESNO_DIALOG), false, NULL); + UiInitList(0, 1, NULL, selyesno_Select, selyesno_Esc, SELYESNO_DIALOG, size(SELYESNO_DIALOG), false, NULL); // forcing the default selection to be "No", // remove this code to be consistent with @@ -69,7 +69,7 @@ BOOL UiSelHeroDelYesNoDialog( selyesno_endMenu = false; while (!selyesno_endMenu) { - UiRenderItems(DEL_SELYESNO_DIALOG, size(DEL_SELYESNO_DIALOG)); + UiRenderItems(SELYESNO_DIALOG, size(SELYESNO_DIALOG)); UiRender(); }