ultrawidify/src/csui/PlayerUiComponent.vue

77 lines
1.4 KiB
Vue
Raw Normal View History

2020-12-15 00:26:19 +01:00
<template>
<div class="uw-hover uv-hover-trigger-region">
TEST CONTENT
</div>
</template>
<script>
import { mapState } from 'vuex';
import Icon from '../common/components/Icon';
export default {
components: {
Icon,
},
data() {
return {
uiVisible: true,
debugData: {
resizer: {},
player: {},
}
2020-12-15 00:26:19 +01:00
};
},
computed: {
...mapState([
'showUi',
'resizerDebugData',
'playerDebugData'
2020-12-15 00:26:19 +01:00
]),
},
watch: {
showUi(visible) {
if (visible !== undefined) {
this.uiVisible = visible;
}
},
resizerDebugData(newData) {
this.debugData.resizer = newData;
},
playerDebugData(newData) {
this.debugData.player = newData;
2020-12-15 00:26:19 +01:00
}
},
created() {
console.log("created!");
console.log("store:", this.$store, this);
},
methods: {
}
}
</script>
<style lang="scss" src="../res/css/uwui-base.scss"></style>
<style lang="scss" scoped>
@import '../res/css/uwui-base.scss';
@import '../res/css/colors.scss';
@import '../res/css/font/overpass.css';
@import '../res/css/font/overpass-mono.css';
@import '../res/css/common.scss';
.uw-ultrawidify-container-root {
.uw-hover {
position: absolute;
top: 20%;
left: 20%;
width: 100px;
height: 100px;
color: #fff;
background-color: #000;
}
.uw-hover:hover {
background-color: #f00;
}
}
</style>