Skip to content

Commit f8b608d

Browse files
committed
修改进度条布局
1 parent 10ee03a commit f8b608d

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

Demo/API_V2/Assets/API/Facility/Screen/ScreenSO.asset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ MonoBehaviour:
2626
- buttonText: "\u67E5\u8BE2\u7528\u6237\u662F\u5426\u5728\u5F55\u5C4F"
2727
- buttonText: "\u83B7\u53D6\u5C4F\u5E55\u4EAE\u5EA6"
2828
initialResultList: []
29+
entryOrder: 0

Demo/API_V2/Assets/API/Video/VideoController.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,14 @@ void PauseVideo()
4444
// 视频播放完成时调用的方法
4545
void OnVideoEnd(VideoPlayer vp)
4646
{
47-
Debug.Log("视频播放完成");
48-
47+
WX.ShowModal(new ShowModalOption()
48+
{
49+
title = "提示",
50+
content = "视频播放完成",
51+
showCancel = false,
52+
success = (res) => {
53+
}
54+
});
4955
// 增加当前视频索引
5056
currentVideoIndex++;
5157

Demo/API_V2/Assets/Scenes/VideoScene.unity

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ RectTransform:
10451045
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
10461046
m_AnchorMin: {x: 0.5, y: 0.5}
10471047
m_AnchorMax: {x: 0.5, y: 0.5}
1048-
m_AnchoredPosition: {x: -226.61508, y: -547.1682}
1048+
m_AnchoredPosition: {x: -226.61508, y: -890}
10491049
m_SizeDelta: {x: 343.318, y: 128.038}
10501050
m_Pivot: {x: 0.5, y: 0.5}
10511051
--- !u!114 &552579518
@@ -1406,8 +1406,8 @@ RectTransform:
14061406
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
14071407
m_AnchorMin: {x: 0.5, y: 0.5}
14081408
m_AnchorMax: {x: 0.5, y: 0.5}
1409-
m_AnchoredPosition: {x: -0.968, y: -461.203}
1410-
m_SizeDelta: {x: 896.132, y: 21.493}
1409+
m_AnchoredPosition: {x: -0.968, y: -755}
1410+
m_SizeDelta: {x: 896.132, y: 50}
14111411
m_Pivot: {x: 0.5, y: 0.5}
14121412
--- !u!114 &811883142
14131413
MonoBehaviour:
@@ -2164,7 +2164,7 @@ MonoBehaviour:
21642164
pauseButton: {fileID: 1477806342}
21652165
videoUrls:
21662166
- http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400
2167-
- http://mirror.aarnet.edu.au/pub/TED-talks/911Mothers_2010W-480p.mp4
2167+
- https://baikebcs.bdimg.com/baike-other/big-buck-bunny.mp4
21682168
--- !u!1 &1251123291
21692169
GameObject:
21702170
m_ObjectHideFlags: 0
@@ -2200,7 +2200,7 @@ RectTransform:
22002200
m_AnchorMin: {x: 0, y: 0}
22012201
m_AnchorMax: {x: 0, y: 0}
22022202
m_AnchoredPosition: {x: 0, y: 0}
2203-
m_SizeDelta: {x: 20, y: 0}
2203+
m_SizeDelta: {x: 50, y: 0}
22042204
m_Pivot: {x: 0.5, y: 0.5}
22052205
--- !u!114 &1251123293
22062206
MonoBehaviour:
@@ -2629,7 +2629,7 @@ RectTransform:
26292629
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
26302630
m_AnchorMin: {x: 0.5, y: 0.5}
26312631
m_AnchorMax: {x: 0.5, y: 0.5}
2632-
m_AnchoredPosition: {x: 225, y: -547.1682}
2632+
m_AnchoredPosition: {x: 225, y: -890}
26332633
m_SizeDelta: {x: 343.318, y: 128.038}
26342634
m_Pivot: {x: 0.5, y: 0.5}
26352635
--- !u!114 &1477806342

0 commit comments

Comments
 (0)