Skip to content

Commit

Permalink
Merge pull request #24 from boltgolt/dev
Browse files Browse the repository at this point in the history
Version 0.1.1
  • Loading branch information
boltgolt authored Jun 21, 2019
2 parents bd48066 + 80a10e3 commit bfa1428
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
10 changes: 9 additions & 1 deletion config.json5
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@
// Make the background of the window transparent
"transparent": false,

// Start window as a full screen application
// Use ALT + F4 to quit
"fullscreen": true,

// Will disable GPU rendering, helps capture the window in programs like OBS
"disableGpu": false,

// Do not capture mouse events, allowing interaction with the window underneath
// Dragging or resizing the window will be disabled if this option is true
"mousePassthrough": false,

// The default shape and position of the window
"defaultSize": {
// The height and width in pixels
Expand All @@ -39,7 +47,7 @@
"hideAdvisories": false,

// Frames to smooth out player movement
"playerSmoothing": 12,
"playerSmoothing": 13,

// Amount of scaling to apply to player dots on the radar
"playerDotScale": 1
Expand Down
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ function createWindow() {
let winConfig = {
width: config.window.defaultSize.width,
height: config.window.defaultSize.height,
fullscreen: config.window.fullscreen,
minHeight: 200,
minWidth: 200,
frame: false,
resizable: true,
hasShadow: false,
enableLargerThanScreen: true,
darkTheme: true,
title: "Boltobserv",
Expand Down Expand Up @@ -48,6 +50,14 @@ function createWindow() {
win.setAlwaysOnTop(true, "screen")
}

if (config.window.mousePassthrough) {
win.setIgnoreMouseEvents(true)
}

if (config.window.fullscreen) {
win.setFullScreen(true)
}

win.on("closed", () => {
http.kill()
app.quit()
Expand Down
12 changes: 6 additions & 6 deletions maps/de_vertigo/meta.json5
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

// How many in-game units is the origin (0,0) of the map from the bottom left point of the radar
"offset": {
"x": 2830,
"y": 1660
"x": 3690,
"y": 3390
},

// Contains any special map splits
Expand All @@ -25,15 +25,15 @@
},
// The radar offset in percentages to apply when player is in the split
"offset": {
"x": 45.5,
"y": 44
"x": 0,
"y": -39
}
}
],

// Position in which advisories should be placed, in percentages from the bottom left
"advisoryPosition": {
"x": 19,
"y": 78
"x": 68,
"y": 84
}
}
Binary file modified maps/de_vertigo/radar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "boltobserv",
"version": "0.1.0",
"version": "0.1.1",
"description": "External radar for CSGO observers",
"main": "index.js",
"homepage": "https://github.com/boltgolt/boltobserv/",
Expand Down

0 comments on commit bfa1428

Please sign in to comment.