mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-10 03:35:10 +00:00
3a4279ce5e
* Air Rally Text Update * Blue Bear Text Update * Board Meeting Text Update * Built To Scale DS Text Update also changed Air Rally's assetbundle tag from "normal" to "keep" * Catchy Tune Text Update also changed some minor wording in Board Meeting and Built To Scale DS * Cheer Readers Text Update * The Clappy Trio Text Update * Coin Toss Text Update * Crop Stomp Text Update * DJ School Text Update * Dog Ninja Text Update * Double Date Text Update * Drumming Practice Text Update * Fan Club Text Update * Fireworks Text Update * Second Contact Text Update * Flipper-Flop Text Update also fix an error in Catchy Tune * Fork Lifter Text Update * Glee Club Text Update * Karate Man Text Update also minor updates to other games * Kitties! Text Update * Launch Party Text Update * Lockstep Text Update * Marching Orders Text Update * Meat Grinder Text Update also fixed an error in Second Contact * Mr. Upbeat Text Update * Munchy Monk Text Update * Octopus Machine Text Update * Pajama Party Text Update * Quiz Show Text Update also changed some wording in meat grinder * Rhythm Rally Text Update * Rhythm Somen Text Update that was easy * Rhythm Tweezers Text Update * Ringside Text Update * Rockers Text Update this sucked * Samurai Slice DS Text Update * See Saw Text Update * Sneaky Spirits Text Update * Spaceball Text Update * Space Dance Text Update * Space Soccer Text Update * Splashdown Text Update * Tambourine Text Update * Tap Trial Text Update * Tap Troupe Text Update * The Dazzles Text Update * Toss Boys Text Update * Tram & Pauline Text Update also added translation for Fireworks * Tunnel Text Update * Wizard's Waltz Text Update * Working Dough Text Update * fix compiler errors * fix editor offset bug(?) * fix missing param in second contact * Ball Redispense text * remove space soccer swing * Trick on the Class Text Update * Non-Game Text Update * fix pre-function sorting * camera shake ease * remove a bunch of prints * rhythm tweezers bug fix * Update Credits.txt * ssds nop samurai bop * swap order of shake properties * Update FirstContact.cs --------- Co-authored-by: minenice55 <star.elementa@gmail.com>
72 lines
No EOL
1.7 KiB
C#
72 lines
No EOL
1.7 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using HeavenStudio.Editor.Track;
|
|
using HeavenStudio.Util;
|
|
using HeavenStudio.StudioDance;
|
|
|
|
using TMPro;
|
|
|
|
namespace HeavenStudio.Editor
|
|
{
|
|
public class CreditsLegalSettings : TabsContent
|
|
{
|
|
private static int SecretCounter = 0;
|
|
private static bool SecretActive = false;
|
|
[SerializeField] private TextAsset creditsText;
|
|
[SerializeField] private TMP_Text creditsDisplay;
|
|
[SerializeField] private GameObject secretObject;
|
|
|
|
private void Start()
|
|
{
|
|
SecretActive = false;
|
|
SecretCounter = 0;
|
|
secretObject.SetActive(false);
|
|
}
|
|
|
|
public void OnClickCountUp()
|
|
{
|
|
SecretCounter++;
|
|
if (SecretCounter == 10 && Editor.instance != null)
|
|
{
|
|
secretObject.SetActive(true);
|
|
}
|
|
}
|
|
|
|
public static void OnClickSecret()
|
|
{
|
|
if (SecretActive) return;
|
|
|
|
SecretActive = true;
|
|
SoundByte.PlayOneShot("applause");
|
|
|
|
if (Editor.instance == null)
|
|
{
|
|
|
|
}
|
|
else
|
|
{
|
|
Editor.instance.StudioDanceManager.OpenDanceWindow();
|
|
}
|
|
}
|
|
|
|
public static void MakeSecretInactive()
|
|
{
|
|
SecretCounter = 0;
|
|
SecretActive = false;
|
|
}
|
|
|
|
public override void OnOpenTab()
|
|
{
|
|
creditsDisplay.text = creditsText.text;
|
|
if (SecretCounter == 0)
|
|
{
|
|
secretObject.SetActive(false);
|
|
}
|
|
}
|
|
|
|
public override void OnCloseTab()
|
|
{
|
|
}
|
|
}
|
|
} |