fix: make choice options the only clickable area in dialogue choices
This commit is contained in:
1 parent
2494a44e4a
commit
be4dcd4cf9
8 files changed
+112
-29
No files matched your search
+9
-2
@@ -696,6 +696,13 @@ namespace ZL
|
||||
int my = static_cast<int>((float)event.motion.y / Environment::height * Environment::projectionHeight);
|
||||
handleMotion(ZL::UiManager::MOUSE_FINGER_ID, mx, my);
|
||||
|
||||
if (dialogueSystem.blocksGameplayInput()) {
|
||||
dialogueSystem.handlePointerMoved(
|
||||
static_cast<float>(mx),
|
||||
Environment::projectionHeight - static_cast<float>(my)
|
||||
);
|
||||
}
|
||||
|
||||
if (rightMouseDown) {
|
||||
int dx = event.motion.x - lastMouseX;
|
||||
int dy = event.motion.y - lastMouseY;
|
||||
@@ -732,13 +739,13 @@ namespace ZL
|
||||
if (event.type == SDL_KEYDOWN && event.key.repeat == 0) {
|
||||
switch (event.key.keysym.sym) {
|
||||
case SDLK_f:
|
||||
dialogueSystem.startDialogue("test_cutscene_pan_dialogue_silent");
|
||||
dialogueSystem.startDialogue("test_choice_dialogue");
|
||||
break;
|
||||
|
||||
case SDLK_e:
|
||||
dialogueSystem.startDialogue("test_cutscene_pan_dialogue");
|
||||
break;
|
||||
|
||||
|
||||
case SDLK_RETURN:
|
||||
|
||||
default:
|
||||
|
||||
Reference in new issue
Block a user