Browse Source

very very impornant

main
gsd 8 months ago
parent
commit
fd65d4a367
  1. 21
      pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts
  2. BIN
      pipboyUI/src/assets/ToddHoward.jpg

21
pipboyUI/src/app/components/LowerHeaders/Inventory/inventory-apps.component.ts

@ -5,11 +5,13 @@ import {IframeAppComponent} from "../../apps/iframe-app.component";
import {AbsListSelect} from "../AbsListSelect";
import {IOService} from "../../../services/IOService";
import {Subscription} from "rxjs";
import {AbsApp} from "../../apps/AbsApp";
import { ComponentType } from "@angular/cdk/portal";
export interface InvApp {
name: string;
action: Function;
icon:string,
icon: string,
matIcon: boolean,
about: string
}
@ -25,7 +27,8 @@ export interface InvApp {
</div>
<div style="width: 45%; display: flex; flex-direction: column">
<div style="text-align: center">
<mat-icon class="rotating-image" style="font-size: 100px; height: 100px; width: 100px" *ngIf="selected.matIcon">{{selected.icon}}</mat-icon>
<mat-icon class="rotating-image" style="font-size: 100px; height: 100px; width: 100px"
*ngIf="selected.matIcon">{{selected.icon}}</mat-icon>
</div>
<div style="">
<p>{{selected.about}}</p>
@ -50,17 +53,19 @@ export class InventoryAppsComponent extends AbsListSelect {
this.createSub()
}
override elements: InvApp[] = [
{name: "Clock", action: () => {
openApp(app: any, data: any = {}) {
this.ngOnDestroy();
const ref = this.dialog.open(ClockDialogApp, {width: '100%', height: '100%', disableClose: true});
const ref = this.dialog.open(app, {width: '100%', height: '100%', disableClose: true, data: data});
ref.afterClosed().subscribe(() => this.createSub());
}
override elements: InvApp[] = [
{name: "Clock", action: () => {
this.openApp(ClockDialogApp);
}, matIcon: true, icon: "access_time", about: "Забытые часы самого тодда говарда. Он забыл их в своей прекрастной игре каллаут76."},
{name: "1", action: () => {}, matIcon: true, icon:"help", about: "Кусок кала"},
{name: "Rick Roll", action: () => {
this.ngOnDestroy();
const ref = this.dialog.open(IframeAppComponent, {width: '100%', height: '100%', disableClose: true, data: {url:"https://youtu.be/dQw4w9WgXcQ?output=embed"}})
ref.afterClosed().subscribe(() => this.createSub());
this.openApp(IframeAppComponent, {url:"https://youtu.be/dQw4w9WgXcQ?output=embed"})
}, matIcon: true, icon: "record_voice_over", about: "Нет ничего лучше старого рикролла"}
]
override selected: InvApp = this.elements[0];

BIN
pipboyUI/src/assets/ToddHoward.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

Loading…
Cancel
Save