Skip to content

Commit

Permalink
🔀️ Merge branch 'hugo/feature/Update-DanceFreeze-and-Melody-LauncherV…
Browse files Browse the repository at this point in the history
…iew' into develop
  • Loading branch information
ladislas committed Sep 17, 2024
2 parents 6c07b8d + 9c25e50 commit eca773b
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@ extension DanceFreezeView {
.padding(.top, 30)

HStack(spacing: 30) {
GameEngineKitAsset.Exercises.DanceFreeze.imageIllustration.swiftUIImage
.resizable()
.aspectRatio(contentMode: .fit)
.padding(80)

VStack(spacing: 0) {
GameEngineKitAsset.Exercises.DanceFreeze.imageIllustration.swiftUIImage
.resizable()
.aspectRatio(contentMode: .fit)
.padding(80)
MotionSelectorView(motion: self.$motion)

SongSelectorView(
songs: self.songs,
selectedAudioRecording: self.$selectedAudioRecording
)
}

SongSelectorView(
songs: self.songs,
selectedAudioRecording: self.$selectedAudioRecording
)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding(20)

HStack(spacing: 70) {
Button {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ extension DanceFreezeView {
}
}
}
.padding(.vertical, 15)
.padding(.horizontal, 40)
}

// MARK: Private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ extension DanceFreezeView {
Image(uiImage: UIImage(named: self.image)!)
.resizable()
.scaledToFit()
.frame(maxWidth: 100)
} else if self.image.isVectorImageFile {
SVGView(contentsOf: URL(fileURLWithPath: self.image))
.scaledToFit()
.frame(maxWidth: 100)
}
Text(self.text)
}
.frame(maxHeight: 70)
.frame(maxHeight: 150)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ extension MelodyView {
GameEngineKitAsset.Exercises.Melody.iconKeyboardPartial.swiftUIImage
.resizable()
.scaledToFit()
.frame(width: 130)
Text(l10n.MelodyView.partialKeyboardLabel)
.foregroundStyle(self.keyboard == .partial ? self.styleManager.accentColor! : .primary)
}
Expand All @@ -58,6 +59,7 @@ extension MelodyView {
GameEngineKitAsset.Exercises.Melody.iconKeyboardFull.swiftUIImage
.resizable()
.scaledToFit()
.frame(width: 130)
Text(l10n.MelodyView.fullKeyboardLabel)
.foregroundStyle(self.keyboard == .full ? self.styleManager.accentColor! : .primary)
}
Expand All @@ -69,8 +71,6 @@ extension MelodyView {
}
}
}
.padding(.vertical, 15)
.padding(.horizontal, 40)
}

// MARK: Private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,18 @@ extension MelodyView {
var body: some View {
VStack(spacing: 50) {
HStack(spacing: 30) {
GameEngineKitAsset.Exercises.Melody.imageIllustration.swiftUIImage
.resizable()
.aspectRatio(contentMode: .fit)
.padding(80)
VStack(spacing: 20) {
GameEngineKitAsset.Exercises.Melody.imageIllustration.swiftUIImage
.resizable()
.aspectRatio(contentMode: .fit)

VStack(spacing: 0) {
KeyboardModeView(keyboard: self.$keyboard)

SongSelectorView(songs: self.songs, selectedMidiRecording: self.$selectedSong)
}

SongSelectorView(songs: self.songs, selectedMidiRecording: self.$selectedSong)
}
.frame(maxWidth: .infinity, maxHeight: .infinity)
.padding(20)

Button {
self.mode = .selectionConfirmed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ extension MelodyView {
}
}
}
.padding(.horizontal, 40)
}

// MARK: Private
Expand Down Expand Up @@ -86,13 +85,14 @@ extension MelodyView {
Image(uiImage: UIImage(named: self.image)!)
.resizable()
.scaledToFit()
.frame(maxWidth: 100)
} else if self.image.isVectorImageFile {
SVGView(contentsOf: URL(fileURLWithPath: self.image))
.scaledToFit()
.frame(maxWidth: 100)
}
Text(self.text)
}
.frame(maxHeight: 70)
}
}
}
Expand Down

0 comments on commit eca773b

Please sign in to comment.