Reworked option menu to be a bit more modern. Changed controls to fit other games a bit better
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user