Skip to content

Commit

Permalink
Gameplay: Fix scenecontrol related bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
0thElement committed Aug 15, 2024
1 parent 289a5d0 commit 7b67ebb
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 2,795 deletions.
128 changes: 10 additions & 118 deletions Assets/Fonts/NotoSans-Light SDF.asset

Large diffs are not rendered by default.

2,390 changes: 10 additions & 2,380 deletions Assets/Fonts/NotoSans-Regular SDF.asset

Large diffs are not rendered by default.

72 changes: 9 additions & 63 deletions Assets/Fonts/NotoSansJP-Regular SDF.asset

Large diffs are not rendered by default.

236 changes: 10 additions & 226 deletions Assets/Fonts/SourceCodePro-Regular SDF.asset

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Assets/Scenes/Compose.unity
Original file line number Diff line number Diff line change
Expand Up @@ -91169,7 +91169,7 @@ MonoBehaviour:
m_HandleRect: {fileID: 1931281401}
m_Direction: 2
m_Value: 1
m_Size: 0.88875276
m_Size: 0.8887528
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
Expand Down Expand Up @@ -106658,8 +106658,8 @@ MonoBehaviour:
m_TargetGraphic: {fileID: 505154477}
m_HandleRect: {fileID: 505154476}
m_Direction: 2
m_Value: 1.000001
m_Size: 0.9204472
m_Value: 1.000002
m_Size: 0.92044723
m_NumberOfSteps: 0
m_OnValueChanged:
m_PersistentCalls:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ private void RunScript()
if (File.Exists(perChartPath))
{
lastPath = perChartPath;
LuaRunner.RunScript(File.ReadAllText(perChartPath), this, new ScriptLoader(perChartPath));
LuaRunner.RunScript(File.ReadAllText(perChartPath), this, new ScriptLoader(folderPath));
}
}
catch (Exception e)
Expand Down
1 change: 1 addition & 0 deletions Assets/Scripts/Compose/Rendering/FrameRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public async UniTask RenderVideo(CancellationToken token, RenderStatusDelegate o
Services.Grid.IsGridEnabled = false;
Services.Cursor.EnableLaneCursor = false;
await Services.Gameplay.Audio.PrepareVideoPlayback();
await UniTask.Delay(500);

bool shouldUpdateTiming = false;
float unityStartTime = Time.time;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public override List<object> SerializeProperties(ScenecontrolSerialization seria

public override float ValueAt(int timing)
{
return Screen.height;
return Services.Camera.GameplayCamera.pixelHeight;
}

protected override IEnumerable<ValueChannel> GetChildrenChannels()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public override List<object> SerializeProperties(ScenecontrolSerialization seria

public override float ValueAt(int timing)
{
return Screen.width;
return Services.Camera.GameplayCamera.pixelWidth;
}

protected override IEnumerable<ValueChannel> GetChildrenChannels()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ public void EnablePostProcess()
[MoonSharpHidden]
public void DisablePostProcess()
{
layer.enabled = false || Settings.DisableAdvancedGraphics.Value;
volume.enabled = false || Settings.DisableAdvancedGraphics.Value;
layer.enabled = false;
volume.enabled = false;
}

private void Awake()
Expand Down
1 change: 1 addition & 0 deletions Assets/Scripts/Storage/Loader/GameplayLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ private void LoadChart(LevelStorage level, ChartSettings chart)

private void LoadMetadata(LevelStorage level, ChartSettings chart)
{
gameplayData.BaseBpm.Value = chart.BaseBpm;
gameplayControl.Skin.AlignmentSkin = chart.Skin?.Side ?? string.Empty;
gameplayControl.Skin.AccentSkin = chart.Skin?.Accent ?? string.Empty;
gameplayControl.Skin.NoteSkin = chart.Skin?.Note ?? string.Empty;
Expand Down

0 comments on commit 7b67ebb

Please sign in to comment.