Skip to content

Commit

Permalink
1.9.0 update
Browse files Browse the repository at this point in the history
  • Loading branch information
AkinariHex committed Jul 15, 2021
1 parent 544dad6 commit b3315a9
Show file tree
Hide file tree
Showing 7 changed files with 749 additions and 141 deletions.
42 changes: 17 additions & 25 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,20 @@
## v1.8.0
### Displayer
- Fixed error regards teams images, the previous update broke all the displayer!

## v1.9.0
### App
- Added **"Export Team"** button.
- The app now will accept files with the extension <code>.otmdt</code>
- <code>.otmdt</code> are files that contain the info about one team.<br>These files can be open with a double click or using the **"Add Team"** button.
- **"Export Team"** button will create the <code>.otmdt</code> file that you can send to your teammates for a faster configuration without doing it manually!
- Added **"Add Team"** button, will open the dialog to choose the <code>.otmdt</code> file.
- Changed style and position of **"Open Teams Folder"** button.
- Fixed error while trying to find teams with spaces in the name.
- Fixed adding new players for teams with spaces in the name.
- Changed style of **"Edit Team"** button.
- New Logo
<br><img src="https://akinariosu.s-ul.eu/f72xTlsv">
- Revert to fast installer without the possibility to choose where to install the app. When updating you'll not see anymore the annoying window that require your click to close.

### Known Issues
- Error while changing name with a team that doesn't have a team.json file
- New Real Time Example of the visualizer in the settings to see how the displayer will appear!
<br><img src="https://akinariosu.s-ul.eu/2moHswYA">
- Added Transparent Background feature!
- Disabled **Teams Section** // Too many bugs and errors, will be available in the next releases!
You can still use the images with the teams naming the image with the exact name of the team and placing the image in the teams folder!
- Fixed error while minimizing in windows bar with "minimize to tray" disabled.
- Fixed Qualifiers Matches not being displayed.
- Added few animations to the left bar.
- Changed style of the left bar.

### Tournaments
- Added [Entropy's Summer Tournament](https://osu.ppy.sh/community/forums/topics/1334728)
- Added [Full Technical Tournament 3](https://osu.ppy.sh/community/forums/topics/1337843)
- Added [North America Tournament](https://osu.ppy.sh/community/forums/topics/1333199)
- Added [Asuna's Asia Tournament](https://osu.ppy.sh/community/forums/topics/1330959)
- Added [osu! India Summer Tournament](https://osu.ppy.sh/community/forums/topics/1328854)
- Added [Scarlet's Touhou Tournament](https://osu.ppy.sh/community/forums/topics/1323843)
- Added [osu! Mercenary Shop 3](https://osu.ppy.sh/community/forums/topics/1341640)
- Added [Koro's Back 2 Skool Tournament](https://osu.ppy.sh/community/forums/topics/1337953)
- Added [Elitiri Cup Summer](https://osu.ppy.sh/community/forums/topics/1343263)
- Added [Neko's Club Tournament - Hot Summer 2021](https://osu.ppy.sh/community/forums/topics/1370076)
- Added [BubblyQT osu! Party](https://osu.ppy.sh/community/forums/topics/1362858)
- Added [osu! Polish Masters](https://osu.ppy.sh/community/forums/topics/1368969)
- Added [Gotta Aim Fast 8](https://osu.ppy.sh/community/forums/topics/1353576)
29 changes: 23 additions & 6 deletions frontend/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ let userid = null
let visualizerborder = null
let smallvisualizer = null
let oldcolors = null
let transpBackground = null

// invoke once on page opening
function init() {
Expand All @@ -48,6 +49,7 @@ function init() {
visualizerborder = data.visualizerstyle
smallvisualizer = data.smallVisualizer
oldcolors = data.oldColors
transpBackground = data.transparentBackground

checkData()
})
Expand Down Expand Up @@ -88,6 +90,7 @@ function checkData() {
fetch('https://raw.githubusercontent.com/AkinariHex/oTMD/main/frontend/assets/tourneys.json')
.then((res) => res.json())
.then((tourneydata) => {

if(oldcolors == true){
visualizer.style.setProperty('--visualizer-background', 'url("/assets/images/blueVSred.png")');
}
Expand All @@ -98,6 +101,10 @@ function checkData() {
visualizer_footer.style.height = '20px';
visualizer_content.style.height = '40px';
}

if(transpBackground == true){
visualizer.style.setProperty('--visualizer-background', 'transparent')
}
visualizer.style.setProperty('--visualizer-border-radius', visualizerborder);
if (osuapi != 'null' && matchid != 'null' && warmups != 'null' && reverse != 'null' && bestof != 'null' && stage != 'null' && matchtype != 'null') {
if (userid != 'null' && matchtype == 'h1v1') {
Expand Down Expand Up @@ -130,7 +137,7 @@ function matchdata(api, mpid, warmups, interval, reverse, bestof, country, tourn
var tournamentid = data.match.name.substring(0, tournamentindex);

var tournament_info_name = '';
var tournament_modifiers = {"HD": {"type": "*", "value": "1.00"}, "HR": {"type": "*", "value": "1.00"}, "EZ": {"type": "*", "value": "1.00"}, "FL": {"type": "*", "value": "1.00"}};
var tournament_modifiers = {"NM": {"type": "*", "value": "1.00"}, "HD": {"type": "*", "value": "1.00"}, "HR": {"type": "*", "value": "1.00"}, "EZ": {"type": "*", "value": "1.00"}, "FL": {"type": "*", "value": "1.00"}};

// CHECK FOR TOURNAMENT
if(tournament[tournamentid]){
Expand Down Expand Up @@ -167,6 +174,7 @@ function matchdata(api, mpid, warmups, interval, reverse, bestof, country, tourn
}
}


if(team1score - team2score == 0){
team1 = team1;
team2 = team2;
Expand Down Expand Up @@ -333,7 +341,9 @@ function matchdata(api, mpid, warmups, interval, reverse, bestof, country, tourn
}
}


if(transpBackground == true){
visualizer.style.setProperty('--visualizer-background', 'transparent')
}


team1 = 0;
Expand Down Expand Up @@ -371,7 +381,7 @@ function matchdatasolo(api, mpid, warmups, interval, bestof, tournament, stage,
var tournamentid = data.match.name.substring(0, tournamentindex);

var tournament_info_name = '';
var tournament_modifiers = {"HD": "1.00","HR": "1.00","EZ": "1.00","FL": "1.00"};
var tournament_modifiers = {"NM": {"type": "*", "value": "1.00"}, "HD": {"type": "*", "value": "1.00"}, "HR": {"type": "*", "value": "1.00"}, "EZ": {"type": "*", "value": "1.00"}, "FL": {"type": "*", "value": "1.00"}};

// CHECK FOR TOURNAMENT
if(tournament[tournamentid]){
Expand Down Expand Up @@ -476,7 +486,9 @@ function matchdatasolo(api, mpid, warmups, interval, bestof, tournament, stage,
}



if(transpBackground == true){
visualizer.style.setProperty('--visualizer-background', 'transparent')
}

team1 = 0;
team2 = 0;
Expand Down Expand Up @@ -547,7 +559,7 @@ function matchdatasoloQualifiers(api, mpid, warmups, interval, tournament, stage
var tournamentid = data.match.name.substring(0, tournamentindex);

var tournament_info_name = '';
var tournament_modifiers = {"HD": "1.00","HR": "1.00","EZ": "1.00","FL": "1.00"};
var tournament_modifiers = {"NM": {"type": "*", "value": "1.00"}, "HD": {"type": "*", "value": "1.00"}, "HR": {"type": "*", "value": "1.00"}, "EZ": {"type": "*", "value": "1.00"}, "FL": {"type": "*", "value": "1.00"}};

// CHECK FOR TOURNAMENT
if(tournament[tournamentid]){
Expand All @@ -556,7 +568,7 @@ function matchdatasoloQualifiers(api, mpid, warmups, interval, tournament, stage
}

//Score system
for(var i=warmups; i<data.games.length; i++){
for(var i=0; i<data.games.length; i++){
for(var x=0; x<data.games[i].scores.length; x++){
var gameended = data.games[i].end_time==null;
if(gameended == false ){
Expand Down Expand Up @@ -613,6 +625,11 @@ function matchdatasoloQualifiers(api, mpid, warmups, interval, tournament, stage
mapsLeft.innerHTML = 'Qualifiers Done!'
}

if(transpBackground == true){
visualizer.style.setProperty('--visualizer-background', 'transparent')
}


})
.catch((err) => {
clearInterval(interval)
Expand Down
Loading

0 comments on commit b3315a9

Please sign in to comment.