generated from maximegris/angular-electron
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
858 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/app/shared/components/input-itemslot/input-itemslot.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="relative"> | ||
<ng-select class="form-control" [items]="values" [(ngModel)]="itemSlot" placeholder="Select item slot..." | ||
(change)="change.emit($event)"></ng-select> | ||
|
||
<app-input-floating-label>Item Slot</app-input-floating-label> | ||
</div> |
Empty file.
14 changes: 14 additions & 0 deletions
14
src/app/shared/components/input-itemslot/input-itemslot.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Component, model, output } from '@angular/core'; | ||
import { ItemSlot, ItemSlotType } from '../../../../interfaces'; | ||
|
||
@Component({ | ||
selector: 'app-input-itemslot', | ||
templateUrl: './input-itemslot.component.html', | ||
styleUrl: './input-itemslot.component.scss', | ||
}) | ||
export class InputItemslotComponent { | ||
public itemSlot = model.required<string | undefined>(); | ||
public change = output<ItemSlotType>(); | ||
|
||
public values = [...Object.values(ItemSlot).sort()]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="relative"> | ||
<ng-select class="form-control" [items]="values" [(ngModel)]="sfx" placeholder="Select SFX..." | ||
(change)="change.emit($event)"></ng-select> | ||
|
||
<app-input-floating-label>{{ label() }}</app-input-floating-label> | ||
</div> |
Empty file.
52 changes: 52 additions & 0 deletions
52
src/app/shared/components/input-sfx/input-sfx.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { Component, input, model, output } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-input-sfx', | ||
templateUrl: './input-sfx.component.html', | ||
styleUrl: './input-sfx.component.scss', | ||
}) | ||
export class InputSfxComponent { | ||
public sfx = model.required<string | undefined>(); | ||
public change = output<string>(); | ||
|
||
public label = input<string>('SFX'); | ||
|
||
public values = [ | ||
'combat-block-armor', | ||
'combat-block-weapon', | ||
'combat-die', | ||
'combat-hit-melee', | ||
'combat-hit-spell', | ||
'combat-kill', | ||
'combat-miss', | ||
'combat-special-blunderbuss', | ||
|
||
'env-door-close', | ||
'env-door-open', | ||
'env-stairs', | ||
|
||
'monster-bear', | ||
'monster-bird', | ||
'monster-dragon', | ||
'monster-ghost', | ||
'monster-goblin', | ||
'monster-rocks', | ||
'monster-skeleton', | ||
'monster-turkey', | ||
'monster-wolf', | ||
|
||
'spell-aoe-fire', | ||
'spell-aoe-frost', | ||
'spell-buff-magical', | ||
'spell-buff', | ||
'spell-buff-physical', | ||
'spell-buff-protection', | ||
'spell-conjure', | ||
'spell-debuff-give', | ||
'spell-debuff-receive', | ||
'spell-heal', | ||
'spell-sight-effect', | ||
'spell-special-revive', | ||
'spell-special-teleport', | ||
]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.