@vylos/core 0.4.5 → 0.5.0
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.
package/package.json
CHANGED
|
@@ -10,20 +10,23 @@
|
|
|
10
10
|
<template v-if="!engineState.uiHidden">
|
|
11
11
|
<!-- z-15–25: HUD (hidden during dialogue/choices) -->
|
|
12
12
|
<template v-if="!hideHud">
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<
|
|
16
|
-
<
|
|
13
|
+
<component :is="drawableOverlayComponent" />
|
|
14
|
+
<component :is="locationOverlayComponent" />
|
|
15
|
+
<component :is="actionOverlayComponent" />
|
|
16
|
+
<component :is="topBarComponent" />
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
19
|
<!-- z-30: Dialogue box -->
|
|
20
|
-
<
|
|
20
|
+
<component :is="dialogueBoxComponent" />
|
|
21
21
|
|
|
22
22
|
<!-- z-35: Choice panel (inside DialogueBox z-range) -->
|
|
23
|
-
<
|
|
23
|
+
<component :is="choicePanelComponent" />
|
|
24
24
|
|
|
25
25
|
<!-- z-40: Custom overlay -->
|
|
26
26
|
<CustomOverlay />
|
|
27
|
+
|
|
28
|
+
<!-- z-45: Project HUD (always visible when UI is shown) -->
|
|
29
|
+
<slot name="hud" />
|
|
27
30
|
</template>
|
|
28
31
|
</div>
|
|
29
32
|
</template>
|
|
@@ -31,16 +34,24 @@
|
|
|
31
34
|
<script setup lang="ts">
|
|
32
35
|
import { computed } from 'vue';
|
|
33
36
|
import { useEngineStateStore } from '../../stores/engineState';
|
|
37
|
+
import { getComponentOverride } from '../../engine/core/EngineFactory';
|
|
34
38
|
import BackgroundLayer from '../core/BackgroundLayer.vue';
|
|
35
39
|
import ForegroundLayer from '../core/ForegroundLayer.vue';
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
40
|
+
import DefaultDrawableOverlay from '../core/DrawableOverlay.vue';
|
|
41
|
+
import DefaultDialogueBox from '../core/DialogueBox.vue';
|
|
42
|
+
import DefaultChoicePanel from '../core/ChoicePanel.vue';
|
|
39
43
|
import CustomOverlay from '../core/CustomOverlay.vue';
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
44
|
+
import DefaultActionOverlay from '../menu/ActionOverlay.vue';
|
|
45
|
+
import DefaultLocationOverlay from '../menu/LocationOverlay.vue';
|
|
46
|
+
import DefaultTopBar from '../menu/TopBar.vue';
|
|
43
47
|
|
|
44
48
|
const engineState = useEngineStateStore();
|
|
45
49
|
const hideHud = computed(() => !!engineState.dialogue || !!engineState.choices);
|
|
50
|
+
|
|
51
|
+
const topBarComponent = computed(() => getComponentOverride('TopBar') ?? DefaultTopBar);
|
|
52
|
+
const actionOverlayComponent = computed(() => getComponentOverride('ActionOverlay') ?? DefaultActionOverlay);
|
|
53
|
+
const locationOverlayComponent = computed(() => getComponentOverride('LocationOverlay') ?? DefaultLocationOverlay);
|
|
54
|
+
const dialogueBoxComponent = computed(() => getComponentOverride('DialogueBox') ?? DefaultDialogueBox);
|
|
55
|
+
const choicePanelComponent = computed(() => getComponentOverride('ChoicePanel') ?? DefaultChoicePanel);
|
|
56
|
+
const drawableOverlayComponent = computed(() => getComponentOverride('DrawableOverlay') ?? DefaultDrawableOverlay);
|
|
46
57
|
</script>
|