public IEnumerator UploadChildPhotos() { Debug.Log("Starting uploading photos..."); List <Texture2D> childPhotoList = Config.childTextures2D; Texture2D texture = photoUITexture.mainTexture as Texture2D; childPhotoList[indexToEdit] = texture; ES2Web web = new ES2Web(myURL + "&tag=photos"); yield return(StartCoroutine(web.Upload(childPhotoList))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log("Edited photos uploaded!"); currentChild.UpdateData(Config.childNames[indexToEdit].array[1], Config.childTextures2D[indexToEdit]); CloseEditChild(); selectChildConfig.UpdateData(); } }
public IEnumerator UploadDate() { Debug.Log("Uploading date..."); Config.currentChildDatesCalendarList.Add(ArrayWrapper.Create(new string[] { memoryDay, memoryMonth, memoryYear })); ES2Web web = new ES2Web(myURL + "&tag=memoriesDates"); yield return(StartCoroutine(web.Upload(Config.currentChildDatesCalendarList))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log("New memoryDate uploaded!"); StartCoroutine("UploadText"); } }
public IEnumerator UploadChildNames() { Debug.Log("Starting uploading names..."); List <ArrayWrapper> childNamesList = Config.childNames; for (int i = 0; i < childNamesList.Count; i++) { if (childNamesList[i].array[1] == Config.currentChildName) { childNamesList[i].array[1] = nameUIInput.value; indexToEdit = i; break; } } ES2Web web = new ES2Web(myURL + "&tag=names"); yield return(StartCoroutine(web.Upload(childNamesList))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log("Edited names uploaded!"); StartCoroutine("UploadChildPhotos"); } }
public IEnumerator UploadPhotoThumb() { Debug.Log("Starting uploading thumb..."); //Texture2D memoryThumb = new Texture2D (photoUITexture.width, photoUITexture.height, TextureFormat.PVRTC_RGBA2, false); //memoryThumb = photoUITexture.mainTexture as Texture2D; Texture2D memoryThumb = photoUITexture.mainTexture as Texture2D; Config.currentChildDayMemoriesThumbList.Add(memoryThumb); ES2Web web = new ES2Web(myURL + "&tag=" + memoryDay + "_" + memoryMonth + "_" + memoryYear + "_thumb"); yield return(StartCoroutine(web.Upload(Config.currentChildDayMemoriesThumbList))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log("New thumb uploaded!"); StartCoroutine("UploadMemoryCount"); } }
public IEnumerator UploadPhoto() { Debug.Log("Starting uploading photos..."); Texture2D memoryPhoto = photoUITexture.mainTexture as Texture2D; Config.currentChildDayMemoriesPhotoList.Add(memoryPhoto); webProgress = new ES2Web(myURL + "&tag=" + memoryDay + "_" + memoryMonth + "_" + memoryYear + "_photo"); canCheckProgress = true; yield return(StartCoroutine(webProgress.Upload(Config.currentChildDayMemoriesPhotoList))); if (webProgress.isError) { // Enter your own code to handle errors here. Debug.LogError(webProgress.errorCode + ":" + webProgress.error); } if (webProgress.isDone) { Debug.Log("New photo uploaded!"); StartCoroutine("UploadPhotoThumb"); } }
private void UploadHashTable() { if (!isProxyValid()) { return; } string _tag = uniqueTag.Value; if (string.IsNullOrEmpty(_tag)) { _tag = Fsm.GameObjectName + "/" + Fsm.Name + "/hashTable/" + reference.Value; } Dictionary <string, string> _dict = new Dictionary <string, string>(); foreach (object key in proxy.hashTable.Keys) { _dict[(string)key] = PlayMakerUtils.ParseValueToString(proxy.hashTable[key]); } web = new ES2Web(urlToPHPFile + "?tag=" + _tag + "&webfilename=" + saveFile.Value + "&webpassword="******"&webusername="******"Uploading to " + urlToPHPFile.Value + "?tag=" + _tag + "&webfilename=" + saveFile.Value); }
public IEnumerator UploadMemoryCount() { Debug.Log("Starting uploading count..."); totalMemories += 1; ES2Web web = new ES2Web(myURL + "&tag=" + memoryDay + "_" + memoryMonth + "_" + memoryYear + "_count"); yield return(StartCoroutine(web.Upload(totalMemories))); if (web.isError) { Debug.LogError(web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log("New count uploaded!"); CloseNewMemory(); loadingSystem.CloseLoading(); memoriesConfig.UpdateData(); } photoUITexture.mainTexture = null; }
private void UploadArrayList() { if (!isProxyValid()) { return; } string _tag = uniqueTag.Value; if (string.IsNullOrEmpty(_tag)) { _tag = Fsm.GameObjectName + "/" + Fsm.Name + "/arraylist/" + reference.Value; } List <string> _list = new List <string>(); foreach (object item in proxy.arrayList) { _list.Add(PlayMakerUtils.ParseValueToString(item)); } //ES2.Save<string>(_list, saveFile.Value+"?tag="+uniqueTag); web = new ES2Web(urlToPHPFile + "?tag=" + _tag + "&webfilename=" + saveFile.Value + "&webpassword="******"&webusername="******"Uploading to " + urlToPHPFile.Value + "?tag=" + _tag + "&webfilename=" + saveFile.Value); }
public IEnumerator UploadChildNames() { Debug.Log("Starting uploading names..."); List <ArrayWrapper> childNamesList = Config.childNames; childNamesList.Add(ArrayWrapper.Create(new string[] { nameUIInput.value, //Name of the file nameUIInput.value, //Current child name })); //childNamesList.Add (nameUIInput.value); ES2Web web = new ES2Web(myURL + "&tag=names"); yield return(StartCoroutine(web.Upload(childNamesList))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log("New names uploaded!"); StartCoroutine("UploadChildPhotos"); } }
public IEnumerator UploadChildPhotos() { Debug.Log("Starting uploading photos..."); List <Texture2D> childPhotoList = Config.childTextures2D; Texture2D texture = photoUITexture.mainTexture as Texture2D; //Texture2D texture = new Texture2D(photoUITexture.width, photoUITexture.height, TextureFormat.PVRTC_RGBA2, false); //texture = photoUITexture.mainTexture as Texture2D; childPhotoList.Add(texture); ES2Web web = new ES2Web(myURL + "&tag=photos"); yield return(StartCoroutine(web.Upload(childPhotoList))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log("New photos uploaded!"); CloseAddNewChild(); selectChildConfig.UpdateData(); } photoUITexture.mainTexture = null; }
/* Uploads a texture to the server */ private IEnumerator Upload(Texture2D texture) { ES2Web web = new ES2Web(url, CreateSettings()); // Start uploading our Texture and wait for it to finish. yield return StartCoroutine(web.Upload(texture)); if(web.isError) Debug.LogError(web.errorCode + ":" + web.error); else Debug.Log ("Uploaded Successfully. Reload scene to load texture into blank object."); }
/* Uploads a texture to the server */ private IEnumerator Upload(Texture2D texture) { ES2Web web = new ES2Web(url, CreateSettings()); // Start uploading our Texture and wait for it to finish. yield return(StartCoroutine(web.Upload(texture))); if (web.isError) { Debug.LogError(web.errorCode + ":" + web.error); } else { Debug.Log("Uploaded Successfully. Reload scene to load texture into blank object."); } }
public IEnumerator UploadPhotoThumb() { Debug.Log("Starting uploading thumb..."); Texture2D memoryThumb = photoUITexture.mainTexture as Texture2D; //Config.currentChildDayMemoriesThumbList.Add (memoryThumb); Config.currentChildDayMemoriesThumbList [Config.currentMemoryIndex] = memoryThumb; ES2Web web = new ES2Web(myURL + "&tag=" + Config.currentMemoryDay + "_" + Config.currentMemoryMonth + "_" + Config.currentMemoryYear + "_thumb"); yield return(StartCoroutine(web.Upload(Config.currentChildDayMemoriesThumbList))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log("New thumb uploaded!"); currentPhotoTitle.text = titleUILabel.value; currentPhotoDescription.text = descriptionUILabel.value; currentPhotoTexture.mainTexture = memoryThumb; currentPhotoTexture.MakePixelPerfect(); currentPhotoTexture.keepAspectRatio = UIWidget.AspectRatioSource.BasedOnWidth; currentPhotoTexture.width = 750; CloseEditMemory(); loadingSystem.CloseLoading(); memoriesConfig.cameFromEditPhoto = true; memoriesConfig.UpdateData(); } }
public IEnumerator UploadText() { Debug.Log("Uploading initiated"); // Create a URL and add parameters to the end of it. string myURL = "http://clientes.cheny.com.br/stephanie/es2.php"; myURL += "?webfilename=text.txt&webusername=cheny&webpassword=chenyrox"; // Create our ES2Web object. string textUploaded = "Sei fazer upload, editado"; ES2Web web = new ES2Web(myURL + "&tag=filho1texto1234"); yield return(StartCoroutine(web.Upload(textUploaded))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } }
public IEnumerator UploadText() { Debug.Log("Starting uploading text..."); //string memoryTime = System.DateTime.Now.ToString ("HH:mm"); //TODO Edit title, description Config.currentChildDayMemoriesList[Config.currentMemoryIndex] = ArrayWrapper.Create(new string[] { titleUILabel.value, descriptionUILabel.value, Config.currentMemoryDay, Config.currentMemoryMonth, Config.currentMemoryYear, Config.currentMemoryTime, }); ES2Web web = new ES2Web(myURL + "&tag=" + Config.currentMemoryDay + "_" + Config.currentMemoryMonth + "_" + Config.currentMemoryYear + "_text"); yield return(StartCoroutine(web.Upload(Config.currentChildDayMemoriesList))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log("New text uploaded!"); StartCoroutine("UploadPhoto"); } }
public IEnumerator UploadMesh() { Vector3 cubepos = cube.transform.position; // Create a URL and add parameters to the end of it. string myURL = "http://cgi.soic.indiana.edu/~team05/ES2.php"; myURL += "?webfilename=" + str + "&webusername=tsajnani&webpassword=Capstone2017"; // Create our ES2Web object. ES2Web web = new ES2Web(myURL + "&tag=tag"); // Start uploading our data and wait for it to finish. yield return(StartCoroutine(web.Upload(cubepos))); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } //Debug.Log("done"); }
public IEnumerator UploadPhotoThumb () { Debug.Log ("Starting uploading thumb..."); Texture2D memoryThumb = photoUITexture.mainTexture as Texture2D; //Config.currentChildDayMemoriesThumbList.Add (memoryThumb); Config.currentChildDayMemoriesThumbList [Config.currentMemoryIndex] = memoryThumb; ES2Web web = new ES2Web (myURL + "&tag=" + Config.currentMemoryDay + "_" + Config.currentMemoryMonth + "_" + Config.currentMemoryYear + "_thumb"); yield return StartCoroutine (web.Upload (Config.currentChildDayMemoriesThumbList)); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError (web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log ("New thumb uploaded!"); currentPhotoTitle.text = titleUILabel.value; currentPhotoDescription.text = descriptionUILabel.value; currentPhotoTexture.mainTexture = memoryThumb; currentPhotoTexture.MakePixelPerfect (); currentPhotoTexture.keepAspectRatio = UIWidget.AspectRatioSource.BasedOnWidth; currentPhotoTexture.width = 750; CloseEditMemory(); loadingSystem.CloseLoading (); memoriesConfig.cameFromEditPhoto = true; memoriesConfig.UpdateData(); } }
public IEnumerator UploadText () { Debug.Log ("Starting uploading text..."); string memoryTime = System.DateTime.Now.ToString ("HH:mm"); Config.currentChildDayMemoriesList.Add (ArrayWrapper.Create (new string[]{ titleUILabel.value, descriptionUILabel.value, memoryDay, memoryMonth, memoryYear, memoryTime, })); ES2Web web = new ES2Web (myURL + "&tag=" + memoryDay + "_" + memoryMonth + "_" + memoryYear + "_text"); yield return StartCoroutine (web.Upload (Config.currentChildDayMemoriesList)); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError (web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log ("New text uploaded!"); StartCoroutine ("UploadPhoto"); } }
public IEnumerator UploadPhoto () { Debug.Log ("Starting uploading photos..."); Texture2D memoryPhoto = photoUITexture.mainTexture as Texture2D; Config.currentChildDayMemoriesPhotoList.Add (memoryPhoto); webProgress = new ES2Web (myURL + "&tag=" + memoryDay + "_" + memoryMonth + "_" + memoryYear + "_photo"); canCheckProgress = true; yield return StartCoroutine (webProgress.Upload (Config.currentChildDayMemoriesPhotoList)); if (webProgress.isError) { // Enter your own code to handle errors here. Debug.LogError (webProgress.errorCode + ":" + webProgress.error); } if (webProgress.isDone) { Debug.Log ("New photo uploaded!"); StartCoroutine ("UploadPhotoThumb"); } }
public IEnumerator UploadPhotoThumb () { Debug.Log ("Starting uploading thumb..."); //Texture2D memoryThumb = new Texture2D (photoUITexture.width, photoUITexture.height, TextureFormat.PVRTC_RGBA2, false); //memoryThumb = photoUITexture.mainTexture as Texture2D; Texture2D memoryThumb = photoUITexture.mainTexture as Texture2D; Config.currentChildDayMemoriesThumbList.Add (memoryThumb); ES2Web web = new ES2Web (myURL + "&tag=" + memoryDay + "_" + memoryMonth + "_" + memoryYear + "_thumb"); yield return StartCoroutine (web.Upload (Config.currentChildDayMemoriesThumbList)); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError (web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log ("New thumb uploaded!"); StartCoroutine ("UploadMemoryCount"); } }
public IEnumerator UploadMemoryCount () { Debug.Log ("Starting uploading count..."); totalMemories += 1; ES2Web web = new ES2Web (myURL + "&tag=" + memoryDay + "_" + memoryMonth + "_" + memoryYear + "_count"); yield return StartCoroutine (web.Upload (totalMemories)); if (web.isError) { Debug.LogError (web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log ("New count uploaded!"); CloseNewMemory(); loadingSystem.CloseLoading (); memoriesConfig.UpdateData(); } photoUITexture.mainTexture = null; }
public IEnumerator UploadChildPhotos () { Debug.Log ("Starting uploading photos..."); List<Texture2D> childPhotoList = Config.childTextures2D; Texture2D texture = photoUITexture.mainTexture as Texture2D; //Texture2D texture = new Texture2D(photoUITexture.width, photoUITexture.height, TextureFormat.PVRTC_RGBA2, false); //texture = photoUITexture.mainTexture as Texture2D; childPhotoList.Add (texture); ES2Web web = new ES2Web (myURL + "&tag=photos"); yield return StartCoroutine (web.Upload (childPhotoList)); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError (web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log ("New photos uploaded!"); CloseAddNewChild (); selectChildConfig.UpdateData (); } photoUITexture.mainTexture = null; }
public IEnumerator UploadChildNames () { Debug.Log ("Starting uploading names..."); List<ArrayWrapper> childNamesList = Config.childNames; childNamesList.Add(ArrayWrapper.Create (new string[]{ nameUIInput.value, //Name of the file nameUIInput.value, //Current child name })); //childNamesList.Add (nameUIInput.value); ES2Web web = new ES2Web (myURL + "&tag=names"); yield return StartCoroutine (web.Upload (childNamesList)); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError (web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log ("New names uploaded!"); StartCoroutine ("UploadChildPhotos"); } }
public IEnumerator UploadChildPhotos () { Debug.Log ("Starting uploading photos..."); List<Texture2D> childPhotoList = Config.childTextures2D; Texture2D texture = photoUITexture.mainTexture as Texture2D; childPhotoList[indexToEdit] = texture; ES2Web web = new ES2Web (myURL + "&tag=photos"); yield return StartCoroutine (web.Upload (childPhotoList)); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError (web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log ("Edited photos uploaded!"); currentChild.UpdateData(Config.childNames[indexToEdit].array[1], Config.childTextures2D[indexToEdit]); CloseEditChild (); selectChildConfig.UpdateData (); } }
public IEnumerator UploadChildNames () { Debug.Log ("Starting uploading names..."); List<ArrayWrapper> childNamesList = Config.childNames; for (int i = 0; i < childNamesList.Count; i++) { if(childNamesList[i].array[1] == Config.currentChildName){ childNamesList[i].array[1] = nameUIInput.value; indexToEdit = i; break; } } ES2Web web = new ES2Web (myURL + "&tag=names"); yield return StartCoroutine (web.Upload (childNamesList)); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError (web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log ("Edited names uploaded!"); StartCoroutine ("UploadChildPhotos"); } }
public IEnumerator UploadText() { Debug.Log("Uploading initiated"); // Create a URL and add parameters to the end of it. string myURL = "http://clientes.cheny.com.br/stephanie/es2.php"; myURL += "?webfilename=text.txt&webusername=cheny&webpassword=chenyrox"; // Create our ES2Web object. string textUploaded = "Sei fazer upload, editado"; ES2Web web = new ES2Web(myURL + "&tag=filho1texto1234"); yield return StartCoroutine(web.Upload(textUploaded)); if(web.isError) { // Enter your own code to handle errors here. Debug.LogError(web.errorCode + ":" + web.error); } }
public IEnumerator UploadDate () { Debug.Log ("Uploading date..."); Config.currentChildDatesCalendarList.Add (ArrayWrapper.Create (new string[]{ memoryDay, memoryMonth, memoryYear })); ES2Web web = new ES2Web (myURL + "&tag=memoriesDates"); yield return StartCoroutine (web.Upload (Config.currentChildDatesCalendarList)); if (web.isError) { // Enter your own code to handle errors here. Debug.LogError (web.errorCode + ":" + web.error); } if (web.isDone) { Debug.Log ("New memoryDate uploaded!"); StartCoroutine ("UploadText"); } }