last of the assetbundle definitions

fix input scheduling not taking into account what minigame is actually active at the target time
fix input disable and autoplay jank
prep "friendly program name" define
title screen adjustments
remove bread2unity
This commit is contained in:
minenice55
2024-01-14 02:18:46 -05:00
parent 8f33212e0c
commit 35832c2dfc
92 changed files with 354 additions and 819 deletions

View File

@ -44,6 +44,7 @@ namespace HeavenStudio
[SerializeField] private GameObject playPanel;
[SerializeField] private TMP_Text chartTitleText;
[SerializeField] private TMP_Text chartMapperText;
[SerializeField] private TMP_Text chartIdolText;
[SerializeField] private TMP_Text chartDescText;
[SerializeField] private TMP_Text chartStyleText;
@ -51,6 +52,7 @@ namespace HeavenStudio
[SerializeField] private Selectable defaultSelectable;
[SerializeField] private RectTransform selectedDisplayRect;
[SerializeField] private GameObject selectedDisplayIcon;
[SerializeField] private GameObject[] otherHiddenOnMouse;
private AudioSource musicSource;
@ -91,7 +93,9 @@ namespace HeavenStudio
selectedDisplayAnim = anim;
}
#if UNITY_EDITOR
#if HEAVENSTUDIO_PROD
versionText.text = GlobalGameManager.friendlyReleaseName;
#elif UNITY_EDITOR
versionText.text = "EDITOR";
#else
versionText.text = Application.buildGUID.Substring(0, 8) + " " + AppInfo.Date.ToString("dd/MM/yyyy hh:mm:ss");
@ -163,6 +167,10 @@ namespace HeavenStudio
PlayerInput.CurrentControlStyle = nextController.GetDefaultStyle();
usingMouse = PlayerInput.CurrentControlStyle == InputController.ControlStyles.Touch;
selectedDisplayIcon.SetActive(!usingMouse);
foreach (var obj in otherHiddenOnMouse)
{
obj.SetActive(!usingMouse);
}
if ((lastController as InputJoyshock) != null)
{
@ -300,6 +308,10 @@ namespace HeavenStudio
{
usingMouse = false;
selectedDisplayIcon.SetActive(true);
foreach (var obj in otherHiddenOnMouse)
{
obj.SetActive(true);
}
}
currentSelectable.GetComponent<Button>()?.onClick.Invoke();
}
@ -311,6 +323,10 @@ namespace HeavenStudio
{
usingMouse = false;
selectedDisplayIcon.SetActive(true);
foreach (var obj in otherHiddenOnMouse)
{
obj.SetActive(true);
}
currentSelectable = currentSelectable.FindSelectableOnUp();
currentSelectable.Select();
SetSelectableRectTarget(currentSelectable);
@ -329,6 +345,10 @@ namespace HeavenStudio
{
usingMouse = false;
selectedDisplayIcon.SetActive(true);
foreach (var obj in otherHiddenOnMouse)
{
obj.SetActive(true);
}
currentSelectable = currentSelectable.FindSelectableOnDown();
currentSelectable.Select();
SetSelectableRectTarget(currentSelectable);
@ -347,6 +367,10 @@ namespace HeavenStudio
{
usingMouse = false;
selectedDisplayIcon.SetActive(true);
foreach (var obj in otherHiddenOnMouse)
{
obj.SetActive(true);
}
currentSelectable = currentSelectable.FindSelectableOnLeft();
currentSelectable.Select();
SetSelectableRectTarget(currentSelectable);
@ -365,6 +389,10 @@ namespace HeavenStudio
{
usingMouse = false;
selectedDisplayIcon.SetActive(true);
foreach (var obj in otherHiddenOnMouse)
{
obj.SetActive(true);
}
currentSelectable = currentSelectable.FindSelectableOnRight();
currentSelectable.Select();
SetSelectableRectTarget(currentSelectable);
@ -388,6 +416,10 @@ namespace HeavenStudio
mouseSelectable = selectable;
usingMouse = true;
selectedDisplayIcon.SetActive(false);
foreach (var obj in otherHiddenOnMouse)
{
obj.SetActive(false);
}
}
if (currentSelectable != selectable && usingMouse)
{
@ -490,6 +522,7 @@ namespace HeavenStudio
chartTitleText.text = beatmap["remixtitle"];
chartMapperText.text = beatmap["remixauthor"];
chartDescText.text = beatmap["remixdesc"];
chartIdolText.text = "♪ " + beatmap["idolcredit"];
chartStyleText.text = $"Recommended Control Style: {beatmap["playstyle"].ToString()}";
playPanel.SetActive(true);
@ -524,10 +557,15 @@ namespace HeavenStudio
public void SocialsPressed()
{
snsRevealed = true;
snsVersionText.text = GlobalGameManager.buildTime;
snsPanel.SetActive(true);
// snsRevealed = true;
// #if HEAVENSTUDIO_PROD
// snsVersionText.text = GlobalGameManager.friendlyReleaseName;
// #else
// snsVersionText.text = GlobalGameManager.buildTime;
// #endif
// snsPanel.SetActive(true);
SoundByte.PlayOneShot("ui/UISelect");
Application.OpenURL("https://github.com/RHeavenStudio/HeavenStudio");
// show a panel with our SNS links
}