mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-22 01:25:12 +00:00
default timing display is non-lazer
plan for future overlays?
This commit is contained in:
parent
89da70002f
commit
86d18d0590
3 changed files with 67 additions and 16 deletions
|
@ -48,7 +48,7 @@ namespace HeavenStudio.Common
|
|||
|
||||
gameSettings.timingDisplayComponents = new List<OverlaysManager.TimingDisplayComponent>()
|
||||
{
|
||||
OverlaysManager.TimingDisplayComponent.CreateDefaultDual()
|
||||
OverlaysManager.TimingDisplayComponent.CreateDefaultSingle()
|
||||
};
|
||||
gameSettings.skillStarComponents = new List<OverlaysManager.SkillStarComponent>()
|
||||
{
|
||||
|
@ -186,6 +186,8 @@ namespace HeavenStudio.Common
|
|||
public List<OverlaysManager.TimingDisplayComponent> timingDisplayComponents;
|
||||
public List<OverlaysManager.SkillStarComponent> skillStarComponents;
|
||||
public List<OverlaysManager.SectionComponent> sectionComponents;
|
||||
// public List<OverlaysManager.DurationComponent> durationComponents;
|
||||
// public List<OverlaysManager.WordJudgementComponent> wordJudgementComponents;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -26,11 +26,17 @@ namespace HeavenStudio.Common
|
|||
|
||||
List<OverlaysManager.OverlayOption> lytElements = new List<OverlaysManager.OverlayOption>();
|
||||
|
||||
public static bool OverlaysReady {get { return instance != null &&
|
||||
TimingAccuracyDisplay.instance != null &&
|
||||
SkillStarManager.instance != null &&
|
||||
public static bool OverlaysReady
|
||||
{
|
||||
get
|
||||
{
|
||||
return instance != null &&
|
||||
TimingAccuracyDisplay.instance != null &&
|
||||
SkillStarManager.instance != null &&
|
||||
SectionMedalsManager.instance != null &&
|
||||
HeavenStudio.Games.Global.Textbox.instance != null;}}
|
||||
HeavenStudio.Games.Global.Textbox.instance != null;
|
||||
}
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
public void Start()
|
||||
|
@ -42,7 +48,7 @@ namespace HeavenStudio.Common
|
|||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void TogleOverlaysVisibility(bool visible)
|
||||
|
@ -87,16 +93,19 @@ namespace HeavenStudio.Common
|
|||
|
||||
foreach (var c in lytElements)
|
||||
{
|
||||
if (c is TimingDisplayComponent) {
|
||||
c.CreateElement(TimingDisplayPrefab, ComponentHolder);
|
||||
if (c is TimingDisplayComponent)
|
||||
{
|
||||
c.CreateElement(TimingDisplayPrefab, ComponentHolder);
|
||||
Debug.Log("Create TimingDisplayComponent");
|
||||
}
|
||||
else if (c is SkillStarComponent) {
|
||||
c.CreateElement(SkillStarPrefab, ComponentHolder);
|
||||
else if (c is SkillStarComponent)
|
||||
{
|
||||
c.CreateElement(SkillStarPrefab, ComponentHolder);
|
||||
Debug.Log("Create SkillStarComponent");
|
||||
}
|
||||
else if (c is SectionComponent) {
|
||||
c.CreateElement(ChartSectionPrefab, ComponentHolder);
|
||||
else if (c is SectionComponent)
|
||||
{
|
||||
c.CreateElement(ChartSectionPrefab, ComponentHolder);
|
||||
Debug.Log("Create SectionComponent");
|
||||
}
|
||||
c.PositionElement();
|
||||
|
@ -114,7 +123,7 @@ namespace HeavenStudio.Common
|
|||
c.PositionElement();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Serializable]
|
||||
public class TimingDisplayComponent : OverlayOption
|
||||
{
|
||||
|
@ -169,10 +178,10 @@ namespace HeavenStudio.Common
|
|||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void EnablePreview() {}
|
||||
public override void DisablePreview() {}
|
||||
public override void EnablePreview() { }
|
||||
public override void DisablePreview() { }
|
||||
|
||||
public static TimingDisplayComponent CreateDefaultDual()
|
||||
{
|
||||
|
@ -263,6 +272,44 @@ namespace HeavenStudio.Common
|
|||
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class DurationComponent : OverlayOption
|
||||
{
|
||||
public override void DisablePreview()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void EnablePreview()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void PositionElement()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class WordJudgementComponent : OverlayOption
|
||||
{
|
||||
public override void DisablePreview()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void EnablePreview()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public override void PositionElement()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public abstract class OverlayOption
|
||||
{
|
||||
|
|
|
@ -42,5 +42,7 @@ MonoBehaviour:
|
|||
- Assets/Scripts/LevelEditor/Editor.cs
|
||||
- Assets/Scripts/Common/MemRenderer.cs
|
||||
- Assets/Scripts/Games/BoardMeeting/BoardMeeting.cs
|
||||
- Assets/Scripts/PersistentDataManager.cs
|
||||
- Assets/Scripts/UI/Overlays/OverlaysManager.cs
|
||||
PathsToSkipImportEvent: []
|
||||
PathsToIgnoreOverwriteSettingOnAttribute: []
|
||||
|
|
Loading…
Reference in a new issue