mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-25 11:05:16 +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>()
|
gameSettings.timingDisplayComponents = new List<OverlaysManager.TimingDisplayComponent>()
|
||||||
{
|
{
|
||||||
OverlaysManager.TimingDisplayComponent.CreateDefaultDual()
|
OverlaysManager.TimingDisplayComponent.CreateDefaultSingle()
|
||||||
};
|
};
|
||||||
gameSettings.skillStarComponents = new List<OverlaysManager.SkillStarComponent>()
|
gameSettings.skillStarComponents = new List<OverlaysManager.SkillStarComponent>()
|
||||||
{
|
{
|
||||||
|
@ -186,6 +186,8 @@ namespace HeavenStudio.Common
|
||||||
public List<OverlaysManager.TimingDisplayComponent> timingDisplayComponents;
|
public List<OverlaysManager.TimingDisplayComponent> timingDisplayComponents;
|
||||||
public List<OverlaysManager.SkillStarComponent> skillStarComponents;
|
public List<OverlaysManager.SkillStarComponent> skillStarComponents;
|
||||||
public List<OverlaysManager.SectionComponent> sectionComponents;
|
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>();
|
List<OverlaysManager.OverlayOption> lytElements = new List<OverlaysManager.OverlayOption>();
|
||||||
|
|
||||||
public static bool OverlaysReady {get { return instance != null &&
|
public static bool OverlaysReady
|
||||||
TimingAccuracyDisplay.instance != null &&
|
{
|
||||||
SkillStarManager.instance != null &&
|
get
|
||||||
|
{
|
||||||
|
return instance != null &&
|
||||||
|
TimingAccuracyDisplay.instance != null &&
|
||||||
|
SkillStarManager.instance != null &&
|
||||||
SectionMedalsManager.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
|
// Start is called before the first frame update
|
||||||
public void Start()
|
public void Start()
|
||||||
|
@ -42,7 +48,7 @@ namespace HeavenStudio.Common
|
||||||
// Update is called once per frame
|
// Update is called once per frame
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void TogleOverlaysVisibility(bool visible)
|
public void TogleOverlaysVisibility(bool visible)
|
||||||
|
@ -87,16 +93,19 @@ namespace HeavenStudio.Common
|
||||||
|
|
||||||
foreach (var c in lytElements)
|
foreach (var c in lytElements)
|
||||||
{
|
{
|
||||||
if (c is TimingDisplayComponent) {
|
if (c is TimingDisplayComponent)
|
||||||
c.CreateElement(TimingDisplayPrefab, ComponentHolder);
|
{
|
||||||
|
c.CreateElement(TimingDisplayPrefab, ComponentHolder);
|
||||||
Debug.Log("Create TimingDisplayComponent");
|
Debug.Log("Create TimingDisplayComponent");
|
||||||
}
|
}
|
||||||
else if (c is SkillStarComponent) {
|
else if (c is SkillStarComponent)
|
||||||
c.CreateElement(SkillStarPrefab, ComponentHolder);
|
{
|
||||||
|
c.CreateElement(SkillStarPrefab, ComponentHolder);
|
||||||
Debug.Log("Create SkillStarComponent");
|
Debug.Log("Create SkillStarComponent");
|
||||||
}
|
}
|
||||||
else if (c is SectionComponent) {
|
else if (c is SectionComponent)
|
||||||
c.CreateElement(ChartSectionPrefab, ComponentHolder);
|
{
|
||||||
|
c.CreateElement(ChartSectionPrefab, ComponentHolder);
|
||||||
Debug.Log("Create SectionComponent");
|
Debug.Log("Create SectionComponent");
|
||||||
}
|
}
|
||||||
c.PositionElement();
|
c.PositionElement();
|
||||||
|
@ -114,7 +123,7 @@ namespace HeavenStudio.Common
|
||||||
c.PositionElement();
|
c.PositionElement();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class TimingDisplayComponent : OverlayOption
|
public class TimingDisplayComponent : OverlayOption
|
||||||
{
|
{
|
||||||
|
@ -169,10 +178,10 @@ namespace HeavenStudio.Common
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void EnablePreview() {}
|
public override void EnablePreview() { }
|
||||||
public override void DisablePreview() {}
|
public override void DisablePreview() { }
|
||||||
|
|
||||||
public static TimingDisplayComponent CreateDefaultDual()
|
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]
|
[Serializable]
|
||||||
public abstract class OverlayOption
|
public abstract class OverlayOption
|
||||||
{
|
{
|
||||||
|
|
|
@ -42,5 +42,7 @@ MonoBehaviour:
|
||||||
- Assets/Scripts/LevelEditor/Editor.cs
|
- Assets/Scripts/LevelEditor/Editor.cs
|
||||||
- Assets/Scripts/Common/MemRenderer.cs
|
- Assets/Scripts/Common/MemRenderer.cs
|
||||||
- Assets/Scripts/Games/BoardMeeting/BoardMeeting.cs
|
- Assets/Scripts/Games/BoardMeeting/BoardMeeting.cs
|
||||||
|
- Assets/Scripts/PersistentDataManager.cs
|
||||||
|
- Assets/Scripts/UI/Overlays/OverlaysManager.cs
|
||||||
PathsToSkipImportEvent: []
|
PathsToSkipImportEvent: []
|
||||||
PathsToIgnoreOverwriteSettingOnAttribute: []
|
PathsToIgnoreOverwriteSettingOnAttribute: []
|
||||||
|
|
Loading…
Reference in a new issue