Skip to content

Commit 932502a

Browse files
committed
修改条目名
1 parent 9782cc9 commit 932502a

File tree

6 files changed

+39
-3
lines changed

6 files changed

+39
-3
lines changed

Demo/API_V2/Assets/API/Render/ToTempFilePath/ToTempFilePath.cs

+19-1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@ private float GetOptionValue(int optionIndex, float defaultValue = 0f)
4242
return defaultValue;
4343
}
4444

45+
private string GetOptionString(int optionIndex, string defaultValue = "")
46+
{
47+
if (options != null && optionIndex < options.Length)
48+
{
49+
return options[optionIndex];
50+
}
51+
return defaultValue;
52+
}
53+
4554
private void LoadCanvasToTempFilePath()
4655
{
4756
var sys = WX.GetSystemInfoSync();
@@ -55,15 +64,24 @@ private void LoadCanvasToTempFilePath()
5564
float y = GetOptionValue(1);
5665
float width = GetOptionValue(2);
5766
float height = GetOptionValue(3);
67+
float destWidth = GetOptionValue(4);
68+
float destHeight = GetOptionValue(5);
69+
string fileType = GetOptionString(6, "png");
70+
float quality = GetOptionValue(7);
5871

59-
Debug.Log($"Using values: x={x}, y={y}, width={width}, height={height}");
72+
Debug.Log($"Using values: x={x}, y={y}, width={width}, height={height}, destWidth={destWidth}, destHeight={destHeight}, fileType={fileType}, quality={quality}");
6073

6174
WXCanvas.ToTempFilePath(new WXToTempFilePathParam()
6275
{
6376
x = (int)x,
6477
y = (int)y,
6578
width = (int)width,
6679
height = (int)height,
80+
destWidth = (int)destWidth,
81+
destHeight = (int)destHeight,
82+
fileType = fileType,
83+
quality = (int)quality,
84+
6785
success = (result) =>
6886
{
6987
WX.ShowModal(new ShowModalOption()

Demo/API_V2/Assets/API/Render/ToTempFilePath/ToTempFilePathSO.asset

+16-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ MonoBehaviour:
1313
m_Name: ToTempFilePathSO
1414
m_EditorClassIdentifier:
1515
entryScriptTypeName: ToTempFilePath
16-
entryName: ToTempFilePath
16+
entryName: "\u753B\u5E03"
1717
entryAPI: Canvas.toTempFilePath
1818
entryDescription: "\u5C06\u5F53\u524D Canvas \u4FDD\u5B58\u4E3A\u4E00\u4E2A\u4E34\u65F6\u6587\u4EF6\u3002"
1919
optionList:
@@ -33,6 +33,21 @@ MonoBehaviour:
3333
availableOptions:
3434
- 0
3535
- 800
36+
- optionName: destWidth
37+
availableOptions:
38+
- 0
39+
- 800
40+
- optionName: destHeight
41+
availableOptions:
42+
- 0
43+
- 800
44+
- optionName: fileType
45+
availableOptions:
46+
- png
47+
- jpg
48+
- optionName: quality
49+
availableOptions:
50+
- 1.0
3651
initialButtonText: "\u8FD0\u884C\u622A\u56FE"
3752
extraButtonList: []
3853
initialResultList: []

Demo/API_V2/Assets/API/Report/ReportEvent/ReportEventSO.asset

+1
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ MonoBehaviour:
2828
initialButtonText: "\u4E8B\u4EF6\u4E0A\u62A5"
2929
extraButtonList: []
3030
initialResultList: []
31+
entryOrder: 0

Demo/API_V2/Assets/API/Share/ShareEvent/ShareEventSO.asset

+1
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ MonoBehaviour:
2828
- buttonText: "\u76D1\u542Csharetofriend"
2929
- buttonText: "\u76D1\u542C\u53F3\u4E0A\u89D2\u83DC\u5355\u7684\u8F6C\u53D1"
3030
initialResultList: []
31+
entryOrder: 0

Demo/API_V2/Assets/API/Share/ShareEvent2/ShareEvent2SO.asset

+1
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ MonoBehaviour:
2424
- buttonText: "\u83B7\u53D6\u8F6C\u53D1\u8BE6\u7EC6\u4FE1\u606F"
2525
- buttonText: "\u9A8C\u8BC1\u79C1\u5BC6\u6D88\u606F"
2626
initialResultList: []
27+
entryOrder: 0

Demo/API_V2/Assets/Scenes/MainScene.unity

+1-1
Original file line numberDiff line numberDiff line change
@@ -17914,7 +17914,7 @@ GameObject:
1791417914
- component: {fileID: 848500031}
1791517915
- component: {fileID: 848500030}
1791617916
m_Layer: 5
17917-
m_Name: ToTempFilePath
17917+
m_Name: "\u753B\u5E03"
1791817918
m_TagString: Untagged
1791917919
m_Icon: {fileID: 0}
1792017920
m_NavMeshLayer: 0

0 commit comments

Comments
 (0)