@hytopia.com/examples 1.0.19 → 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.
@@ -2824,7 +2824,7 @@ window.ItemTooltips = (function() {
2824
2824
 
2825
2825
  body.mobile .dialogue-content * {
2826
2826
  overflow-y: scroll;
2827
- touch-action: pan-y !important;
2827
+
2828
2828
  }
2829
2829
 
2830
2830
  body.mobile .dialogue-message {
@@ -2832,6 +2832,7 @@ window.ItemTooltips = (function() {
2832
2832
  font-size: 11px;
2833
2833
  margin-bottom: 8px;
2834
2834
  border-radius: 4px;
2835
+ touch-action: pan-y;
2835
2836
  }
2836
2837
 
2837
2838
  body.mobile .dialogue-option {
@@ -2844,6 +2845,33 @@ window.ItemTooltips = (function() {
2844
2845
  width: 14px;
2845
2846
  height: 14px;
2846
2847
  }
2848
+
2849
+ /* Override global touch-action: none for dialogue interactions */
2850
+ body.mobile .dialogue-option,
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 {
2863
+ touch-action: manipulation !important;
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
+ }
2847
2875
  </style>
2848
2876
 
2849
2877
  <!-- Included from: ./menus/quests.html -->
@@ -3761,7 +3789,6 @@ window.ItemTooltips = (function() {
3761
3789
  }
3762
3790
 
3763
3791
  body.mobile .quests-list * {
3764
- touch-action: pan-y !important;
3765
3792
  overflow-y: scroll;
3766
3793
  }
3767
3794
 
@@ -3790,7 +3817,6 @@ window.ItemTooltips = (function() {
3790
3817
  }
3791
3818
 
3792
3819
  body.mobile .quests-details-content * {
3793
- touch-action: pan-y !important;
3794
3820
  overflow-y: scroll;
3795
3821
  }
3796
3822
 
@@ -3929,6 +3955,27 @@ window.ItemTooltips = (function() {
3929
3955
  transform: translateX(-50%) !important;
3930
3956
  }
3931
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
+
3932
3979
 
3933
3980
  </style>
3934
3981
 
@@ -422,7 +422,7 @@
422
422
 
423
423
  body.mobile .dialogue-content * {
424
424
  overflow-y: scroll;
425
- touch-action: pan-y !important;
425
+
426
426
  }
427
427
 
428
428
  body.mobile .dialogue-message {
@@ -430,6 +430,7 @@
430
430
  font-size: 11px;
431
431
  margin-bottom: 8px;
432
432
  border-radius: 4px;
433
+ touch-action: pan-y;
433
434
  }
434
435
 
435
436
  body.mobile .dialogue-option {
@@ -442,4 +443,31 @@
442
443
  width: 14px;
443
444
  height: 14px;
444
445
  }
446
+
447
+ /* Override global touch-action: none for dialogue interactions */
448
+ body.mobile .dialogue-option,
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) {
466
+ touch-action: manipulation !important;
467
+ }
468
+
469
+ /* Allow scrolling only on message content */
470
+ body.mobile .dialogue-message {
471
+ touch-action: pan-y !important;
472
+ }
445
473
  </style>
@@ -912,7 +912,6 @@
912
912
  }
913
913
 
914
914
  body.mobile .quests-list * {
915
- touch-action: pan-y !important;
916
915
  overflow-y: scroll;
917
916
  }
918
917
 
@@ -941,7 +940,6 @@
941
940
  }
942
941
 
943
942
  body.mobile .quests-details-content * {
944
- touch-action: pan-y !important;
945
943
  overflow-y: scroll;
946
944
  }
947
945
 
@@ -1080,5 +1078,26 @@
1080
1078
  transform: translateX(-50%) !important;
1081
1079
  }
1082
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
+
1083
1102
 
1084
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
- // add convo with healer mycelis
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/examples",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",