Reworked option menu to be a bit more modern. Changed controls to fit other games a bit better

This commit is contained in:
finnchen123
2026-02-14 17:06:20 +01:00
parent 8b95aab282
commit 55ba43401d
11 changed files with 1633 additions and 1988 deletions

File diff suppressed because one or more lines are too long

View File

@@ -57,8 +57,6 @@ namespace Assets.Scripts.Menu
options.transform.localScale = new Vector3(1, 1, 1);
characterCreation.transform.localScale = new Vector3(0, 0, 0);
FileHandler.loadOptionDisplay();
EventSystem.current.SetSelectedGameObject(GameObject.Find("btnAudio"));
showOptionView("audio");
}
public void closeOptions()
@@ -150,22 +148,6 @@ namespace Assets.Scripts.Menu
return characterCreation.activeSelf;
}
public void showOptionView(string key)
{
GameObject optionContent = GameObject.Find("pnlContent");
for (int i = 0; i < optionContent.transform.childCount; i++)
{
if (optionContent.transform.GetChild(i).name.ToLower().Contains(key))
{
optionContent.transform.GetChild(i).transform.localScale = new Vector3(1, 1, 1);
}
else
{
optionContent.transform.GetChild(i).transform.localScale = new Vector3(0, 0, 0);
}
}
}
public void switchLanguage()
{
GameObject language = GameObject.Find("dropLanguage");