mirror of
https://github.com/Kugelschieber/breach.git
synced 2026-01-18 20:10:25 +00:00
Hightlight active row/column, show error when field cannot be selected.
This commit is contained in:
@@ -14,8 +14,20 @@
|
||||
const game = inject("game") as Ref<Game>;
|
||||
const remainingMilliseconds = ref(game.value.remainingMilliseconds);
|
||||
const timeoutMilliseconds = computed(() => game.value.timeoutMilliseconds);
|
||||
const progress = computed(() => remainingMilliseconds.value/timeoutMilliseconds.value*100);
|
||||
const countdown = computed(() => (remainingMilliseconds.value/1000).toFixed(2));
|
||||
const progress = computed(() => {
|
||||
if(remainingMilliseconds.value > 0) {
|
||||
return remainingMilliseconds.value/timeoutMilliseconds.value*100;
|
||||
}
|
||||
|
||||
return 0;
|
||||
});
|
||||
const countdown = computed(() => {
|
||||
if(remainingMilliseconds.value > 0) {
|
||||
return (remainingMilliseconds.value/1000).toFixed(2);
|
||||
}
|
||||
|
||||
return "0.00";
|
||||
});
|
||||
|
||||
const updateTime = () => {
|
||||
remainingMilliseconds.value = game.value.remainingMilliseconds;
|
||||
|
||||
Reference in New Issue
Block a user