Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

Commit

Permalink
fix missing init of main menu popup in G3X (#1269)
Browse files Browse the repository at this point in the history
* fix missing init of main menu popup in G3X

* remove superfluous console.logs
  • Loading branch information
kaosfere authored Jul 27, 2021
1 parent e4029af commit c3815d8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion PackageDefinitions/workingtitle-gx-metapackage.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<AssetPackage Name="workingtitle-gx" Version="0.1.0-dev9">
<AssetPackage Name="workingtitle-gx" Version="0.1.0-dev10">
<ItemSettings>
<ContentType>CUSTOM</ContentType>
<Title>Working Title GX</Title>
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@ Project | Description | Current Version | Documentation
--------|-------------|-----------------|--------------
CJ4 | OPEN BETA - Performance and avionics improvements for the Citation CJ4 | [v0.12.6](https://github.com/Working-Title-MSFS-Mods/fspackages/releases/tag/cj4-v0.12.6) | [docs](https://github.com/Working-Title-MSFS-Mods/fspackages/tree/main/docs/workingtitle-cj4)
G1000 | Fixes and enhancements for the stock G1000 avionics package | [v0.4.0](https://github.com/Working-Title-MSFS-Mods/fspackages/releases/tag/g1000-v0.4.0) | [docs](https://github.com/Working-Title-MSFS-Mods/fspackages/tree/main/docs/workingtitle-g1000)
G3000 | Fixes and enhancements for the stock G3000 avionics package | [v0.7.4](https://github.com/Working-Title-MSFS-Mods/fspackages/releases/tag/g3000-v0.7.4a) | [docs](https://github.com/Working-Title-MSFS-Mods/fspackages/tree/main/docs/workingtitle-g3000)
GX | Fixes and enhancements for the stock G3X Touch avionics package | [v0.1.0-dev9](https://github.com/Working-Title-MSFS-Mods/fspackages/releases/tag/gx-v0.1.0-dev9) | [docs](https://github.com/Working-Title-MSFS-Mods/fspackages/tree/main/docs/workingtitle-gx)

G3000 | Fixes and enhancements for the stock G3000 avionics package | [v0.7.4](https://github.com/Working-Title-MSFS-Mods/fspackages/releases/tag/g3000-v0.7.4) | [docs](https://github.com/Working-Title-MSFS-Mods/fspackages/tree/main/docs/workingtitle-g3000)
GX | Fixes and enhancements for the stock G3X Touch avionics package | [v0.1.0-dev10](https://github.com/Working-Title-MSFS-Mods/fspackages/releases/tag/gx-v0.1.0-dev10) | [docs](https://github.com/Working-Title-MSFS-Mods/fspackages/tree/main/docs/workingtitle-gx)
3 changes: 3 additions & 0 deletions docs/workingtitle-gx/CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Changes in 0.1.0-dev10
* Fix bug that caused menu button to not open main MFD menu.

# Changes in 0.1.0-dev9
* Compatibility with SU5.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,13 +772,13 @@ class AS3X_Touch_Popup extends NavSystemElement {
this.root = root;
}
onEnter() {
this.root.setAttribute("state", "Active");
diffAndSetAttribute(this.root, "state", "Active");
}
onUpdate() {
super.onUpdate();
}
onExit() {
this.root.setAttribute("state", "Inactive");
diffAndSetAttribute(this.root, "state", "Inactive");
}
onEvent(_event) {
}
Expand Down Expand Up @@ -841,6 +841,7 @@ class AS3X_Touch_AFCSMenu extends AS3X_Touch_Popup {
}
class AS3X_Touch_PageMenu extends AS3X_Touch_Popup {
init(root) {
super.init(root);
this.buttons = [];
this.menuElements = root.getElementsByClassName("menuElements")[0];
}
Expand Down

0 comments on commit c3815d8

Please sign in to comment.