44 lines
1.3 KiB
Plaintext
44 lines
1.3 KiB
Plaintext
if (dialogue_mode) {
|
|
if (text_advance_ready == TEXT_LOADING && !ds_queue_empty(name_test) && !ds_queue_empty(name_test) && !ds_queue_empty(active_test) && !ds_queue_empty(emote_test)) {
|
|
text_advance_ready = TEXT_TYPING;
|
|
actor_left = ds_queue_dequeue(name_test);
|
|
actor_left_emote = ds_queue_dequeue(emote_test);
|
|
actor_right = "";
|
|
if (!ds_queue_empty(name_test) && !ds_queue_empty(emote_test)) {
|
|
actor_right = ds_queue_dequeue(name_test);
|
|
actor_right_emote = ds_queue_dequeue(emote_test);
|
|
}
|
|
texttarget = ds_queue_dequeue(text_test);
|
|
textspew = "";
|
|
spewlength = 1;
|
|
last_active = ds_queue_dequeue(active_test);
|
|
}
|
|
|
|
if (text_advance_ready == TEXT_TYPING ) {
|
|
textspew += string_char_at(texttarget, spewlength);
|
|
spewlength++;
|
|
if (keyboard_check_pressed( ord("Z") ) ) {
|
|
textspew = texttarget;
|
|
keyboard_clear(ord("Z"));
|
|
}
|
|
if (textspew == texttarget) {
|
|
text_advance_ready = TEXT_READY;
|
|
}
|
|
}
|
|
|
|
if (text_advance_ready == TEXT_READY) {
|
|
if (keyboard_check_pressed( ord("Z") ) ) {
|
|
text_advance_ready = TEXT_LOADING;
|
|
if (ds_queue_empty(name_test) || ds_queue_empty(text_test) || ds_queue_empty(active_test) || ds_queue_empty(emote_test)) {
|
|
dialogue_mode = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |