mirror of
https://github.com/RaindropViewer/RaindropViewer.git
synced 2026-07-27 22:11:39 +00:00
update Eula to print from StreamingAssets file
This commit is contained in:
@@ -7,6 +7,7 @@ using Raindrop.Services;
|
||||
using TMPro;
|
||||
using UniRx;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Serialization;
|
||||
using UnityEngine.UI;
|
||||
|
||||
//a monobehavior that makes a toggle toggle the eula acceptance in globalSettings
|
||||
@@ -15,21 +16,18 @@ public class EulaView : MonoBehaviour
|
||||
private RaindropInstance instance { get { return ServiceLocator.Instance.Get<RaindropInstance>(); } }
|
||||
|
||||
[Tooltip("the Acceptance toggle that allows us to continue past this window")]
|
||||
private Toggle EulaToggle;
|
||||
public GameObject EulaToggleGO;
|
||||
|
||||
public Button closeBtn;
|
||||
public Toggle EulaToggle;
|
||||
|
||||
[FormerlySerializedAs("closeBtn")] public Button NextBtn;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
|
||||
FindAndLinkUIComponents();
|
||||
}
|
||||
|
||||
//link all children UI components to the reactive events.
|
||||
private void FindAndLinkUIComponents()
|
||||
{
|
||||
EulaToggle = EulaToggleGO.GetComponent<Toggle>();
|
||||
if (EulaToggle == null)
|
||||
{
|
||||
Debug.LogWarning("eula toggle UI is not present.");
|
||||
@@ -39,11 +37,12 @@ public class EulaView : MonoBehaviour
|
||||
EulaToggle.onValueChanged.AsObservable().Subscribe(_ => onToggleChanged(_)); //when clicked, runs this method.
|
||||
}
|
||||
|
||||
//initialise button/toggle state
|
||||
bool isAcceptedEULA = instance.GlobalSettings["EulaAccepted"];
|
||||
EulaToggle.isOn = isAcceptedEULA;
|
||||
//onToggleChanged(isAcceptedEULA);
|
||||
onToggleChanged(isAcceptedEULA);
|
||||
|
||||
closeBtn.onClick.AddListener(closeEula);
|
||||
NextBtn.onClick.AddListener(closeEula);
|
||||
}
|
||||
|
||||
private void closeEula()
|
||||
@@ -62,12 +61,12 @@ public class EulaView : MonoBehaviour
|
||||
|
||||
if (isEulaAccepted)
|
||||
{
|
||||
closeBtn.gameObject.SetActive(true);
|
||||
NextBtn.gameObject.SetActive(true);
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
closeBtn.gameObject.SetActive(false);
|
||||
NextBtn.gameObject.SetActive(false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
Product: Raindrop Viewer
|
||||
version: <see botton right corner>
|
||||
This product is offered 'as-is' and no support or warranty is offered.
|
||||
|
||||
Contact info:
|
||||
Discord:
|
||||
Email raindropviewer@gmail.com for important issues.
|
||||
|
||||
Privacy policy:
|
||||
- This application does not collect your information.
|
||||
- However, it utilises various 3rd party libraries and frameworks, which may collect your information:
|
||||
> Unity game engine
|
||||
> LibreMetaverse library
|
||||
|
||||
If you disagree with any of above information, please quit now and refrain from using this software.
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6945d3463c62a84197d55c937d1e173
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user