Skip to content

Commit

Permalink
[2.0.1] Fixes Limits Imposed on Alliance Flags
Browse files Browse the repository at this point in the history
  • Loading branch information
malulleybovo committed Dec 12, 2021
1 parent 89fc98a commit 34a1434
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Pseudo-vector image creator.

## [Launch Application](https://malulleybovo.github.io/SymbolArtEditorOnline/)
#### Version 2.0.0
#### Version 2.0.1

### Quickly get down to business and make art with fluidity and agility.
<br>Symbol Art Editor was designed based on three pillars: simplicity, ease of use, and agility.
Expand Down
2 changes: 1 addition & 1 deletion res/templates/optionsview.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="disable-select" style="position: fixed;left: 0;top: 0;width: 100%;height: 100%;opacity: 0.95;background: #3c3c3c;z-index: 1000;transition: all 0.25s ease-in-out 0s;" oncontextmenu="return false;">

<div style="position: absolute;bottom: 30px;left: 50%;transform: translateX(-50%);color: #808080;font-size: 12px;text-align: center;">v2.0.0<br />&copy; 2021 Copyright malulleybovo</div>
<div style="position: absolute;bottom: 30px;left: 50%;transform: translateX(-50%);color: #808080;font-size: 12px;text-align: center;">v2.0.1<br />&copy; 2021 Copyright malulleybovo</div>

<div style="position: absolute;left: 50%;top: 50%;transform: translate(-50%, -50%);max-width: 720px;font-weight: bold;min-width: 360px;text-align: center;">

Expand Down
4 changes: 0 additions & 4 deletions src/model/SymbolArt.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,10 @@ class SymbolArt {
case SymbolArtType.symbolArt:
shouldUpdateDimensions = SymbolArt.viewableDimensions.width !== 191 * SymbolArt.scaling;
SymbolArt.viewableDimensions = new Size({ width: 191 * SymbolArt.scaling, height: 95 * SymbolArt.scaling });
SymbolArt.maximumNumberOfSymbols = 225;
SymbolArt.maximumNumberOfContainers = 100;
break;
case SymbolArtType.allianceFlag:
shouldUpdateDimensions = SymbolArt.viewableDimensions.width !== 31 * SymbolArt.scaling;
SymbolArt.viewableDimensions = new Size({ width: 31 * SymbolArt.scaling, height: 31 * SymbolArt.scaling });
SymbolArt.maximumNumberOfSymbols = 25;
SymbolArt.maximumNumberOfContainers = 25;
break;
}
if (shouldUpdateDimensions && this._onTypeChanged) {
Expand Down
6 changes: 4 additions & 2 deletions src/view/UIOptionsView.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class UIOptionsView extends UIView {
targetHtmlElement: this._symbolArtTypeButton[0], onTap: () => {
if (UIApplication.shared.symbolArt.type === SymbolArtType.symbolArt)
return;
UIApplication.shared.symbolArt = new SymbolArt({ type: SymbolArtType.symbolArt });
UIApplication.shared.symbolArt.type = SymbolArtType.symbolArt;
UIApplication.shared.symbolArt = UIApplication.shared.symbolArt; // Trigger update
HistoryState.shared.pushHistory({ data: UIApplication.shared.symbolArt.clone() });
}
});
Expand All @@ -68,7 +69,8 @@ class UIOptionsView extends UIView {
targetHtmlElement: this._allianceFlagTypeButton[0], onTap: () => {
if (UIApplication.shared.symbolArt.type === SymbolArtType.allianceFlag)
return;
UIApplication.shared.symbolArt = new SymbolArt({ type: SymbolArtType.allianceFlag });
UIApplication.shared.symbolArt.type = SymbolArtType.allianceFlag;
UIApplication.shared.symbolArt = UIApplication.shared.symbolArt; // Trigger update
HistoryState.shared.pushHistory({ data: UIApplication.shared.symbolArt.clone() });
}
});
Expand Down

0 comments on commit 34a1434

Please sign in to comment.