public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            StomtAPI myScript = (StomtAPI)target;

            if (GUILayout.Button("Delete local Session"))
            {
                myScript.cleanConfig();
            }
        }
        void Awake()
        {
            TargetImageApplied = false;

            if (placeholderText == null)
            {
                Debug.Log("PlaceholderText not found: Find(\"/Message/PlaceholderText\")");
            }

            _api        = GetComponent <StomtAPI>();
            _screenshot = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false);

            Reset();
            StartCoroutine(this.refreshTargetIcon(AutoImageDownloadDelay));
        }
        public StomtLang(StomtAPI api, string language = null)
        {
            this.Api = api;
            this.ForceDefaultLanguage = api.ForceDefaultLanguage;
            this.LoadLanguageFile();

            // Select Language
            if (this.ForceDefaultLanguage)
            {
                this.setLanguage(language);
            }
            else
            {
                this.setLanguage(this.getLanguageCode(Application.systemLanguage));
            }
        }
        // Called once when script is enabled
        void Start()
        {
            this.onMobile = Application.platform == RuntimePlatform.Android || Application.platform == RuntimePlatform.IPhonePlayer;

            _api        = GetComponent <StomtAPI>();
            _screenshot = new Texture2D(Screen.width, Screen.height, TextureFormat.RGB24, false);

            CurrentLayer  = UILayer.Input;
            StartedTyping = false;

            if (PrefetchTarget)
            {
                RequestTargetAndUser();
            }

            if (ShowWidgetOnStart)
            {
                this.ShowWidget();
            }

            UpdateDynamicText();
            this._TargetURL.text = "stomt.com/" + StomtConfig.TargetID;
        }
Exemple #5
0
 public StomtLog(StomtAPI api)
 {
     // this._api = api;
     this.fileReadThread = new Thread(LoadLogFileThread);
     this.fileReadThread.Start();
 }