Skip to content

Commit

Permalink
- added experimental horizontal layout (enableable at the settings) f…
Browse files Browse the repository at this point in the history
…or the evaluate dialog (#769)
  • Loading branch information
Kyusung4698 committed Jul 28, 2020
1 parent 11fb462 commit a094f22
Show file tree
Hide file tree
Showing 21 changed files with 325 additions and 217 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- added latest_whisper placeholder for commands
- added item images at the search market
- added different step sizes at the exchange market (CTRL 50, SHIFT 25, ALT 5) (#797)
- added experimental horizontal layout (enableable at the settings) for the evaluate dialog (#769)
- updated windows to be draggable by their content (#768)
- fixed an issue at the market enabling sockets to be toggleable

Expand Down
53 changes: 53 additions & 0 deletions overlay.babel
Original file line number Diff line number Diff line change
Expand Up @@ -6684,6 +6684,59 @@
<folder_node>
<name>layout</name>
<children>
<concept_node>
<name>horizontal</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>de-DE</language>
<approved>false</approved>
</translation>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-ES</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-FR</language>
<approved>false</approved>
</translation>
<translation>
<language>ko-KR</language>
<approved>false</approved>
</translation>
<translation>
<language>pl-PL</language>
<approved>false</approved>
</translation>
<translation>
<language>pt-BR</language>
<approved>false</approved>
</translation>
<translation>
<language>ru-RU</language>
<approved>false</approved>
</translation>
<translation>
<language>th-TH</language>
<approved>false</approved>
</translation>
<translation>
<language>zh-CHS</language>
<approved>false</approved>
</translation>
<translation>
<language>zh-CHT</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node>
<name>name</name>
<definition_loaded>false</definition_loaded>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
<app-item-frame [item]="item" [language]="language" [queryItem]="queryItem"
(queryItemChange)="onQueryItemChange($event)" [separator]="true"
[modifierMinRange]="settings.evaluateItemSearchStatMinRange / 100"
[modifierMaxRange]="settings.evaluateItemSearchStatMaxRange / 100"
[propertyMinRange]="settings.evaluateItemSearchPropertyMinRange / 100"
[propertyMaxRange]="settings.evaluateItemSearchPropertyMaxRange / 100" [opacity]="settings.dialogOpacity">
<ng-content></ng-content>
<app-evaluate-item-options [options]="options" (optionsChange)="onOptionsChange($event)" (resetTrigger)="onReset()">
</app-evaluate-item-options>
<app-evaluate-item-price [item]="item" [currencies]="currencies" [options]="options" [optionsChange]="optionsChange"
(evaluateSelect)="evaluateSelect.next($event)" appAnnotation="evaluate.price"></app-evaluate-item-price>
<app-item-frame-separator [item]="item"></app-item-frame-separator>
<app-evaluate-item-search [graph]="true" [currencies]="currencies" [queryItem]="queryItem"
[queryItemChange]="queryItemChange" [options]="options" [optionsChange]="optionsChange" [settings]="settings"
(evaluateSelect)="evaluateSelect.next($event)" appAnnotation="evaluate.search">
</app-evaluate-item-search>
</app-item-frame>
<div [class.horizontal]="settings.evaluateItemSearchHorizontal">
<app-item-frame [item]="item" [language]="language" [queryItem]="queryItem"
(queryItemChange)="onQueryItemChange($event)" [separator]="true"
[modifierMinRange]="settings.evaluateItemSearchStatMinRange / 100"
[modifierMaxRange]="settings.evaluateItemSearchStatMaxRange / 100"
[propertyMinRange]="settings.evaluateItemSearchPropertyMinRange / 100"
[propertyMaxRange]="settings.evaluateItemSearchPropertyMaxRange / 100" [opacity]="settings.dialogOpacity">
<ng-content></ng-content>
<app-evaluate-item-options [options]="options" (optionsChange)="onOptionsChange($event)"
(resetTrigger)="onReset()">
</app-evaluate-item-options>
<app-evaluate-item-price [item]="item" [currencies]="currencies" [options]="options"
[optionsChange]="optionsChange" (evaluateSelect)="evaluateSelect.next($event)"
appAnnotation="evaluate.price"></app-evaluate-item-price>
<app-item-frame-separator [item]="item"></app-item-frame-separator>
<app-evaluate-item-search [graph]="true" [currencies]="currencies" [queryItem]="queryItem"
[queryItemChange]="queryItemChange" [options]="options" [optionsChange]="optionsChange"
[settings]="settings" (evaluateSelect)="evaluateSelect.next($event)" appAnnotation="evaluate.search">
</app-evaluate-item-search>
</app-item-frame>
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
$border-color: #1a1a1a;

::ng-deep {
app-evaluate-item-frame {
.horizontal {
app-item-frame {
.detail {
display: flex;
}

.inner {
display: flex;
flex-direction: column;
justify-content: center;
border-right: 1px solid $border-color;
}
}

.settings {
right: calc(50% + 3px) !important;
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { EvaluateItemOptions } from '../evaluate-item-options/evaluate-item-opti
@Component({
selector: 'app-evaluate-item-frame',
templateUrl: './evaluate-item-frame.component.html',
styleUrls: ['./evaluate-item-frame.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class EvaluateItemFrameComponent implements OnInit, OnDestroy {
Expand Down
Loading

0 comments on commit a094f22

Please sign in to comment.