2021-06-12 04:38:16 +00:00
|
|
|
<template>
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
<div v-if="mark">
|
|
|
|
<div v-if="mark === true" class="mark star"></div>
|
|
|
|
<img v-else class="mark" :src="mark" />
|
|
|
|
</div>
|
2021-06-12 04:38:16 +00:00
|
|
|
</template>
|
|
|
|
|
2022-01-14 04:25:47 +00:00
|
|
|
<script setup lang="ts">
|
|
|
|
defineProps<{ mark: boolean | string | undefined }>();
|
2021-06-12 04:38:16 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.mark {
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
position: absolute;
|
|
|
|
left: -25px;
|
|
|
|
top: -10px;
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
z-index: 1;
|
|
|
|
pointer-events: none;
|
2021-06-12 04:38:16 +00:00
|
|
|
margin-left: 0.9em;
|
|
|
|
margin-right: 0.9em;
|
|
|
|
margin-bottom: 1.2em;
|
|
|
|
border-right: 0.3em solid transparent;
|
|
|
|
border-bottom: 0.7em solid transparent;
|
|
|
|
border-left: 0.3em solid transparent;
|
|
|
|
font-size: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.star {
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
left: -10px;
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
margin-left: 0.9em;
|
|
|
|
margin-right: 0.9em;
|
|
|
|
margin-bottom: 1.2em;
|
|
|
|
border-right: 0.3em solid transparent;
|
|
|
|
border-bottom: 0.7em solid #ffcc00;
|
|
|
|
border-left: 0.3em solid transparent;
|
|
|
|
font-size: 10px;
|
|
|
|
pointer-events: none;
|
2021-06-12 04:38:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.star::before,
|
|
|
|
.star::after {
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
content: "";
|
|
|
|
width: 0;
|
|
|
|
height: 0;
|
|
|
|
position: absolute;
|
|
|
|
top: 0.6em;
|
|
|
|
left: -1em;
|
|
|
|
border-right: 1em solid transparent;
|
|
|
|
border-bottom: 0.7em solid #ffcc00;
|
|
|
|
border-left: 1em solid transparent;
|
|
|
|
transform: rotate(-35deg);
|
2021-06-12 04:38:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.star::after {
|
First pass at typescript support
Oh man did this end up requiring a *ton* of other work as well.
There's still a few typing issues I still can't quite work out,
and others I'd like to improve when I have time. In fact, this version
doesn't even really work, it has a stack overflow error caused by
a tooltip for some reason have a tree inside it, which in turn has
another tooltip, etc. There's also 17 errors that I *really* feel like
shouldn't be there, but they are, and 113 warnings - mostly using !
to assert that things are non-null. Lots of work left to do, to sum up.
The reason I'm committing this now is because I really need to get to
work on my game jam, and since it won't use a tree or really many of
TMT-X's features, I can get away with using a broken engine :)
2021-08-17 04:30:54 +00:00
|
|
|
transform: rotate(35deg);
|
2021-06-12 04:38:16 +00:00
|
|
|
}
|
|
|
|
</style>
|