Compare commits

...

7 Commits

Author SHA1 Message Date
26b5056bcd update game interface 2022-10-18 18:00:23 +03:00
3766cd14da Merge branch 'branch'
# Conflicts:
#	src/app/interfaces/game.interface.ts
2022-10-18 17:59:07 +03:00
f3ab70f389 test game icons 2022-10-18 17:58:42 +03:00
3b2655cc83 add game icon to game bar item 2022-10-18 17:58:32 +03:00
1e84726bc5 change launch button 2022-10-18 17:58:23 +03:00
c9852d2dc6 update lfs rules 2022-10-18 17:58:09 +03:00
88f024dfbc create working game lists in go 2022-10-18 03:23:46 +03:00
8 changed files with 33 additions and 21 deletions

1
.gitattributes vendored
View File

@ -1 +1,2 @@
*.png filter=lfs diff=lfs merge=lfs -text *.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text

View File

@ -18,8 +18,4 @@ export class AppComponent {
}); });
//GetVersion(); //GetVersion();
} }
RunGame() {
//RunGame();
}
} }

View File

@ -1,20 +1,13 @@
<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>

View File

@ -1,3 +1,22 @@
<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>

View File

@ -1,7 +1,7 @@
export interface Game { export interface Game {
id: string; id: number; //TODO: Заменить на строку
title: string; gameId: string
image: string; title: string;
description: string; image: string;
} description: string;
}

View File

@ -15,6 +15,9 @@ export class LauncherService {
public RunGame(game: Game){ public RunGame(game: Game){
//console.log(game) //console.log(game)
GoRunGame(game.id) GoRunGame(game.gameId)
// console.log(game)
// console.log(game.title)
// console.log(game.gameId)
} }
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB