Files
QuestAppLauncher/Assets/Scripts/SettingsHandler.cs
tverona1 7fb1053be7 Added custom grid size support in config.json
- Added support for config.json
- Added custom grid size support in config.json (see readme for instructions)
2019-07-21 18:56:25 -07:00

44 lines
1.2 KiB
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
namespace QuestAppLauncher
{
public class SettingsHandler : MonoBehaviour
{
public GameObject scrollView;
public GameObject openSettingsButton;
public GameObject closeSettingsButton;
public GameObject settingsView;
public void OpenSettings()
{
Debug.Log("Open Settings");
scrollView.SetActive(false);
openSettingsButton.SetActive(false);
closeSettingsButton.SetActive(true);
settingsView.SetActive(true);
}
public void CloseSettings()
{
Debug.Log("Close Settings");
scrollView.SetActive(true);
openSettingsButton.SetActive(true);
closeSettingsButton.SetActive(false);
settingsView.SetActive(false);
}
public void ResizeGrid(int selection)
{
Debug.Log("Resize grid: " + selection);
}
public void DeleteExcludedApksFile()
{
Debug.Log("Delete Excluded Apk List");
QuestAppLauncher.GridPopulation.DeleteExcludedApksFile();
}
}
}