Skip to content

Commit

Permalink
Improve / add some task views.
Browse files Browse the repository at this point in the history
  • Loading branch information
Damnae committed Sep 2, 2023
1 parent 091b720 commit d0301b6
Show file tree
Hide file tree
Showing 7 changed files with 196 additions and 2 deletions.
34 changes: 34 additions & 0 deletions src/views/gamecore/blocks/ByCompareCharacterNumber.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<script setup lang="ts">
import { GamecoreNode,
DynamicExpression,
GamecoreTargetType, evaluateTargetType,
} 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
{
TargetType?:GamecoreTargetType
CompareType:string
CompareNumber:DynamicExpression
}
</script>

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

<em>{{ evaluateTargetType(node.TargetType) }}</em>
character count is
<template v-if="node.CompareType">
<em>{{ node.CompareType }}</em> to
</template>
<template v-if="node.CompareNumber">
<em><EvaluateExpression :expression="node.CompareNumber" /></em>
</template>

</BlockLayout>
</template>

<style scoped>
</style>
39 changes: 39 additions & 0 deletions src/views/gamecore/blocks/ByCompareMonsterPhase.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<script setup lang="ts">
import { GamecoreNode,
DynamicExpression,
GamecoreTargetType, evaluateTargetType,
} 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
{
TargetType?:GamecoreTargetType
CompareType:string
CompareValue:DynamicExpression
}
</script>

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

<template v-if="node.TargetType">
<em>{{ evaluateTargetType(node.TargetType) }}</em>'s monster phase is
</template>
<template v-else>
Monster phase is
</template>

<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>
2 changes: 1 addition & 1 deletion src/views/gamecore/blocks/ModifySPNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<template v-if="node.AddValue">
Add <em><EvaluateExpression :expression="node.AddValue" /></em> flat energy
</template>
<template v-if="node.FixedAddValue">
<template v-else-if="node.FixedAddValue">
Add <em><EvaluateExpression :expression="node.FixedAddValue" /></em> flat energy
<span class="minor">(Ignores ER)</span>
</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

Set <em>{{ node.DynamicKey }}</em>

to <em><EvaluateExpression :expression="node.Multiplier" /></em>x of
to <em><EvaluateExpression :expression="node.Multiplier" /></em>× of
<RouterLink v-if="node.ModifierName" :to="createModifierRoute(node.ModifierName)">
<em>{{ node.ModifierName }}</em>'s
</RouterLink>
Expand Down
54 changes: 54 additions & 0 deletions src/views/gamecore/blocks/SetEnergyBarState.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<script setup lang="ts">
import { GamecoreNode,
GamecoreTargetType, evaluateTargetType,
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
{
TargetType?:GamecoreTargetType
Active?:string
BarType?:number
CurrentState?:string
CD?:DynamicExpression
ActiveCount?:DynamicExpression
CurrentCount?:DynamicExpression
MaxCount?:DynamicExpression
}
</script>

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

Update
<template v-if="node.TargetType">
<em>{{ evaluateTargetType(node.TargetType) }}</em>'s
</template>
power bar;

<span v-if="node.Active || node.CurrentState">
State: <em>{{node.Active }}</em> / <em>{{node.CurrentState }}</em>
</span>
<span v-if="node.BarType">
Type: <em>{{node.BarType }}</em>
</span>
<span v-if="node.CD">
Cooldown: <em><EvaluateExpression :expression="node.CD" /></em>
</span>
<span v-if="node.ActiveCount">
Active Count: <em><EvaluateExpression :expression="node.ActiveCount" /></em>
/ <em><EvaluateExpression :expression="node.MaxCount" /></em>
</span>
<span v-if="node.CurrentCount">
Count: <em><EvaluateExpression :expression="node.CurrentCount" /></em>
/ <em><EvaluateExpression :expression="node.MaxCount" /></em>
</span>

</BlockLayout>
</template>

<style scoped>
</style>
40 changes: 40 additions & 0 deletions src/views/gamecore/blocks/ShowAttackTime.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<script setup lang="ts">
import { GamecoreNode,
GamecoreTargetType, evaluateTargetType,
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
{
TargetType?:GamecoreTargetType
BaseAttackTime?:DynamicExpression
EnhancedAttackTime?:DynamicExpression
IsShow?:boolean
}
</script>

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

{{ node.IsShow ? 'Show' : 'Hide' }} attack time
<template v-if="node.TargetType">
for <em>{{ evaluateTargetType(node.TargetType) }}</em>
</template>

as
<template v-if="node.BaseAttackTime">
Base: <em><EvaluateExpression :expression="node.BaseAttackTime" /></em>
</template>
<template v-if="node.EnhancedAttackTime">
<template v-if="node.BaseAttackTime">+</template>
Enhanced: <em><EvaluateExpression :expression="node.EnhancedAttackTime" /></em>
</template>

</BlockLayout>
</template>

<style scoped>
</style>
27 changes: 27 additions & 0 deletions src/views/gamecore/blocks/TriggerEnergyBarEffect.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<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">

Trigger
<template v-if="node.TargetType">
<em>{{ evaluateTargetType(node.TargetType) }}</em>'s
</template>
power bar visual effect

</BlockLayout>
</template>

<style scoped>
</style>

0 comments on commit d0301b6

Please sign in to comment.