Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
VPet
提交
cc1e1873
V
VPet
项目概览
jobily
/
VPet
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
VPet
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cc1e1873
编写于
8月 16, 2023
作者:
Z
ZouJin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
性能优化
上级
f986bf90
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
10 deletion
+10
-10
VPet-Simulator.Core/Graph/GraphHelper.cs
VPet-Simulator.Core/Graph/GraphHelper.cs
+1
-1
VPet-Simulator.Core/Graph/PNGAnimation.cs
VPet-Simulator.Core/Graph/PNGAnimation.cs
+4
-4
VPet-Simulator.Core/Graph/Picture.cs
VPet-Simulator.Core/Graph/Picture.cs
+4
-4
VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs
VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs
+1
-1
未找到文件。
VPet-Simulator.Core/Graph/GraphHelper.cs
浏览文件 @
cc1e1873
...
...
@@ -65,7 +65,7 @@ namespace VPet_Simulator.Core
/// <param name="img">用于显示的Image</param>
/// <param name="EndAction">结束动画</param>
/// <returns>准备好的线程</returns>
public
static
T
hread
Run
(
this
IGraph
graph
,
Image
img
,
Action
EndAction
=
null
)
public
static
T
ask
Run
(
this
IGraph
graph
,
Image
img
,
Action
EndAction
=
null
)
{
if
(
graph
is
IImageRun
iri
)
{
...
...
VPet-Simulator.Core/Graph/PNGAnimation.cs
浏览文件 @
cc1e1873
...
...
@@ -332,7 +332,7 @@ namespace VPet_Simulator.Core
{
if
(
parant
.
Tag
==
this
)
{
new
Thread
(()
=>
Animations
[
0
].
Run
((
System
.
Windows
.
Controls
.
Image
)
parant
.
Child
,
EndAction
)).
Start
(
);
Task
.
Run
(()
=>
Animations
[
0
].
Run
((
System
.
Windows
.
Controls
.
Image
)
parant
.
Child
,
EndAction
)
);
return
;
}
System
.
Windows
.
Controls
.
Image
img
;
...
...
@@ -378,7 +378,7 @@ namespace VPet_Simulator.Core
/// <param name="img">用于显示的Image</param>
/// <param name="EndAction">结束动画</param>
/// <returns>准备好的线程</returns>
public
T
hread
Run
(
System
.
Windows
.
Controls
.
Image
img
,
Action
EndAction
=
null
)
public
T
ask
Run
(
System
.
Windows
.
Controls
.
Image
img
,
Action
EndAction
=
null
)
{
nowid
=
0
;
PlayState
=
true
;
...
...
@@ -387,12 +387,12 @@ namespace VPet_Simulator.Core
{
if
(
img
.
Tag
==
this
)
{
return
new
T
hread
(()
=>
Animations
[
0
].
Run
(
img
,
EndAction
));
return
new
T
ask
(()
=>
Animations
[
0
].
Run
(
img
,
EndAction
));
}
img
.
Tag
=
this
;
img
.
Source
=
new
BitmapImage
(
new
Uri
(
Path
));
img
.
Width
=
Width
;
return
new
T
hread
(()
=>
Animations
[
0
].
Run
(
img
,
EndAction
));
return
new
T
ask
(()
=>
Animations
[
0
].
Run
(
img
,
EndAction
));
});
}
public
void
Stop
(
bool
StopEndAction
=
false
)
...
...
VPet-Simulator.Core/Graph/Picture.cs
浏览文件 @
cc1e1873
...
...
@@ -139,7 +139,7 @@ namespace VPet_Simulator.Core
PlayState
=
false
;
this
.
DoEndAction
=
!
StopEndAction
;
}
public
T
hread
Run
(
System
.
Windows
.
Controls
.
Image
img
,
Action
EndAction
=
null
)
public
T
ask
Run
(
System
.
Windows
.
Controls
.
Image
img
,
Action
EndAction
=
null
)
{
PlayState
=
true
;
DoEndAction
=
true
;
...
...
@@ -147,7 +147,7 @@ namespace VPet_Simulator.Core
{
if
(
img
.
Tag
==
this
)
{
return
new
T
hread
(()
=>
return
new
T
ask
(()
=>
{
Thread
.
Sleep
(
Length
);
if
(
IsLoop
&&
PlayState
)
...
...
@@ -165,7 +165,7 @@ namespace VPet_Simulator.Core
img
.
Tag
=
this
;
img
.
Source
=
new
BitmapImage
(
new
Uri
(
Path
));
img
.
Width
=
500
;
return
new
T
hread
(()
=>
return
new
T
ask
(()
=>
{
Thread
.
Sleep
(
Length
);
if
(
IsLoop
&&
PlayState
)
...
...
@@ -189,7 +189,7 @@ namespace VPet_Simulator.Core
/// <param name="img">用于显示的Image</param>
/// <param name="EndAction">结束动画</param>
/// <returns>准备好的线程</returns>
T
hread
Run
(
System
.
Windows
.
Controls
.
Image
img
,
Action
EndAction
=
null
);
T
ask
Run
(
System
.
Windows
.
Controls
.
Image
img
,
Action
EndAction
=
null
);
}
}
...
...
VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs
浏览文件 @
cc1e1873
...
...
@@ -667,7 +667,7 @@ namespace VPet_Simulator.Windows
private
void
Group_Click
(
object
sender
,
RoutedEventArgs
e
)
{
if
(
LocalizeCore
.
CurrentCulture
.
StartsWith
(
"zh"
))
ExtensionSetting
.
StartURL
(
"https://
jq.qq.com/?_wv=1027&k=zmeWNHyI
"
);
ExtensionSetting
.
StartURL
(
"https://
tieba.baidu.com/f?kw=%E8%99%9A%E6%8B%9F%E4%B8%BB%E6%92%AD%E6%A8%A1%E6%8B%9F%E5%99%A8
"
);
else
ExtensionSetting
.
StartURL
(
"https://github.com/LorisYounger/VPet"
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录