This repository has been archived by the owner on May 1, 2023. It is now read-only.
/
settings.component.html
278 lines (270 loc) · 11.1 KB
/
settings.component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
<h3 class="mat-h3 page-header">{{'PAGES.SETTINGS.TITLE' | translate}}</h3>
<mat-divider class="divider"></mat-divider>
<div class="tab-group-header">
<mat-tab-group #tabGroup id="tabGroup" [(selectedIndex)]="selectedIndex">
<mat-tab #stash id="stash" class="active" [disabled]="!sessionId">
<ng-template mat-tab-label>
<mat-icon class="tab-icon">format_list_numbered</mat-icon>
Stashtabs
</ng-template>
</mat-tab>
<mat-tab #general id="keybinds">
<ng-template mat-tab-label>
<mat-icon class="tab-icon">keyboard</mat-icon>
Keybinds
</ng-template>
</mat-tab>
<mat-tab #window id="window">
<ng-template mat-tab-label>
<mat-icon class="tab-icon">laptop</mat-icon>
Window
</ng-template>
</mat-tab>
<mat-tab #networth id="networth">
<ng-template mat-tab-label>
<mat-icon class="tab-icon">attach_money</mat-icon>
Net worth
</ng-template>
</mat-tab>
<mat-tab #general settings id="general">
<ng-template mat-tab-label>
<mat-icon class="tab-icon">info</mat-icon>
Tutorials
</ng-template>
</mat-tab>
<mat-tab #general settings id="debug">
<ng-template mat-tab-label>
<mat-icon class="tab-icon">help</mat-icon>
Help
</ng-template>
</mat-tab>
</mat-tab-group>
</div>
<div [hidden]="selectedIndex != 0">
<h3 class="mat-h3">
{{'PAGES.SETTINGS.STASHTAB_LIST_HEADER' | translate}}
</h3>
<div class="table-outer-wrapper">
<div class="search-form-wrapper">
<form class="form search-form" [formGroup]="form">
<mat-form-field>
<input matInput formControlName="searchText" placeholder="{{'STASH.SEARCH' | translate}}" class="search-text-input"
(ngModelChange)="search()">
</mat-form-field>
</form>
</div>
<div class="stash-table-wrapper">
<app-stashtab-list #table [validated]="sessionIdValid || sessionId == undefined"></app-stashtab-list>
</div>
</div>
</div>
<div [hidden]="selectedIndex != 1">
<div class="keybinds-info-text">
<p class="mat-body-1">
This page lets you select custom keybindings for functions in the app, e.g reporting the current gain for your
group.
<br /> These keybinds will only be active when either Path of Exile or Exilence is in focus.
</p>
<p class="mat-body-1">
To avoid any conflicts with the keybinds, make sure the combination you select does not interfere with other
macros or in-game
binds.
</p>
</div>
<div class="setting-tab-content">
<mat-grid-list cols="9" rowHeight="50px">
<!-- col-headers -->
<mat-grid-tile [colspan]="3" [rowspan]="1" class="grid-header">
<span class="grid-header-title">
Event name
</span>
</mat-grid-tile>
<mat-grid-tile [colspan]="2" [rowspan]="1" class="grid-header">
<span class="grid-header-title">
Modifier-key
</span>
</mat-grid-tile>
<mat-grid-tile [colspan]="2" [rowspan]="1" class="grid-header">
<span class="grid-header-title">
Trigger-key
</span>
</mat-grid-tile>
<mat-grid-tile [colspan]="2" [rowspan]="1" class="grid-header">
<span class="grid-header-title">
Enabled
</span>
</mat-grid-tile>
<!-- keybinds -->
<ng-container *ngFor="let keybind of keybinds">
<mat-grid-tile [colspan]="3" [rowspan]="1">
{{keybind.title}}
</mat-grid-tile>
<mat-grid-tile [colspan]="2" [rowspan]="1">
<mat-form-field>
<mat-select [(value)]="keybind.modifierKeyCode" [disabled]="!keybind.enabled">
<mat-option value="None">None</mat-option>
<mat-option *ngFor="let key of modifierKeys" value="{{key.name}}">{{key.name}}</mat-option>
</mat-select>
</mat-form-field>
</mat-grid-tile>
<mat-grid-tile [colspan]="2" [rowspan]="1">
<mat-form-field>
<mat-select [(value)]="keybind.triggerKeyCode" [disabled]="!keybind.enabled">
<!-- <mat-option>None</mat-option> -->
<mat-option *ngFor="let key of triggerKeys" value="{{key.name}}">{{key.name}}</mat-option>
</mat-select>
</mat-form-field>
</mat-grid-tile>
<mat-grid-tile [colspan]="2" [rowspan]="1">
<mat-checkbox [(ngModel)]="keybind.enabled"></mat-checkbox>
</mat-grid-tile>
</ng-container>
</mat-grid-list>
<mat-divider class="divider btn-area-divider"></mat-divider>
<div class="flex-area">
<div class="right-aligned">
<button mat-raised-button color="primary" (click)="resetKeybinds()" type="button">{{'KEYBINDS.RESET' |
translate}}</button>
<button mat-raised-button color="primary" (click)="saveKeybinds()" type="button">{{'KEYBINDS.SAVE' |
translate}}</button>
</div>
</div>
</div>
</div>
<div [hidden]="selectedIndex != 2">
<div class="setting-tab-content">
<h3 class="mat-h4 page-header">Misc</h3>
<mat-divider class="divider"></mat-divider>
<div class="setting-inner-content">
<p class="setting-desc-text">
Check this setting if you want Exilence to be on top at all times
</p>
<mat-checkbox class="setting-checkbox" [(ngModel)]="alwaysOnTop" (ngModelChange)="toggleAlwaysOnTop()">Set window
always on top</mat-checkbox>
<p class="setting-desc-text">
Check this setting if you want Exilence to be resizable
</p>
<mat-checkbox class="setting-checkbox" [(ngModel)]="isResizable" (ngModelChange)="toggleResizable()">Enable
resize of window</mat-checkbox>
</div>
</div>
</div>
<div [hidden]="selectedIndex != 3">
<div class="setting-tab-content">
<h3 class="mat-h4 page-header">Pricing</h3>
<mat-divider class="divider"></mat-divider>
<div class="setting-inner-content">
<p class="setting-desc-text">
Check this setting to include low confidence prices
</p>
<mat-checkbox class="setting-checkbox" [(ngModel)]="lowConfidencePricing" (ngModelChange)="toggleLowConfidencePricing()">Low
confidence pricing</mat-checkbox>
<p class="setting-desc-text">
Check this setting to include the inventory and equipment for net worth
</p>
<mat-checkbox class="setting-checkbox" [(ngModel)]="characterPricing" (ngModelChange)="toggleCharacterPricing()">Character-specific
pricing</mat-checkbox>
</div>
<h3 class="mat-h4 page-header new-section">Calculations</h3>
<mat-divider class="divider"></mat-divider>
<p class="setting-desc-text">
</p>
<mat-form-field>
<mat-label>Item value treshold</mat-label>
<mat-select #fontSize value="{{itemValueTreshold}}" (selectionChange)="toggleItemValueTreshold($event)">
<mat-option value="0">Include all items</mat-option>
<mat-option value="1">>= 1c</mat-option>
<mat-option value="2">>= 2c</mat-option>
<mat-option value="3">>= 3c</mat-option>
<mat-option value="5">>= 5c</mat-option>
<mat-option value="10">>= 10c</mat-option>
</mat-select>
</mat-form-field>
<p class="setting-desc-text">
Choose how many hours back in history that should be used for "Gain per hour"
</p>
<mat-form-field>
<mat-label>Calculate gain over past</mat-label>
<mat-select #fontSize value="{{gainHours}}" (selectionChange)="toggleGainHours($event)">
<mat-option value="1">1 hour</mat-option>
<mat-option value="2">2 hours</mat-option>
<mat-option value="3">3 hours</mat-option>
<mat-option value="5">5 hours</mat-option>
<mat-option value="10">10 hours</mat-option>
<mat-option value="24">24 hours</mat-option>
</mat-select>
</mat-form-field>
<h3 class="mat-h4 page-header new-section">History</h3>
<mat-divider class="divider"></mat-divider>
<p class="setting-desc-text">
Choose how much days back in history the "Net worth graph" shows
</p>
<mat-form-field>
<mat-label>Net worth history for</mat-label>
<mat-select #fontSize value="{{netWorthHistoryDays}}" (selectionChange)="toggleNetWorthHistoryDays($event)">
<mat-option value="1">1 day</mat-option>
<mat-option value="2">2 days</mat-option>
<mat-option value="3">3 days</mat-option>
<mat-option value="7">7 days</mat-option>
<mat-option value="14">14 days</mat-option>
</mat-select>
</mat-form-field>
</div>
</div>
<div [hidden]="selectedIndex != 4">
<div class="setting-tab-content">
<h3 class="mat-h4 page-header">Visibility</h3>
<mat-divider class="divider"></mat-divider>
<div class="setting-inner-content">
<p class="setting-desc-text">
Press this button to restore all tutorial tooltips to their original state
</p>
<button mat-raised-button color="primary" (click)="resetDialogs()" type="button">{{'SETTINGS.RESET_DIALOGS' |
translate}}</button>
<br /><br />
<p class="setting-desc-text">
Check this setting if you want to ignore all helpful tooltips
</p>
<mat-checkbox class="setting-checkbox" [(ngModel)]="hideTooltips" (ngModelChange)="toggleHideTooltips()">Hide
tooltips</mat-checkbox>
</div>
</div>
</div>
<div [hidden]="selectedIndex != 5">
<div class="setting-tab-content">
<h3 class="mat-h4 page-header">
This page is aimed to help you resolve any problems you might have with Exilence.
Know that you can always contact us on <a class="inline-link" (click)="openLink('https://discord.gg/ymr3VnA')">Discord</a>
if you have any questions or problems using Exilence.
</h3>
<mat-divider class="divider"></mat-divider>
<div class="setting-inner-content">
<mat-accordion>
<mat-expansion-panel [expanded]="true">
<mat-expansion-panel-header>
<mat-panel-title>
<b>Step 1: </b> Clear all settings and saved data.
</mat-panel-title>
</mat-expansion-panel-header>
<p class="setting-desc-text">
This will clear all your saved data and settings including areas and networth.
</p>
<button mat-raised-button color="primary" (click)="clearSettings()" type="button">{{'SETTINGS.CLEAR_SETINGS_RELAUNCH'
| translate}}</button>
</mat-expansion-panel>
<mat-expansion-panel>
<mat-expansion-panel-header>
<mat-panel-title>
<b>Step 2: </b> Upload settings and log to Exilence server.
</mat-panel-title>
</mat-expansion-panel-header>
<p class="setting-desc-text">
This will upload all your saved data and settings to the Exilence server. Only do this if step 1 didn't
help you and make sure to ping us on Discord after so we can investigate your issue.
</p>
<button mat-raised-button color="primary" (click)="upload()" [disabled]="uploaded" type="button">{{'SETTINGS.UPLOAD_FILE'
| translate}}</button>
</mat-expansion-panel>
</mat-accordion>
</div>
</div>