Skip to content

Commit

Permalink
Make Red Flag detection more accurated
Browse files Browse the repository at this point in the history
  • Loading branch information
LapsTimeOFF committed Sep 3, 2022
1 parent 854c16f commit 5910c83
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions index.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
}
body {
background-color: #444;
overflow: hidden;
}
#menu_content {
margin: 10px;
Expand Down
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ async function checkRCM() {
}

if(messageData.Scope === "Track") {
if(messageData.Flag === "RED") {
$('#digiflag').prop('src', 'gifs/red.gif');
return;
}
sc = false;
vsc = false;
red = false;
Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function createWindow(width:number, height:number, title:string) {
}

app.whenReady().then(() => {
let mainWindow = createWindow(800,600,"F1MV - DigiFlag")
let mainWindow = createWindow(800,600,"F1MV - DigiFlag - v0.0.1-beta10")
mainWindow.loadFile('index.html')
})

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "digiflag-f1mv",
"productName": "digiflag-f1mv",
"version": "0.0.1-beta6",
"version": "0.0.1-beta10",
"description": "Adding a DigiFlag fonctionnality in MultiViewer For F1",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 5910c83

Please sign in to comment.