-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a warning when context is missing.
- Loading branch information
Showing
8 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<script setup lang="ts"> | ||
import { GamecoreNode, | ||
DynamicExpression, | ||
} from '@/scripts/sources/gamecore'; | ||
import BlockLayout from '@/views/gamecore/BlockLayout.vue'; | ||
import EvaluateExpression from '../EvaluateExpression.vue'; | ||
const props = defineProps<{node:GamecoreNode}>() | ||
const node = props.node as unknown as | ||
{ | ||
CompareType:string | ||
CompareValue:DynamicExpression | ||
} | ||
</script> | ||
|
||
<template> | ||
<BlockLayout :source="node"> | ||
|
||
Parameter is | ||
<template v-if="node.CompareType"> | ||
<em>{{ node.CompareType }}</em> to | ||
</template> | ||
<template v-if="node.CompareValue"> | ||
<em><EvaluateExpression :expression="node.CompareValue" /></em> | ||
</template> | ||
|
||
</BlockLayout> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
30 changes: 30 additions & 0 deletions
30
src/views/gamecore/blocks/SetDynamicValueByVariateType.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<script setup lang="ts"> | ||
import { GamecoreNode, | ||
GamecoreTargetType, | ||
} from '@/scripts/sources/gamecore'; | ||
import useHashStore from '@/scripts/hashstore'; | ||
import BlockLayout from '@/views/gamecore/BlockLayout.vue'; | ||
const props = defineProps<{node:GamecoreNode}>() | ||
const node = props.node as unknown as | ||
{ | ||
TargetType?:GamecoreTargetType | ||
DynamicKey:string | ||
VariateType?:string | ||
} | ||
if (node.DynamicKey) | ||
useHashStore().register(node.DynamicKey, true) | ||
</script> | ||
|
||
<template> | ||
<BlockLayout :source="node"> | ||
|
||
Set <em>{{ node.DynamicKey }}</em> | ||
to <em>{{ node.VariateType }}</em> | ||
|
||
</BlockLayout> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<script setup lang="ts"> | ||
import { GamecoreNode, | ||
GamecoreTargetType, evaluateTargetType, | ||
} from '@/scripts/sources/gamecore'; | ||
import BlockLayout from '@/views/gamecore/BlockLayout.vue'; | ||
const props = defineProps<{node:GamecoreNode}>() | ||
const node = props.node as unknown as | ||
{ | ||
TargetType?:GamecoreTargetType | ||
} | ||
</script> | ||
|
||
<template> | ||
<BlockLayout :source="node" :cosmetic="true"> | ||
|
||
Create visual effects at <em>{{ evaluateTargetType(node.TargetType) }}</em> | ||
|
||
</BlockLayout> | ||
</template> | ||
|
||
<style scoped> | ||
</style> |