add : credits screen

This commit is contained in:
Ferlat Thibaud
2026-06-12 17:55:30 +02:00
parent 6c22a6bd2e
commit 882230fba4
6 changed files with 21179 additions and 21 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bbf0842a8ea725e4f89a325515383694
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+6 -6
View File
@@ -1182,7 +1182,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1577459058111990624, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: CollisionModule.enabled
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1577459058111990624, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: NoiseModule.strength.scalar
@@ -7137,11 +7137,11 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 385079515118636312, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: m_LocalPosition.y
value: 104
value: 97
objectReference: {fileID: 0}
- target: {fileID: 385079515118636312, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: m_LocalPosition.z
value: -4.8
value: 6.3
objectReference: {fileID: 0}
- target: {fileID: 385079515118636312, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: m_LocalRotation.w
@@ -7237,7 +7237,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1577459058111990624, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: CollisionModule.enabled
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1577459058111990624, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: NoiseModule.strength.scalar
@@ -12202,7 +12202,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1577459058111990624, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: CollisionModule.enabled
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1577459058111990624, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: NoiseModule.strength.scalar
@@ -12701,7 +12701,7 @@ PrefabInstance:
objectReference: {fileID: 0}
- target: {fileID: 1577459058111990624, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: CollisionModule.enabled
value: 1
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1577459058111990624, guid: 8620ef2cc1e6ca44d9e945ca77f5b708, type: 3}
propertyPath: NoiseModule.strength.scalar
@@ -3,6 +3,7 @@ using UnityEngine.UI;
using UnityEngine.EventSystems;
using System;
using System.Collections;
using OctoCore.Navigation;
// Holds a graphic target with its own normal and highlighted colors
[Serializable]
@@ -59,7 +60,10 @@ public class MultiTargetButton : MonoBehaviour,
}
// Mouse
public void OnPointerEnter(PointerEventData e) => Activate();
public void OnPointerEnter(PointerEventData e) {
if (Time.time < OctoMainMenu.IgnoreMouseUntil) return;
Activate();
}
public void OnPointerExit(PointerEventData e) {
// If persist is on, do nothing on exit — next Activate() will clean up
if (!PersistLastHovered) SetHighlight(false);
@@ -3,6 +3,7 @@ using OctoCore.Navigation.Data;
using OctoCore.UI;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.InputSystem;
using UnityEngine.UI;
namespace OctoCore.Navigation
@@ -104,18 +105,28 @@ namespace OctoCore.Navigation
}
}
// --- Add your custom button methods below ---
public void SelectMainDefaultButton()
{
StartCoroutine(SelectAfterFrame(_mainPanelDefaultButton));
}
public void SelectDebugFirstButton()
{
EventSystem.current.SetSelectedGameObject(_optionalPanelFirstButton.gameObject);
StartCoroutine(SelectAfterFrame(_optionalPanelFirstButton));
}
public void SelectMainDefaultButton()
private IEnumerator SelectAfterFrame(Button button)
{
EventSystem.current.SetSelectedGameObject(_mainPanelDefaultButton.gameObject);
MultiTargetButton.ClearPersistence();
EventSystem.current.SetSelectedGameObject(button.gameObject);
// Ignore mouse hover for 0.1s so it doesn't steal selection
OctoMainMenu.IgnoreMouseUntil = Time.time + 0.1f;
yield break;
}
// Exposed so MultiTargetButton can check before activating on hover
public static float IgnoreMouseUntil = 0f;
public void ClearButtonPersistence()
{
MultiTargetButton.ClearPersistence();