ui update

This commit is contained in:
2022-12-12 11:48:17 +01:00
parent b72ef28721
commit 7353d4ebbf
5 changed files with 176 additions and 146 deletions

View File

@@ -19,7 +19,7 @@ public class OptionMenu : MonoBehaviour
int currentResIndex = 0;
for (int i = 0; i < resolutions.Length; i++) {
string option = resolutions[i].width + " x " + resolutions[i].height;
string option = resolutions[i].width + " x " + resolutions[i].height + " @"+resolutions[i].refreshRate;
options.Add(option);
if(resolutions[i].width == Screen.currentResolution.width && resolutions[i].height == Screen.currentResolution.height) {
@@ -29,6 +29,7 @@ public class OptionMenu : MonoBehaviour
resolutionDropdown.AddOptions(options);
resolutionDropdown.value = currentResIndex;
//resolutionDropdown.itemText.fontSize = 18;
resolutionDropdown.RefreshShownValue();
}