Skip to content

Commit a37127d

Browse files
committed
feat: found culprit
1 parent 0ba9b60 commit a37127d

File tree

6 files changed

+1318
-216
lines changed

6 files changed

+1318
-216
lines changed

Assets/JCSUnity/Scripts/UI/Dropdown/JCS_DropdownScreenResolution.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ public void Refresh()
7777
if (mRemoveAllOptions)
7878
ClearOptions();
7979

80-
Debug.Log("what?");
81-
8280
foreach (Resolution res in Screen.resolutions.Reverse())
8381
{
8482
string text = FormatName(res.width, res.height);
@@ -96,6 +94,8 @@ public void Refresh()
9694

9795
JCS_UIUtil.Dropdown_SetSelection(this, res);
9896
}
97+
98+
JCS_UIUtil.Dropdown_RefreshSelection(this);
9999
}
100100

101101
private void OnValueChanged_Legacy(Dropdown dropdown)

Assets/JCSUnity/Scripts/UI/Dropdown/JCS_DropdownWindowedMode.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ public void Refresh()
9191

9292
JCS_UIUtil.Dropdown_SetSelection(this, text);
9393
}
94+
95+
JCS_UIUtil.Dropdown_RefreshSelection(this);
9496
}
9597

9698
private void OnValueChanged_Legacy(Dropdown dropdown)

Assets/JCSUnity/Scripts/UI/JCS_DropdownObject.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ public class JCS_DropdownObject : MonoBehaviour
2828
{
2929
/* Variables */
3030

31-
[Separator("Initialize Variables (JCS_TextObject)")]
31+
[Separator("Initialize Variables (JCS_DropdownObject)")]
3232

33-
[Tooltip("Target text renderer.")]
33+
[Tooltip("Target dropdown renderer.")]
3434
[SerializeField]
3535
protected Dropdown mDropdownLegacy = null;
3636

3737
#if TMP_PRO
38-
[Tooltip("Target text renderer. (TMP)")]
38+
[Tooltip("Target dropdown renderer. (TMP)")]
3939
[SerializeField]
4040
protected TMP_Dropdown mTMP_Dropdown = null;
4141
#endif
@@ -69,6 +69,9 @@ public int value
6969

7070
/* Functions */
7171

72+
/// <summary>
73+
/// Clear all options.
74+
/// </summary>
7275
public void ClearOptions()
7376
{
7477
if (this.mDropdownLegacy)

0 commit comments

Comments
 (0)