Compare commits
No commits in common. "26b5056bcde76c21eaa61cfa073ab2482b969718" and "81304c57242fcc4335ecc7c66df4fc2eead6be10" have entirely different histories.
26b5056bcd
...
81304c5724
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -1,2 +1 @@
|
|||||||
*.png filter=lfs diff=lfs merge=lfs -text
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
*.jpg filter=lfs diff=lfs merge=lfs -text
|
|
||||||
|
@ -18,4 +18,8 @@ export class AppComponent {
|
|||||||
});
|
});
|
||||||
//GetVersion();
|
//GetVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RunGame() {
|
||||||
|
//RunGame();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,13 +1,20 @@
|
|||||||
<h1>{{game.title}}</h1>
|
<h1>{{game.title}}</h1>
|
||||||
<p>{{game.description}}</p>
|
<p>{{game.description}}</p>
|
||||||
|
<ng-template #icon>
|
||||||
|
<tui-avatar
|
||||||
|
size="xs"
|
||||||
|
[rounded]="true"
|
||||||
|
[avatarUrl]="'http://jpg.jpg'"
|
||||||
|
></tui-avatar>
|
||||||
|
</ng-template>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
tuiButton
|
tuiButton
|
||||||
type="button"
|
type="button"
|
||||||
appearance="primary"
|
appearance="primary"
|
||||||
|
[icon]="icon"
|
||||||
class="tui-space_right-3 tui-space_bottom-3"
|
class="tui-space_right-3 tui-space_bottom-3"
|
||||||
(click)= "runGame()"
|
(click)= "runGame()"
|
||||||
>
|
>
|
||||||
Launch
|
|
||||||
<ng-content></ng-content>
|
<ng-content></ng-content>
|
||||||
</button>
|
</button>
|
||||||
|
@ -1,22 +1,3 @@
|
|||||||
<!-- <div class="game" [ngClass]="{'active': active}">
|
<div class="game" [ngClass]="{'active': active}">
|
||||||
<div class="game-title">{{game.title}}</div>
|
<div class="game-title">{{game.title}}</div>
|
||||||
</div> -->
|
</div>
|
||||||
<ng-template #icon>
|
|
||||||
<tui-avatar
|
|
||||||
size="xs"
|
|
||||||
[rounded]="true"
|
|
||||||
[avatarUrl]="'./assets/games-icons/' + game.image"
|
|
||||||
></tui-avatar>
|
|
||||||
</ng-template>
|
|
||||||
|
|
||||||
<button
|
|
||||||
tuiButton
|
|
||||||
type="button"
|
|
||||||
appearance="primary"
|
|
||||||
[icon]="icon"
|
|
||||||
class="tui-space_right-3 tui-space_bottom-3"
|
|
||||||
class="game"
|
|
||||||
[ngClass]="{'active': active}"
|
|
||||||
>
|
|
||||||
{{game.title}}
|
|
||||||
<ng-content></ng-content>
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
export interface Game {
|
export interface Game {
|
||||||
id: number; //TODO: Заменить на строку
|
id: string;
|
||||||
gameId: string
|
title: string;
|
||||||
title: string;
|
image: string;
|
||||||
image: string;
|
description: string;
|
||||||
description: string;
|
}
|
||||||
}
|
|
@ -15,9 +15,6 @@ export class LauncherService {
|
|||||||
|
|
||||||
public RunGame(game: Game){
|
public RunGame(game: Game){
|
||||||
//console.log(game)
|
//console.log(game)
|
||||||
GoRunGame(game.gameId)
|
GoRunGame(game.id)
|
||||||
// console.log(game)
|
|
||||||
// console.log(game.title)
|
|
||||||
// console.log(game.gameId)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 90 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.3 KiB |
Loading…
Reference in New Issue
Block a user