From 670b053ae6296e78f42d30a4e89518244a284f67 Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 29 Jul 2020 15:18:59 -0400 Subject: show what the current body type is when changing it --- npc/functions/barber.txt | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) (limited to 'npc') diff --git a/npc/functions/barber.txt b/npc/functions/barber.txt index 89701510..aee1fb30 100644 --- a/npc/functions/barber.txt +++ b/npc/functions/barber.txt @@ -111,18 +111,25 @@ function script BarberChangeColor { } function script BarberChangeGender { - mesn("Warning"); + mesn("Note"); mes(b(l("Changing your body type will send you back to the character selection screen."))); next(); mes(l("Please select the desired body type:")); menuint( - l("Body type %i", 1), GENDER_HIDDEN, - l("Body type %i", 2), GENDER_FEMALE, - l("Body type %i", 3), GENDER_MALE); + rif(Gender == GENDER_HIDDEN, "► ") + l("Body type %i", 1), GENDER_HIDDEN, + rif(Gender == GENDER_FEMALE, "► ") + l("Body type %i", 2), GENDER_FEMALE, + rif(Gender == GENDER_MALE, "► ") + l("Body type %i", 3), GENDER_MALE); + if (@menuret == Gender) { + return; // don't kick to char selection when not needed + } + + // FIXME: when manaplus supports seamless changing for evol2, use a simple return; + closedialog(); + close2(); Gender = @menuret; - return; + close; } // THIS FUNCTION SHOULD BE USED ONLY AT REBIRTH -- cgit v1.2.3-70-g09d2