Skip to content

Commit

Permalink
Merge pull request #101 from PlayingKarrde/working
Browse files Browse the repository at this point in the history
Fixed several small bugs
  • Loading branch information
PlayingKarrde authored Oct 27, 2019
2 parents 4400b2a + 345e5ab commit 763c362
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 13 deletions.
5 changes: 3 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# gameOS v0.6.7
# gameOS v0.6.7.1

![gameOS Pegasus theme](https://i.imgur.com/Zzq3q1n.png)

Expand Down Expand Up @@ -39,8 +39,9 @@ If no media files are showing up, make sure that Skraper Assets is checked in th
## Version history
v0.6.7.1
- Fixed crash on Android
- Fixed back button not returning to game details while watching preview video
- Added WiiWare logo
- Hiding text title when selected (only happens when no logo is found)
- Fixed back button exiting game details when viewing video preview

v0.6.7
- Major performance improvements (thanks to @SinisterSpatula for finding the fix)
Expand Down
29 changes: 23 additions & 6 deletions layer_details/GameDetails2.qml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ Item {
property int padding: vpx(50)
property int cornerradius: vpx(8)
property bool showVideo: false
property bool boxAvailable: gameData.assets.boxFront
property bool boxAvailable: gameData.assets.boxFront != null
property bool moreDetailsToggle: false
property int videooffset: vpx(330)
property int numbuttons: (gameData.assets.videos.length != null) ? 4 : 3

signal launchRequested
signal detailsCloseRequested
signal filtersRequested
signal videoPreview
signal moreDetails
signal switchCollection(int collectionIdx)


Expand All @@ -39,6 +41,19 @@ Item {
}
}

onMoreDetailsToggleChanged: {
if (moreDetailsToggle)
{
console.log("moreDetailsToggle: False");
moreDetailsToggle = false;
}
else
{
console.log("moreDetailsToggle: True");
moreDetailsToggle = true;
}
}

visible: (backgroundbox.opacity == 0) ? false : true
opacity: 1
Behavior on opacity { NumberAnimation { duration: 100 } }
Expand Down Expand Up @@ -72,7 +87,11 @@ Item {
}
if (api.keys.isCancel(event)) {
event.accepted = true;
closedetails();
if (showVideo)
toggleVideo();
else
closedetails();

return;
}
if (api.keys.isNextPage(event) || api.keys.isPrevPage(event)) {
Expand Down Expand Up @@ -101,6 +120,7 @@ Item {
metadata.opacity = 1;
infoContainer.opacity = 1;
gameDescription.opacity = 1;
videoBtn.focus = true
} else {
// VIDEO
showVideo = true
Expand All @@ -112,6 +132,7 @@ Item {
metadata.opacity = 0;
infoContainer.opacity = 0;
gameDescription.opacity = 0;
videoBackBtn.focus = true
}
}
}
Expand Down Expand Up @@ -418,13 +439,11 @@ Item {
Keys.onPressed: {
if (api.keys.isAccept(event) && !event.isAutoRepeat) {
event.accepted = true;
videoBackBtn.focus = true
toggleVideo();
}
}
onClicked: {
//focus = true
videoBackBtn.focus = true
toggleVideo();
}

Expand Down Expand Up @@ -560,13 +579,11 @@ Item {
if (api.keys.isAccept(event) && !event.isAutoRepeat) {
event.accepted = true;
toggleVideo();
videoBtn.focus = true;
}
}
onClicked: {
focus = true
toggleVideo();
videoBtn.focus = true;
}

// Round the corners
Expand Down
4 changes: 3 additions & 1 deletion layer_grid/GameGridItem.qml
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ Item {
text: game.title
width: itemcontainer.width - vpx(30)
anchors { margins: vpx(10) }
color: selected ? "orange" : "white"
color: "white"
opacity: selected ? 0 : 1
Behavior on opacity { NumberAnimation { duration: 100 } }
font.pixelSize: vpx(18)
//font.family: openSans
font.bold: true
Expand Down
8 changes: 4 additions & 4 deletions layer_menu/PlatformMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Item {
}

// Settings screen
Settings {
/*Settings {
id: settings
visible: false
focus: false
Expand All @@ -275,7 +275,7 @@ Item {
width: parent.width
height: parent.height
onCloseRequested: toggleSettings()
}
}*/

LinearGradient {
width: vpx(2)
Expand All @@ -285,8 +285,8 @@ Item {
right: parent.right
bottom: parent.bottom
}
/*start: Qt.point(0, 0)
end: Qt.point(0, height)*/
//start: Qt.point(0, 0)
//end: Qt.point(0, height)
gradient: Gradient {
GradientStop { position: 0.0; color: "#00ffffff" }
GradientStop { position: 0.5; color: "#ffffffff" }
Expand Down

0 comments on commit 763c362

Please sign in to comment.