2394425147 / 2394425147/astrodx

[Bug] Chart menu does not tile properly when device orientation changes

Open
#198 1 comment 0 reactions 0 assignees View on GitHub
bug in-progress
Dominant language
C#
Stars
1.9k
Forks
63
PR merge metrics
No merged PRs in 30d

Description

### ⠀

- [x] This issue is not duplicated with any other open or closed issues

### Describe the bug

The charts do not tile by the correct number of columns (e.g. 4 columns by default) when exiting a level in a different orientation (i.e. exiting a chart in portrait mode when the chart menu is in landscape). Instead, it only uses 1 column to display charts, sometimes split into different columns.

### Expected behavior

When exiting a chart in a different orientation, the chart menu should display the correct number of columns (e.g. 4 and not 1).

### Steps to reproduce

1. Launch the game in landscape mode
2. Play a chart in portrait mode
3. Exit the chart

### Device information

Device: Redmi Note 12 Pro+
System: Android 14 (HyperOS 2.0.3.0.UMOCNXM)
Version: v2.0.0.beta.4.patch.7

### Screenshots

![Image](https://github.com/user-attachments/assets/c46bad30-ea1e-4d1a-8730-be3669d1b6b4)
Bugged menu

![Image](https://github.com/user-attachments/assets/cc978a76-dec4-4a61-9a50-ea1ee4fcc3a5)
Expected menu

### Additional context

Might be caused by this fix in [v2.0.0.beta.4.patch.7](https://github.com/2394425147/astrodx/releases/tag/v2.0.0.beta.4.patch.7):
> UI Animation: Improved overall animation performance

Contributor guide

No contributing guide indexed for this repository

Research direction

Look at the chart menu UI layout code, likely in a script handling grid or tile arrangement. The bug is triggered by an orientation change; check how the column count is calculated or reset when returning from a chart scene. Reproduce by following the steps on an Android device or emulator, and inspect the UI state after orientation changes.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
game-dev, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.