修改细节
This commit is contained in:
1 parent
27ea20b1c8
commit
e20ddb9bc1
6 files changed
+74
-62
No files matched your search
@@ -117,7 +117,14 @@ public class MapListController : PFUIPanel
|
||||
SetRounded(btnMapMode.transform, 64);
|
||||
UIManager.AddEvent(btnMapMode.transform.Find("GoList").gameObject, EventTriggerType.PointerClick, (e) =>
|
||||
{
|
||||
Application.OpenURL("http://192.168.0.101:3081/Mine/Upload?token="+ App.CurrentUser.cookie);
|
||||
if (App.websiteDict.ContainsKey(App.Host))
|
||||
{
|
||||
Application.OpenURL($"{App.websiteDict[App.Host]}Mine/Upload?token={App.CurrentUser.cookie}");
|
||||
}
|
||||
else
|
||||
{
|
||||
Application.OpenURL("http://www.powerfun.com/Mine/Upload?token=" + App.CurrentUser.cookie);
|
||||
}
|
||||
});
|
||||
transform.Find("MainNav").GetComponent<MainNav>().ShowBack();
|
||||
#endif
|
||||
|
||||
@@ -156,33 +156,33 @@ public class NewRouteDetailController : PFUIPanel
|
||||
Utils.DisplayImageTempDict(left.Find("Icon").GetComponent<RawImage>(), area.CoverImage, caches
|
||||
, b =>
|
||||
{
|
||||
if (b != null)
|
||||
{
|
||||
cacheByte.Add(area.CoverImage, b);
|
||||
}
|
||||
else if(cacheByte.ContainsKey(area.CoverImage))
|
||||
{
|
||||
b = cacheByte[area.CoverImage];
|
||||
}
|
||||
// if (b != null)
|
||||
// {
|
||||
// cacheByte.Add(area.CoverImage, b);
|
||||
// }
|
||||
// else if(cacheByte.ContainsKey(area.CoverImage))
|
||||
// {
|
||||
// b = cacheByte[area.CoverImage];
|
||||
// }
|
||||
|
||||
#if UNITY_EDITOR
|
||||
var _t = new Texture2D(4, 4, TextureFormat.DXT5, false);
|
||||
#else
|
||||
#if UNITY_IOS
|
||||
var _t = new Texture2D(4, 4, TextureFormat.ASTC_RGB_4x4,false);
|
||||
Debug.Log("使用了壓縮");
|
||||
#elif UNITY_ANDROID
|
||||
var _t = new Texture2D(4, 4, TextureFormat.ASTC_RGB_4x4,false);
|
||||
Debug.Log("使用了壓縮");
|
||||
#else //pc
|
||||
var _t = new Texture2D(4, 4, TextureFormat.DXT5,false);
|
||||
#endif
|
||||
#endif
|
||||
_t.LoadImage(b);
|
||||
//Graphics.CopyTexture(t, _t);
|
||||
//Debug.Log($"{t.width},{t.height}");
|
||||
left.Find("Thumbnail").GetComponent<RawImage>().texture =
|
||||
ScaleTextureCutOut(_t, 0, _t.height / 2, _t.width / 3, _t.height / 3);
|
||||
//#if UNITY_EDITOR
|
||||
// var _t = new Texture2D(4, 4, TextureFormat.DXT5, false);
|
||||
//#else
|
||||
//#if UNITY_IOS
|
||||
// var _t = new Texture2D(4, 4, TextureFormat.ASTC_RGB_4x4,false);
|
||||
// Debug.Log("使用了壓縮");
|
||||
//#elif UNITY_ANDROID
|
||||
// var _t = new Texture2D(4, 4, TextureFormat.ASTC_RGB_4x4,false);
|
||||
// Debug.Log("使用了壓縮");
|
||||
//#else //pc
|
||||
// var _t = new Texture2D(4, 4, TextureFormat.DXT5,false);
|
||||
//#endif
|
||||
//#endif
|
||||
// _t.LoadImage(b);
|
||||
// //Graphics.CopyTexture(t, _t);
|
||||
// //Debug.Log($"{t.width},{t.height}");
|
||||
// left.Find("Thumbnail").GetComponent<RawImage>().texture =
|
||||
// ScaleTextureCutOut(_t, 0, _t.height / 2, _t.width / 3, _t.height / 3);
|
||||
});
|
||||
//Utils.DisplayImageTempDict(left.Find("Thumbnail").GetComponent<RawImage>(), area.CoverImage, caches);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user