UI换了很多,spine主视觉停用
This commit is contained in:
@@ -6,7 +6,7 @@ using DG.Tweening;
|
||||
|
||||
public class SongButton : MonoBehaviour
|
||||
{
|
||||
private const bool VerboseLogs = false;
|
||||
private static readonly bool VerboseLogs = false;
|
||||
[Header("thisSong_so")]
|
||||
public ScriptableObject thisSong_so;
|
||||
[Header("Inspector")]
|
||||
@@ -114,13 +114,13 @@ public class SongButton : MonoBehaviour
|
||||
if (songNameText != null) songNameText.text = sd.songName;
|
||||
|
||||
if (multiNameText != null)
|
||||
multiNameText.text = "Artist: " + sd.artistName + " | Illustrator: " + sd.painter + " | Charter: " + sd.level_creator;
|
||||
multiNameText.text = LocalizationService.GetFormat("song.button.artist_info", sd.artistName, sd.painter, sd.level_creator);
|
||||
|
||||
if (joinTime_and_dlcName_Text != null)
|
||||
{
|
||||
string join = string.IsNullOrEmpty(sd.thisLevel_addDateString) ? "Unknown" : sd.thisLevel_addDateString;
|
||||
string dlc = string.IsNullOrEmpty(sd.belongsTo_whichDLC) ? "Unknown DLC" : sd.belongsTo_whichDLC;
|
||||
joinTime_and_dlcName_Text.text = "Release: " + join + " | DLC: " + dlc;
|
||||
joinTime_and_dlcName_Text.text = LocalizationService.GetFormat("song.button.release_info", join, dlc);
|
||||
}
|
||||
|
||||
if (songOverallDescriptionText != null)
|
||||
@@ -190,16 +190,16 @@ public class SongButton : MonoBehaviour
|
||||
}
|
||||
|
||||
song_songSerialID = songID;
|
||||
if (songIDText != null) songIDText.text = "Song ID: " + song_songSerialID.ToString();
|
||||
if (songIDText != null) songIDText.text = LocalizationService.GetFormat("song.button.song_id", song_songSerialID);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (songNameText != null) songNameText.text = songName;
|
||||
if (highestScoreText != null) highestScoreText.text = "PR: " + highestScore.ToString();
|
||||
if (highestScoreText != null) highestScoreText.text = LocalizationService.GetFormat("song.button.highest_score", highestScore);
|
||||
if (difficultyIDText != null) difficultyIDText.text = difficultyID.ToString();
|
||||
if (buttonImage != null) buttonImage.sprite = songSprite;
|
||||
song_songSerialID = songID;
|
||||
if (songIDText != null) songIDText.text = "Song ID: " + song_songSerialID.ToString();
|
||||
if (songIDText != null) songIDText.text = LocalizationService.GetFormat("song.button.song_id", song_songSerialID);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,7 +261,7 @@ public class SongButton : MonoBehaviour
|
||||
FadeInSelectedBorder();
|
||||
|
||||
SongDataHolder.SelectedSongData = selectedSong;
|
||||
var selectedInfo = Object.FindAnyObjectByType<selected_songInfo>();
|
||||
var selectedInfo = SceneObjectLookupCache.FindAny<selected_songInfo>();
|
||||
if (selectedInfo != null)
|
||||
{
|
||||
selectedInfo.UpdateSelectedSongDisplay();
|
||||
|
||||
Reference in New Issue
Block a user