Skip to content

Commit

Permalink
Show dynamic variables context.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damnae committed Oct 19, 2023
1 parent 57e277a commit 226aa34
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/gamecore/tasks/ByCompareDynamicValue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{
TargetType?:GamecoreTargetType
DynamicKey:string
ContextScope:string
CompareType:string
CompareValue:DynamicExpression
}
Expand All @@ -24,7 +25,7 @@
<template v-if="node.TargetType">
<em><EvaluateTargetType :target="node.TargetType" /></em>'s
</template>
<em>{{ node.DynamicKey }}</em> is
<em v-if="node.ContextScope">{{ node.ContextScope }}.</em><em>{{ node.DynamicKey }}</em> is
<em>{{ node.CompareType }}</em> to
<em><EvaluateExpression :expression="node.CompareValue" /></em>

Expand Down
3 changes: 2 additions & 1 deletion src/gamecore/tasks/DefineDynamicValue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@
{
TargetType?:GamecoreTargetType
DynamicKey:string
ContextScope:string
ResetValue?:DynamicExpression
}
</script>

<template>
<BlockLayout :source="node">

Define <em>{{ node.DynamicKey }}</em>
Define <em v-if="node.ContextScope">{{ node.ContextScope }}.</em><em>{{ node.DynamicKey }}</em>
to <em><EvaluateExpression :expression="node.ResetValue" /></em>

</BlockLayout>
Expand Down
3 changes: 2 additions & 1 deletion src/gamecore/tasks/SetDynamicValue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
const node = props.node as unknown as
{
DynamicKey:string
ContextScope:string
Value?:DynamicExpression
}
Expand All @@ -20,7 +21,7 @@
<template>
<BlockLayout :source="node">

Set <em>{{ node.DynamicKey }}</em>
Set <em v-if="node.ContextScope">{{ node.ContextScope }}.</em><em>{{ node.DynamicKey }}</em>
to <em><EvaluateExpression :expression="node.Value" /></em>

</BlockLayout>
Expand Down
3 changes: 2 additions & 1 deletion src/gamecore/tasks/SetDynamicValueByAddValue.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
{
TargetType?:GamecoreTargetType
Key:string
ContextScope:string
AddValue:DynamicExpression
Min:DynamicExpression
Max:DynamicExpression
Expand All @@ -28,7 +29,7 @@
<template v-if="node.TargetType">
<em><EvaluateTargetType :target="node.TargetType" /></em>'s
</template>
<em>{{ node.Key }}</em>,
<em v-if="node.ContextScope">{{ node.ContextScope }}.</em><em>{{ node.Key }}</em>,
clamp between <em><EvaluateExpression :expression="node.Min" /></em>
and <em><EvaluateExpression :expression="node.Max" /></em>

Expand Down

0 comments on commit 226aa34

Please sign in to comment.