|
|
|
@ -166,13 +166,11 @@ int EQUIP_ITEM_MENU_CURSOR=0; |
|
|
|
|
int EQUIP_ITEM_MENU_OFFSET=0; |
|
|
|
|
std::vector<int> EQUIP_ITEM_MENU_CONTENTS={}; |
|
|
|
|
std::vector<std::pair<Item*,int>> SHOP_MENU_CONTENTS={}; |
|
|
|
|
std::array<int,16> MESSAGE_BOX_DIALOG_ANSWERS={-1}; |
|
|
|
|
int MESSAGE_BOX_DIALOG_ANSWER=-1; |
|
|
|
|
int MESSAGE_BOX_DIALOG_CHOICES_MADE=0; |
|
|
|
|
std::vector<std::string> MESSAGE_BOX_CHOICE_LIST={}; |
|
|
|
|
bool waitingForChoice=false; |
|
|
|
|
int MESSAGE_BOX_DIALOG_CHOICE_CURSOR=0; |
|
|
|
|
bool insideChoice=false; |
|
|
|
|
bool selectionMade=false; |
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
[Choice1,Choice2,Choice3] |
|
|
|
@ -192,10 +190,6 @@ void DisplayMessageBox(std::string targetT) { |
|
|
|
|
messageBoxMarker=0; |
|
|
|
|
messageBoxStartMarker=0; |
|
|
|
|
messageBoxStopMarker=0; |
|
|
|
|
for (int i=0;i<MESSAGE_BOX_DIALOG_ANSWERS.size();i++) { |
|
|
|
|
MESSAGE_BOX_DIALOG_ANSWERS[i]=-1; |
|
|
|
|
} |
|
|
|
|
MESSAGE_BOX_DIALOG_CHOICES_MADE=0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool MOUSE_PRESSED_DOWN=false,MOUSE_DOWN=false,MOUSE_RELEASED=false; //TODO Implement Mouse things.
|
|
|
|
@ -701,10 +695,6 @@ This is a test message that lets us trigger straight from a cutscene! Cool!)"), |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
messageBoxLoad=false; |
|
|
|
|
for (int i=0;i<16;i++) { |
|
|
|
|
MESSAGE_BOX_DIALOG_ANSWERS[i]=-1; |
|
|
|
|
} |
|
|
|
|
MESSAGE_BOX_DIALOG_CHOICES_MADE=0; |
|
|
|
|
} else { |
|
|
|
|
if (MessageBoxAllowedToAdvance()) { |
|
|
|
|
if (messageBoxFinalText[messageBoxMarker]=='[') { |
|
|
|
@ -800,9 +790,12 @@ This is a test message that lets us trigger straight from a cutscene! Cool!)"), |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (ACTIONKEYPRESSED) { |
|
|
|
|
MESSAGE_BOX_DIALOG_ANSWERS[MESSAGE_BOX_DIALOG_CHOICES_MADE++]=MESSAGE_BOX_DIALOG_CHOICE_CURSOR; |
|
|
|
|
MESSAGE_BOX_DIALOG_ANSWER=MESSAGE_BOX_DIALOG_CHOICE_CURSOR; |
|
|
|
|
waitingForChoice=false; |
|
|
|
|
std::string responseText=""; |
|
|
|
|
while (messageBoxFinalText[messageBoxMarker]=='\t') { |
|
|
|
|
messageBoxMarker++; |
|
|
|
|
} |
|
|
|
|
if (messageBoxFinalText[messageBoxMarker]=='>') { |
|
|
|
|
messageBoxMarker++; |
|
|
|
|
int counter=0; |
|
|
|
|