@hytopia.com/examples 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2846,10 +2846,32 @@ window.ItemTooltips = (function() {
|
|
|
2846
2846
|
height: 14px;
|
|
2847
2847
|
}
|
|
2848
2848
|
|
|
2849
|
+
/* Override global touch-action: none for dialogue interactions */
|
|
2849
2850
|
body.mobile .dialogue-option,
|
|
2850
|
-
body.mobile .dialogue-close
|
|
2851
|
+
body.mobile .dialogue-close,
|
|
2852
|
+
body.mobile .dialogue-option *,
|
|
2853
|
+
body.mobile .dialogue-close * {
|
|
2854
|
+
touch-action: manipulation !important;
|
|
2855
|
+
pointer-events: auto !important;
|
|
2856
|
+
}
|
|
2857
|
+
|
|
2858
|
+
/* Ensure dialogue containers allow touch events */
|
|
2859
|
+
body.mobile .dialogue-panel,
|
|
2860
|
+
body.mobile .dialogue-container,
|
|
2861
|
+
body.mobile .dialogue-content,
|
|
2862
|
+
body.mobile .dialogue-options {
|
|
2851
2863
|
touch-action: manipulation !important;
|
|
2852
2864
|
}
|
|
2865
|
+
|
|
2866
|
+
/* Override global mobile touch rules specifically for dialogue */
|
|
2867
|
+
body.mobile .dialogue-panel *:not(.dialogue-message) {
|
|
2868
|
+
touch-action: manipulation !important;
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2871
|
+
/* Allow scrolling only on message content */
|
|
2872
|
+
body.mobile .dialogue-message {
|
|
2873
|
+
touch-action: pan-y !important;
|
|
2874
|
+
}
|
|
2853
2875
|
</style>
|
|
2854
2876
|
|
|
2855
2877
|
<!-- Included from: ./menus/quests.html -->
|
|
@@ -3933,6 +3955,27 @@ window.ItemTooltips = (function() {
|
|
|
3933
3955
|
transform: translateX(-50%) !important;
|
|
3934
3956
|
}
|
|
3935
3957
|
|
|
3958
|
+
/* Override global touch-action: none for quest interactions */
|
|
3959
|
+
body.mobile .quests-close,
|
|
3960
|
+
body.mobile .quests-item {
|
|
3961
|
+
touch-action: manipulation !important;
|
|
3962
|
+
pointer-events: auto !important;
|
|
3963
|
+
}
|
|
3964
|
+
|
|
3965
|
+
/* Ensure quest containers allow touch events */
|
|
3966
|
+
body.mobile .quests-container,
|
|
3967
|
+
body.mobile .quests-sidebar,
|
|
3968
|
+
body.mobile .quests-details-panel,
|
|
3969
|
+
body.mobile .quests-list,
|
|
3970
|
+
body.mobile .quests-section {
|
|
3971
|
+
touch-action: manipulation !important;
|
|
3972
|
+
}
|
|
3973
|
+
|
|
3974
|
+
/* Override global mobile touch rules for interactive quest elements */
|
|
3975
|
+
body.mobile .quests-sidebar *:not(.quests-section-title):not(.quests-empty-section) {
|
|
3976
|
+
touch-action: manipulation !important;
|
|
3977
|
+
}
|
|
3978
|
+
|
|
3936
3979
|
|
|
3937
3980
|
</style>
|
|
3938
3981
|
|
|
@@ -444,8 +444,30 @@
|
|
|
444
444
|
height: 14px;
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
+
/* Override global touch-action: none for dialogue interactions */
|
|
447
448
|
body.mobile .dialogue-option,
|
|
448
|
-
body.mobile .dialogue-close
|
|
449
|
+
body.mobile .dialogue-close,
|
|
450
|
+
body.mobile .dialogue-option *,
|
|
451
|
+
body.mobile .dialogue-close * {
|
|
452
|
+
touch-action: manipulation !important;
|
|
453
|
+
pointer-events: auto !important;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* Ensure dialogue containers allow touch events */
|
|
457
|
+
body.mobile .dialogue-panel,
|
|
458
|
+
body.mobile .dialogue-container,
|
|
459
|
+
body.mobile .dialogue-content,
|
|
460
|
+
body.mobile .dialogue-options {
|
|
461
|
+
touch-action: manipulation !important;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/* Override global mobile touch rules specifically for dialogue */
|
|
465
|
+
body.mobile .dialogue-panel *:not(.dialogue-message) {
|
|
449
466
|
touch-action: manipulation !important;
|
|
450
467
|
}
|
|
468
|
+
|
|
469
|
+
/* Allow scrolling only on message content */
|
|
470
|
+
body.mobile .dialogue-message {
|
|
471
|
+
touch-action: pan-y !important;
|
|
472
|
+
}
|
|
451
473
|
</style>
|
|
@@ -1078,5 +1078,26 @@
|
|
|
1078
1078
|
transform: translateX(-50%) !important;
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
|
+
/* Override global touch-action: none for quest interactions */
|
|
1082
|
+
body.mobile .quests-close,
|
|
1083
|
+
body.mobile .quests-item {
|
|
1084
|
+
touch-action: manipulation !important;
|
|
1085
|
+
pointer-events: auto !important;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/* Ensure quest containers allow touch events */
|
|
1089
|
+
body.mobile .quests-container,
|
|
1090
|
+
body.mobile .quests-sidebar,
|
|
1091
|
+
body.mobile .quests-details-panel,
|
|
1092
|
+
body.mobile .quests-list,
|
|
1093
|
+
body.mobile .quests-section {
|
|
1094
|
+
touch-action: manipulation !important;
|
|
1095
|
+
}
|
|
1096
|
+
|
|
1097
|
+
/* Override global mobile touch rules for interactive quest elements */
|
|
1098
|
+
body.mobile .quests-sidebar *:not(.quests-section-title):not(.quests-empty-section) {
|
|
1099
|
+
touch-action: manipulation !important;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1081
1102
|
|
|
1082
1103
|
</style>
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import BaseQuest, { QuestObjective, QuestNpcDialogueInteraction } from '../BaseQuest';
|
|
2
2
|
import { SkillId } from '../../config';
|
|
3
|
-
|
|
4
3
|
import type GamePlayer from '../../GamePlayer';
|
|
4
|
+
import type GamePlayerEntity from '../../GamePlayerEntity';
|
|
5
5
|
|
|
6
6
|
import { BaseItemPlayerEvent } from '../../items/BaseItem';
|
|
7
7
|
import type { BaseItemPlayerEventPayloads } from '../../items/BaseItem';
|
|
8
8
|
|
|
9
9
|
import BlightedRootItem from '../../items/materials/BlightedRootItem';
|
|
10
|
+
import HealerMycelisEntity from '../../regions/stalkhaven/npcs/HealerMycelisEntity';
|
|
10
11
|
|
|
11
12
|
export default class BlightedHarvestQuest extends BaseQuest {
|
|
12
13
|
static readonly id = 'blighted-harvest';
|
|
@@ -36,7 +37,26 @@ export default class BlightedHarvestQuest extends BaseQuest {
|
|
|
36
37
|
];
|
|
37
38
|
|
|
38
39
|
static readonly dialogueInteractions: QuestNpcDialogueInteraction[] = [
|
|
39
|
-
|
|
40
|
+
{
|
|
41
|
+
npcClass: HealerMycelisEntity,
|
|
42
|
+
dialogueOption: {
|
|
43
|
+
text: 'Scout Morel asked me to bring you these... things. What are they?',
|
|
44
|
+
nextDialogue: {
|
|
45
|
+
text: '[Frontiers Developers]: Well, this is embarrassing.. You reached the end of the v0.1.0 early alpha content! But have no fear, we will release a another big content update next week, with weekly content updates to follow. With the next update, you can come back and talk to Healer Mycelis and progress!',
|
|
46
|
+
options: [
|
|
47
|
+
{
|
|
48
|
+
text: `I see, I'll be back next week for the update!`,
|
|
49
|
+
dismiss: true,
|
|
50
|
+
pureExit: true,
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
enabledForInteractor: (interactor: GamePlayerEntity) => {
|
|
56
|
+
return interactor.gamePlayer.questLog.isQuestActive(this.id) &&
|
|
57
|
+
interactor.gamePlayer.questLog.isQuestObjectiveCompleted(this.id, 'collect-blighted-roots');
|
|
58
|
+
}
|
|
59
|
+
}
|
|
40
60
|
];
|
|
41
61
|
|
|
42
62
|
public static setupForPlayer(gamePlayer: GamePlayer): () => void {
|