Add version info in Settings

This commit is contained in:
tverona1
2020-04-25 16:05:10 -07:00
parent cd75bf6579
commit d224a65a45
3 changed files with 303 additions and 18 deletions
+4
View File
@@ -25,6 +25,7 @@ namespace QuestAppLauncher
public GameObject skyBoxButton;
public DownloadStatusIndicator downloadStatusIndicator;
public SkyboxHandler skyboxHandler;
public TextMeshProUGUI versionText;
public Toggle tabsAutoOff;
public Toggle tabsAutoTop;
@@ -63,6 +64,9 @@ namespace QuestAppLauncher
// Skybox callback
this.skyboxHandler.OnSkyboxSelected = OnSkyboxSelected;
// Set version text
this.versionText.text = string.Format("Version: {0}", Application.version);
// Set current cols & rows
var colsSlider = this.gridCols.GetComponent<Slider>();
colsSlider.value = this.config.gridSize.cols;