-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Basic NFS2 track support
- Loading branch information
Showing
27 changed files
with
1,526 additions
and
29 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...tend/dist/gui/styles.9650df2468906825.css → ...tend/dist/gui/styles.ef24d245995f07a6.css
Large diffs are not rendered by default.
Oops, something went wrong.
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
30 changes: 30 additions & 0 deletions
30
frontend/src/app/components/editor/eac/trk-map.block-ui/trk-map.block-ui.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,30 @@ | ||
<div class='qfsSelector'> | ||
<h4>Preview QFS file</h4> | ||
<mat-form-field appearance='fill'> | ||
<mat-label>Custom QFS path</mat-label> | ||
<input #customQfsInput matInput type='text' [value]='(previewQfsLocation$ | async)!'> | ||
</mat-form-field> | ||
<button mat-button (click)='onQfsSelected(customQfsInput.value)'>LOAD</button> | ||
<mat-spinner *ngIf='previewQfsLoading$ | async' mode='indeterminate' [diameter]='40'></mat-spinner> | ||
</div> | ||
<div class='preview'> | ||
<div class='previewCanvasContainer' #previewCanvasContainer> | ||
<canvas #previewCanvas width='640' height='480'></canvas> | ||
<mat-spinner *ngIf='previewLoading$ | async' mode='indeterminate'></mat-spinner> | ||
</div> | ||
<div class='previewNavigationContainer' #previewCanvasContainer> | ||
<mat-form-field appearance='fill'> | ||
<mat-label>Spline item</mat-label> | ||
<input matInput type='number' | ||
[min]='0' [max]='(_resource$ | async)?.data.num_blocks * 4 - 1' | ||
[ngModel]='selectedSplineIndex$ | async' | ||
(ngModelChange)='selectedSplineIndex$.next($event)'> | ||
</mat-form-field> | ||
<app-minimap [roadSpline]='roadPath || []' | ||
[pointer]='pointer$ | async' | ||
[splineClosed]='true' | ||
[projection]='"nz"' | ||
(pointerChange)='onPointerChange($event)'></app-minimap> | ||
</div> | ||
</div> | ||
<app-compound-block-ui [resource]='_resource$ | async'></app-compound-block-ui> |
52 changes: 52 additions & 0 deletions
52
frontend/src/app/components/editor/eac/trk-map.block-ui/trk-map.block-ui.component.scss
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 @@ | ||
.preview { | ||
width: 100%; | ||
height: calc(100vh - 14rem); | ||
display: flex; | ||
column-gap: 1rem; | ||
|
||
.previewCanvasContainer { | ||
flex-grow: 1; | ||
position: relative; | ||
overflow: hidden; | ||
margin: 0 0 16px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-around; | ||
|
||
canvas { | ||
position: absolute; | ||
} | ||
} | ||
|
||
.previewNavigationContainer { | ||
width: 20rem; | ||
flex-shrink: 0; | ||
display: flex; | ||
flex-direction: column; | ||
|
||
app-minimap { | ||
flex-grow: 1; | ||
display: flex; | ||
} | ||
} | ||
|
||
} | ||
|
||
.qfsSelector { | ||
display: flex; | ||
align-items: center; | ||
width: 100%; | ||
column-gap: 1rem; | ||
|
||
h4 { | ||
min-width: fit-content; | ||
} | ||
|
||
mat-form-field { | ||
flex-grow: 1; | ||
} | ||
|
||
mat-spinner, button { | ||
margin-bottom: 1.34375em; | ||
} | ||
} |
Oops, something went wrong.