| | 1 | | using System; |
| | 2 | | using System.Collections; |
| | 3 | | using System.Collections.Generic; |
| | 4 | | using TMPro; |
| | 5 | | using UnityEngine; |
| | 6 | | using UnityEngine.UI; |
| | 7 | |
|
| | 8 | | namespace DCL.Builder |
| | 9 | | { |
| | 10 | | //TODO: this class is in process to be made |
| | 11 | | public class PublishView : MonoBehaviour //BaseComponentView |
| | 12 | | { |
| | 13 | |
|
| | 14 | | public event Action OnCancel; |
| | 15 | | public event Action<string, string> OnPublish; |
| | 16 | | public event Action<string> OnSceneNameChange; |
| | 17 | |
|
| | 18 | | [SerializeField] internal Button cancelButton; |
| | 19 | | [SerializeField] internal Button publishButton; |
| | 20 | | [SerializeField] internal TMP_Text publishButtonText; |
| | 21 | | [SerializeField] internal TMP_InputField sceneNameInput; |
| | 22 | | [SerializeField] internal TMP_Text sceneNameValidationText; |
| | 23 | | [SerializeField] internal TMP_InputField sceneDescriptionInput; |
| | 24 | | [SerializeField] internal Image sceneScreenshot; |
| | 25 | | [SerializeField] internal TMP_Text sceneNameCharCounterText; |
| 0 | 26 | | [SerializeField] internal int sceneNameCharLimit = 30; |
| | 27 | | [SerializeField] internal TMP_Text sceneDescriptionCharCounterText; |
| 0 | 28 | | [SerializeField] internal int sceneDescriptionCharLimit = 140; |
| | 29 | |
|
| | 30 | | private const string VIEW_PATH = "Common/PublicationDetailsView"; |
| | 31 | |
|
| 0 | 32 | | public string currentSceneName => sceneNameInput.text; |
| | 33 | |
|
| | 34 | | // public override void RefreshControl() { } |
| | 35 | | } |
| | 36 | | } |