Skip to content

Commit

Permalink
refactor: ui stats
Browse files Browse the repository at this point in the history
  • Loading branch information
StonyTV committed Nov 19, 2024
1 parent 5da0703 commit a5440d8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/cards/equipment-slot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ img.equipped-img
left 0
box-shadow: inset 0 0 5px 0 #212121db
border 2px solid #ddd8c9
background #8d8980;
background #8d8980
&.highlighted
box-shadow: inset 0 0 15px 0 #F9A825
border 1px solid #F9A825
Expand Down
2 changes: 1 addition & 1 deletion src/components/cards/item-equipments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const is_dragging_pet = computed(() => {
.item-equipments
position relative
grid-area perso
border 3px solid #ffffff;
border 3px solid #ffffff
background #514a3ccc
border-radius 12px
display flex
Expand Down
15 changes: 3 additions & 12 deletions src/components/game-ui/game-characteristic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</template>

<script setup>
import { ref, inject, onMounted, reactive, computed } from 'vue';
import { ref, inject, reactive, computed } from 'vue';
import { useI18n } from 'vue-i18n';
import { get_max_health, get_total_stat } from '@aresrpg/aresrpg-sdk/stats';
Expand Down Expand Up @@ -193,15 +193,6 @@ async function commit_stats() {
Object.assign(allocated_stats, { ...default_stats });
}
onMounted(() => {
// Mock to test the update of the available points
// context.dispatch('action/character_update', {
// id: selected_character.value.id,
// available_points: selected_character.value.available_points + 5
// })
});
</script>
<style lang="stylus" scoped>
Expand All @@ -221,7 +212,7 @@ onMounted(() => {
.stats
pointer-events: all;
width 350px
border 3px solid #ffffff;
border 3px solid #ffffff
border-radius 12px
display flex
flex-flow column nowrap
Expand Down Expand Up @@ -253,7 +244,7 @@ onMounted(() => {
cursor pointer
&.selected
background-color #514a3ccc
border solid 2px #cccccc;
border solid 2px #cccccc
.container
background #beb998cc
height 100%
Expand Down

0 comments on commit a5440d8

Please sign in to comment.