Browse Source

very very impornant

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

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

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