Files
Ultimate-Fishing-Simulator-…/Assets/Scripts/Assembly-CSharp/Michsky/UI/Heat/CreditsPreset.cs
2026-03-04 09:37:33 +08:00

54 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using UnityEngine;
namespace Michsky.UI.Heat
{
[CreateAssetMenu(fileName = "New Credits Preset", menuName = "Heat UI/Panel/New Credits Preset")]
public class CreditsPreset : ScriptableObject
{
[Serializable]
public class CreditsSection
{
public string headerTitle = "Header";
public string headerTitleKey = "Localization Key";
public List<string> items = new List<string>();
}
[Serializable]
public class MentionSection
{
public string ID = "ID";
public Sprite icon;
[TextArea]
public string description = "Description";
public string descriptionKey = "Localization Key";
[Range(0f, 100f)]
public int descriptionSpacing = 30;
[Range(0f, 400f)]
public int layoutSpacing = 160;
}
[Header("Settings")]
public Sprite backgroundSprite;
public int sectionSpacing = 70;
public int headerSpacing = 30;
public int nameListSpacing = 50;
[Space(10f)]
public List<CreditsSection> credits = new List<CreditsSection>();
public List<MentionSection> mentions = new List<MentionSection>();
}
}