Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
jobily
SteamTools
提交
5d35de8f
S
SteamTools
项目概览
jobily
/
SteamTools
9 个月 前同步成功
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SteamTools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5d35de8f
编写于
7月 28, 2023
作者:
R
RMBGAME
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
💄
Steam 动态头像框展示支持
上级
09be4c71
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
37 addition
and
9 deletion
+37
-9
ref/Avalonia.Image2
ref/Avalonia.Image2
+1
-1
src/Avalonia.Base.Internals/DrawingContextExtensions.cs
src/Avalonia.Base.Internals/DrawingContextExtensions.cs
+0
-1
src/BD.WTTS.Client.Plugins.GameAccount/Models/Abstractions/IAccount.cs
...lient.Plugins.GameAccount/Models/Abstractions/IAccount.cs
+2
-0
src/BD.WTTS.Client.Plugins.GameAccount/Models/BasicAccount.cs
...BD.WTTS.Client.Plugins.GameAccount/Models/BasicAccount.cs
+2
-0
src/BD.WTTS.Client.Plugins.GameAccount/Models/SteamAccount.cs
...BD.WTTS.Client.Plugins.GameAccount/Models/SteamAccount.cs
+6
-0
src/BD.WTTS.Client.Plugins.GameAccount/UI/Views/Controls/AccountItems.axaml
....Plugins.GameAccount/UI/Views/Controls/AccountItems.axaml
+26
-7
未找到文件。
Avalonia.Image2
@
1fb8d039
比较
e3527552
...
1fb8d039
Subproject commit
e3527552162b91038d538d9ec6446d0be5524fbe
Subproject commit
1fb8d0397ee26dc43ba858f9d08f22dbe0fe0753
src/Avalonia.Base.Internals/DrawingContextExtensions.cs
浏览文件 @
5d35de8f
...
@@ -6,7 +6,6 @@ namespace Avalonia;
...
@@ -6,7 +6,6 @@ namespace Avalonia;
public
static
class
DrawingContextExtensions
public
static
class
DrawingContextExtensions
{
{
public
static
void
DrawBitmap2
(
this
DrawingContext
context
,
Bitmap
source
,
double
opacity
,
Rect
sourceRect
,
Rect
destRect
)
public
static
void
DrawBitmap2
(
this
DrawingContext
context
,
Bitmap
source
,
double
opacity
,
Rect
sourceRect
,
Rect
destRect
)
{
{
context
.
DrawBitmap
(
source
.
PlatformImpl
,
opacity
,
sourceRect
,
destRect
);
context
.
DrawBitmap
(
source
.
PlatformImpl
,
opacity
,
sourceRect
,
destRect
);
...
...
src/BD.WTTS.Client.Plugins.GameAccount/Models/Abstractions/IAccount.cs
浏览文件 @
5d35de8f
...
@@ -16,6 +16,8 @@ public interface IAccount
...
@@ -16,6 +16,8 @@ public interface IAccount
string
?
ImagePath
{
get
;
set
;
}
string
?
ImagePath
{
get
;
set
;
}
string
?
AvatarFramePath
{
get
;
set
;
}
ThirdpartyPlatform
Platform
{
get
;
init
;
}
ThirdpartyPlatform
Platform
{
get
;
init
;
}
string
?
PlatformName
{
get
;
init
;
}
string
?
PlatformName
{
get
;
init
;
}
...
...
src/BD.WTTS.Client.Plugins.GameAccount/Models/BasicAccount.cs
浏览文件 @
5d35de8f
...
@@ -16,6 +16,8 @@ public sealed class BasicAccount : ReactiveObject, IAccount
...
@@ -16,6 +16,8 @@ public sealed class BasicAccount : ReactiveObject, IAccount
public
string
?
ImagePath
{
get
;
set
;
}
public
string
?
ImagePath
{
get
;
set
;
}
public
string
?
AvatarFramePath
{
get
;
set
;
}
public
ThirdpartyPlatform
Platform
{
get
;
init
;
}
public
ThirdpartyPlatform
Platform
{
get
;
init
;
}
public
string
?
PlatformName
{
get
;
init
;
}
public
string
?
PlatformName
{
get
;
init
;
}
...
...
src/BD.WTTS.Client.Plugins.GameAccount/Models/SteamAccount.cs
浏览文件 @
5d35de8f
...
@@ -40,6 +40,12 @@ public sealed class SteamAccount : ReactiveObject, IAccount
...
@@ -40,6 +40,12 @@ public sealed class SteamAccount : ReactiveObject, IAccount
set
=>
this
.
SteamUser
.
AvatarMedium
=
value
;
set
=>
this
.
SteamUser
.
AvatarMedium
=
value
;
}
}
public
string
?
AvatarFramePath
{
get
=>
this
.
SteamUser
.
MiniProfile
?.
AvatarFrame
;
set
=>
this
.
SteamUser
.
MiniProfile
.
AvatarFrame
=
value
;
}
public
bool
MostRecent
public
bool
MostRecent
{
{
get
=>
this
.
SteamUser
.
MostRecent
;
get
=>
this
.
SteamUser
.
MostRecent
;
...
...
src/BD.WTTS.Client.Plugins.GameAccount/UI/Views/Controls/AccountItems.axaml
浏览文件 @
5d35de8f
...
@@ -142,13 +142,32 @@
...
@@ -142,13 +142,32 @@
</ia:EventTriggerBehavior>
</ia:EventTriggerBehavior>
</i:Interaction.Behaviors>
</i:Interaction.Behaviors>
<spp:AppItem.Image>
<spp:AppItem.Image>
<spp:Image2
<Panel>
Width="128"
<spp:Image2
Height="128"
Width="128"
FallbackSource="avares://BD.WTTS.Client.Avalonia/UI/Assets/avatar.jpg"
Height="128"
RenderOptions.BitmapInterpolationMode="HighQuality"
FallbackSource="avares://BD.WTTS.Client.Avalonia/UI/Assets/avatar.jpg"
Source="{Binding ImagePath}"
RenderOptions.BitmapInterpolationMode="HighQuality"
Stretch="UniformToFill" />
Source="{Binding ImagePath}"
Stretch="UniformToFill" />
<spp:Image2
Width="155"
Height="155"
IsVisible="{ReflectionBinding #u.DataContext.IsSteamPlatform}"
RenderOptions.BitmapInterpolationMode="MediumQuality"
Source="{Binding AvatarFramePath}"
Stretch="UniformToFill">
<!--<spp:Image2.IsVisible>
<MultiBinding Converter="{x:Static BoolConverters.And}">
<ReflectionBinding ElementName="u" Path="DataContext.IsSteamPlatform" />
<CompiledBinding
Converter="{StaticResource IsNullConverter}"
ConverterParameter="invert"
Path="AvatarFramePath" />
</MultiBinding>
</spp:Image2.IsVisible>-->
</spp:Image2>
</Panel>
</spp:AppItem.Image>
</spp:AppItem.Image>
</spp:AppItem>
</spp:AppItem>
</Border>
</Border>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录