update
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.Menu;
|
||||
using MoreMountains.Tools;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Ichni.UI
|
||||
@@ -8,9 +9,10 @@ namespace Ichni.UI
|
||||
public class GamePlaySettingsWindow : SettingsWindow
|
||||
{
|
||||
public TextButton offsetEditorButton;
|
||||
public Dropdown languageDropdown;
|
||||
public override void Initialize()
|
||||
{
|
||||
offsetEditorButton.SetUp("Menu UI/Settings_OffsetEditor");
|
||||
offsetEditorButton.SetUp("Menu UI/Settings_OffsetEditor", "", "Menu UI/Settings_Enter");
|
||||
offsetEditorButton.updateValueAction = () =>
|
||||
{
|
||||
gameObject.SetActive(false);
|
||||
@@ -18,11 +20,18 @@ namespace Ichni.UI
|
||||
MenuManager.instance.settingsUIPage.offsetEditor.offsetEditingContainer.SetActive(true);
|
||||
MenuManager.instance.settingsUIPage.offsetEditor.Play();
|
||||
};
|
||||
|
||||
languageDropdown.SetUp(gameSettings.languageIndex, MenuManager.instance.displayLanguageList, "Menu UI/Settings_Language");
|
||||
languageDropdown.updateValueAction = () =>
|
||||
{
|
||||
gameSettings.languageIndex = languageDropdown.selectedIndex;
|
||||
gameSettings.ApplyLanguage();
|
||||
};
|
||||
}
|
||||
|
||||
public override void SetValuesFromSettings()
|
||||
{
|
||||
|
||||
languageDropdown.SetValue(gameSettings.languageIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user