SHA256
forked from ADOFAIEditorForum/ADOFAIRenderer
Fix RenderButton
This commit is contained in:
2 files changed
+13
-4
No files matched your search
@@ -15,9 +15,9 @@ namespace ADOFAIRenderer.UI
|
|||||||
private const float BarPosX = 0f;
|
private const float BarPosX = 0f;
|
||||||
private const float BarPosY = -420f; // Y position relative to screen center (Reference: 1920x1080)
|
private const float BarPosY = -420f; // Y position relative to screen center (Reference: 1920x1080)
|
||||||
private const int BarTextFontSize = 16; // 눈에 띄게 증가된 텍스트 크기
|
private const int BarTextFontSize = 16; // 눈에 띄게 증가된 텍스트 크기
|
||||||
private static readonly Color BarBackgroundColor = new Color(0.08f, 0.08f, 0.1f, 0.7f);
|
private static readonly Color BarBackgroundColor = new Color(0.08f, 0.08f, 0.1f, 1.0f);
|
||||||
private static readonly Color BarFillColor = new Color(0.0f, 0.8f, 1.0f, 1.0f); // Sleek cyan/blue
|
private static readonly Color BarFillColor = new Color(0.0f, 0.8f, 1.0f, 1.0f); // Sleek cyan/blue
|
||||||
private static readonly Color BarTextColor = new Color(1.0f, 1.0f, 1.0f, 0.7f);
|
private static readonly Color BarTextColor = new Color(1.0f, 1.0f, 1.0f, 1.0f);
|
||||||
|
|
||||||
// --- Progress Bar Outline Configuration Constants ---
|
// --- Progress Bar Outline Configuration Constants ---
|
||||||
private static readonly Color BarOutlineColor = Color.white; // 대비되는 흰색 윤곽선
|
private static readonly Color BarOutlineColor = Color.white; // 대비되는 흰색 윤곽선
|
||||||
|
|||||||
+11
-2
@@ -18,13 +18,16 @@ namespace ADOFAIRenderer.UI
|
|||||||
[SerializeField] private TMP_InputField waitAfterEndInput = null!;
|
[SerializeField] private TMP_InputField waitAfterEndInput = null!;
|
||||||
[SerializeField] private TMP_InputField randomSeedInput = null!;
|
[SerializeField] private TMP_InputField randomSeedInput = null!;
|
||||||
|
|
||||||
[Header("Dropdowns")]
|
[Header("Dropdown")]
|
||||||
[SerializeField] private TMP_Dropdown codecDropdown = null!;
|
[SerializeField] private TMP_Dropdown codecDropdown = null!;
|
||||||
[SerializeField] private TMP_Dropdown bitrateModeDropdown = null!;
|
[SerializeField] private TMP_Dropdown bitrateModeDropdown = null!;
|
||||||
|
|
||||||
[Header("Toggles")]
|
[Header("Toggle")]
|
||||||
[SerializeField] private Toggle showHitTextToggle = null!;
|
[SerializeField] private Toggle showHitTextToggle = null!;
|
||||||
|
|
||||||
|
[Header("Button")]
|
||||||
|
[SerializeField] private Button advancedSettingsButton = null!;
|
||||||
|
|
||||||
[Header("Bitrate Dynamic UI Container")]
|
[Header("Bitrate Dynamic UI Container")]
|
||||||
[SerializeField] private RectTransform bitrateContainer = null!;
|
[SerializeField] private RectTransform bitrateContainer = null!;
|
||||||
|
|
||||||
@@ -39,6 +42,7 @@ namespace ADOFAIRenderer.UI
|
|||||||
{
|
{
|
||||||
_buttonComponent = GetComponent<Button>();
|
_buttonComponent = GetComponent<Button>();
|
||||||
_buttonComponent.onClick.AddListener(OnClick);
|
_buttonComponent.onClick.AddListener(OnClick);
|
||||||
|
advancedSettingsButton.onClick.AddListener(AdvancedSettingsClick);
|
||||||
|
|
||||||
RenderMod.FixEventSystem();
|
RenderMod.FixEventSystem();
|
||||||
|
|
||||||
@@ -257,6 +261,11 @@ namespace ADOFAIRenderer.UI
|
|||||||
RenderManager.Instance.SetupGameScene();
|
RenderManager.Instance.SetupGameScene();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void AdvancedSettingsClick()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
private bool IsAnyFieldEmpty()
|
private bool IsAnyFieldEmpty()
|
||||||
{
|
{
|
||||||
if (string.IsNullOrWhiteSpace(targetFPSInput.text)) return true;
|
if (string.IsNullOrWhiteSpace(targetFPSInput.text)) return true;
|
||||||
|
|||||||
Reference in new issue
Block a user