Skip to content

Commit

Permalink
Mods porter added to UI, mods link added
Browse files Browse the repository at this point in the history
  • Loading branch information
emulamer committed Jul 19, 2019
1 parent aff1660 commit 3f15ff4
Show file tree
Hide file tree
Showing 11 changed files with 697 additions and 656 deletions.
2 changes: 1 addition & 1 deletion BeatOn/Assets/www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@
<link rel="stylesheet" href="styles.c6e01a63cc411e900bea.css"></head>
<body fxLayout="column">
<app-root fxLayout="column"></app-root>
<script src="runtime-es2015.858f8dd898b75fe86926.js" type="module"></script><script src="polyfills-es2015.4aaaf8cdea71ba6ebdaf.js" type="module"></script><script src="runtime-es5.741402d1d47331ce975c.js" nomodule></script><script src="polyfills-es5.27d81060418231ff91d8.js" nomodule></script><script src="main-es2015.c463a2c58d5bd7fc4ea0.js" type="module"></script><script src="main-es5.cdde60106da1a196bd2b.js" nomodule></script></body>
<script src="runtime-es2015.858f8dd898b75fe86926.js" type="module"></script><script src="polyfills-es2015.4aaaf8cdea71ba6ebdaf.js" type="module"></script><script src="runtime-es5.741402d1d47331ce975c.js" nomodule></script><script src="polyfills-es5.27d81060418231ff91d8.js" nomodule></script><script src="main-es2015.ec1293e4aafe7401ebad.js" type="module"></script><script src="main-es5.fba114a0e9a38eab8372.js" nomodule></script></body>
</html>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions BeatOn/BeatOn.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -377,13 +377,13 @@
<AndroidAsset Include="Assets\www\assets\note.png" />
</ItemGroup>
<ItemGroup>
<AndroidAsset Include="Assets\www\main-es5.cdde60106da1a196bd2b.js" />
<AndroidAsset Include="Assets\www\styles.c6e01a63cc411e900bea.css" />
</ItemGroup>
<ItemGroup>
<AndroidAsset Include="Assets\www\main-es2015.c463a2c58d5bd7fc4ea0.js" />
<AndroidAsset Include="Assets\www\main-es2015.ec1293e4aafe7401ebad.js" />
</ItemGroup>
<ItemGroup>
<AndroidAsset Include="Assets\www\styles.c6e01a63cc411e900bea.css" />
<AndroidAsset Include="Assets\www\main-es5.fba114a0e9a38eab8372.js" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
2 changes: 1 addition & 1 deletion BeatOn/ImportManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ private void ExtractAndInstallMod(IFileProvider provider)
catch (Exception ex)
{
Log.LogErr($"Exception trying to load mod from provider {provider.SourceName}", ex);
throw new ImportException($"Exception trying to load mod from provider {provider.SourceName}", $"Unable to load mod from {provider.SourceName}, it does not appear to be a valid mod file.", ex);
throw new ImportException($"Exception trying to load mod from provider {provider.SourceName}", $"Unable to load mod from {provider.SourceName}, it may be an invalid file or another mod of the same type failed to uninstall.", ex);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions BeatOn/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.0.9.8")]
[assembly: AssemblyFileVersion("0.0.9.8")]
[assembly: AssemblyVersion("0.0.9.9")]
[assembly: AssemblyFileVersion("0.0.9.9")]
2 changes: 1 addition & 1 deletion QuestomAssets
32 changes: 15 additions & 17 deletions frontend/src/app/browser-nav/browser-nav.component.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
import { Component, OnInit, Output, EventEmitter } from '@angular/core';

@Component({
selector: 'app-browser-nav',
templateUrl: './browser-nav.component.html',
styleUrls: ['./browser-nav.component.scss']
selector: 'app-browser-nav',
templateUrl: './browser-nav.component.html',
styleUrls: ['./browser-nav.component.scss'],
})
export class BrowserNavComponent implements OnInit {
constructor() {}
browserLinks: any[] = [
{ title: 'Beast Saber', url: 'https://bsaber.com' },
{ title: 'Beat Saver', url: 'https://beatsaver.com' },
{ title: 'Google', url: 'https://google.com' },
{ title: 'Mods', url: 'https://github.com/RedBrumbler/BeatOnCustomSabers' },
];

constructor() { }
browserLinks :any[] = [
{ title: "Beast Saber", url: "https://bsaber.com"},
{ title: "Beat Saver", url: "https://beatsaver.com"},
{ title: "Google", url: "https://google.com"}
]

@Output() linkSelected = new EventEmitter<string>();
@Output() linkSelected = new EventEmitter<string>();

clickLink(link) {
this.linkSelected.emit(link.url);
}

ngOnInit() {
}
clickLink(link) {
this.linkSelected.emit(link.url);
}

ngOnInit() {}
}
8 changes: 4 additions & 4 deletions frontend/src/app/main-mods/main-mods.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
</section>
<section class="container" >
<div *ngIf="!config">No Mods!</div>
<div fxFlex="50%">
<div fxFlex="60%">
<mat-list>
<!-- [class.selected]="mod === selectedMod" (click)="onSelect(mod); myModal.open()" -->
<mat-list-item class="modContainer" *ngFor="let mod of config.Mods" >
<div [ngStyle]="{'background-image': getModBG(mod)}" class="modCategory"></div>
<div matTooltip="Delete the mod from Beat On." (click)="clickDeleteMod(mod)" class="deleteMod"><mat-icon>delete_forever</mat-icon></div>
<h1 matLine> {{ mod.Name }} <span class="version">v{{ mod.Version }}</span></h1>
<h3 matLine> by {{ mod.Author }}</h3>
<h1 matLine> {{ mod.Name }} <span class="version">{{ mod.Version }}</span></h1>
<h4 matLine> by {{ mod.Author }}<span *ngIf="mod.Porter">, ported by: {{ mod.Porter }}</span></h4>
<div matLine class="description"> {{ mod.Description }}</div>


Expand Down Expand Up @@ -59,7 +59,7 @@ <h4 class="modal-title" id="myModalLabel2" *ngIf="selectedMod">{{ selectedMod.Na
</div>
<div class="modal-body">
<section class="mat-typography">
<h3 class="mat-display-1" *ngIf="selectedMod"> Created by: {{ selectedMod.Author }} </h3>
<h3 class="mat-display-1" *ngIf="selectedMod"> Created by: {{ selectedMod.Author }}</h3>
<p *ngIf="selectedMod"> {{ selectedMod.Description }} </p>
<button mat-raised-button="" class="md-raised md-primary">Install</button>
<a *ngIf="selectedMod" href="{{ selectedMod.InfoUrl }}" > More Info </a>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/app/main-mods/main-mods.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// width: 600px;
height: 49px;
overflow-y: auto;
margin-left: 300px;
margin-left: 200px;
}

.modContainer {
Expand Down
1 change: 1 addition & 0 deletions frontend/src/app/models/ModDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export class ModDefinition {
TargetBeatSaberVersion: string;
Version: string;
CoverImageFilename: string;
Porter: string;
}

export enum ModStatusType {
Expand Down

0 comments on commit 3f15ff4

Please sign in to comment.