|
12 | 12 | xmlns:spp_enums="using:BD.WTTS.Enums" |
13 | 13 | xmlns:ui="using:FluentAvalonia.UI.Controls" |
14 | 14 | Title="{Binding Name, Source={x:Static s:Plugin.Instance}, Mode=OneWay}" |
15 | | - d:DesignHeight="450" |
| 15 | + d:DesignHeight="600" |
16 | 16 | d:DesignWidth="800" |
17 | 17 | x:CompileBindings="True" |
18 | 18 | x:DataType="spp:IdleCardPageViewModel" |
|
244 | 244 | </MultiBinding> |
245 | 245 | </TextBlock.Text> |
246 | 246 | </TextBlock>--> |
247 | | - <TextBlock Text="{Binding UserIdleInfo.UserName, Mode=OneWay}" /> |
| 247 | + <TextBlock> |
| 248 | + <TextBlock.Text> |
| 249 | + <MultiBinding Converter="{StaticResource VisibleStringConverter}"> |
| 250 | + <CompiledBinding Mode="OneWay" Path="IsLogin" /> |
| 251 | + <CompiledBinding Mode="OneWay" Path="UserIdleInfo.UserName" /> |
| 252 | + <CompiledBinding |
| 253 | + Mode="OneWay" |
| 254 | + Path="Res.Idle_NeedLoginSteam" |
| 255 | + Source="{x:Static s:ResourceService.Current}" /> |
| 256 | + </MultiBinding> |
| 257 | + </TextBlock.Text> |
| 258 | + </TextBlock> |
248 | 259 | </spp:OptionsDisplayItem.Header> |
249 | 260 | <spp:OptionsDisplayItem.Description> |
250 | 261 | <Panel> |
|
270 | 281 | VerticalAlignment="Center" |
271 | 282 | DecodeWidth="64" |
272 | 283 | DockPanel.Dock="Top" |
| 284 | + FallbackSource="avares://BD.WTTS.Client.Avalonia/UI/Assets/avatar.jpg" |
273 | 285 | Source="{Binding UserIdleInfo.AvatarUrl, Mode=OneWay}" |
274 | 286 | Stretch="UniformToFill"> |
275 | 287 | <spp:Image2.Clip> |
|
332 | 344 | Maximum="100" |
333 | 345 | Value="{Binding UserIdleInfo.NextLevelExpPercentage}" /> |
334 | 346 |
|
| 347 | + <StackPanel |
| 348 | + Margin="0,6,0,0" |
| 349 | + Orientation="Horizontal" |
| 350 | + Spacing="5"> |
| 351 | + <TextBlock VerticalAlignment="Center" Text="当前 Steam 客户端登录账号:" /> |
| 352 | + <spp:Image2 |
| 353 | + Width="24" |
| 354 | + Height="24" |
| 355 | + Margin="0,0,5,0" |
| 356 | + VerticalAlignment="Center" |
| 357 | + DecodeWidth="36" |
| 358 | + FallbackSource="avares://BD.WTTS.Client.Avalonia/UI/Assets/avatar.jpg" |
| 359 | + Source="{Binding Source={x:Static s:SteamConnectService.Current}, Path=CurrentSteamUser.AvatarMedium, Mode=OneWay}" |
| 360 | + Stretch="Uniform"> |
| 361 | + <spp:Image2.Clip> |
| 362 | + <EllipseGeometry Rect="0,0,24,24" /> |
| 363 | + </spp:Image2.Clip> |
| 364 | + </spp:Image2> |
| 365 | + <TextBlock VerticalAlignment="Center"> |
| 366 | + <TextBlock.Text> |
| 367 | + <MultiBinding Converter="{StaticResource VisibleStringConverter}"> |
| 368 | + <CompiledBinding |
| 369 | + Mode="OneWay" |
| 370 | + Path="IsConnectToSteam" |
| 371 | + Source="{x:Static s:SteamConnectService.Current}" /> |
| 372 | + <CompiledBinding |
| 373 | + Mode="OneWay" |
| 374 | + Path="CurrentSteamUser.SteamNickName" |
| 375 | + Source="{x:Static s:SteamConnectService.Current}" /> |
| 376 | + <CompiledBinding |
| 377 | + Mode="OneWay" |
| 378 | + Path="Res.SteamAppType_Unknown" |
| 379 | + Source="{x:Static s:ResourceService.Current}" /> |
| 380 | + </MultiBinding> |
| 381 | + </TextBlock.Text> |
| 382 | + </TextBlock> |
| 383 | + </StackPanel> |
| 384 | + |
335 | 385 | <Border |
336 | 386 | Height="1" |
337 | 387 | Margin="-50,6" |
338 | 388 | Background="{DynamicResource ApplicationPageBackgroundThemeBrush}" /> |
339 | | - |
340 | 389 | <Panel> |
341 | 390 | <WrapPanel HorizontalAlignment="Left"> |
342 | 391 | <TextBlock FontSize="36" Text="{Binding TotalCardsRemaining}" /> |
|
421 | 470 | Text="{Binding Path=IdleTime, Mode=OneWay, Converter={StaticResource StringFormatConverter}}" /> |
422 | 471 | </Panel> |
423 | 472 |
|
424 | | - <WrapPanel |
425 | | - Grid.Row="2" |
426 | | - Grid.Column="1" |
427 | | - HorizontalAlignment="Center"> |
428 | | - <TextBlock FontSize="22.6" Text="{Binding RuningCount, Mode=OneWay}" /> |
| 473 | + <WrapPanel HorizontalAlignment="Center"> |
| 474 | + <TextBlock VerticalAlignment="Center" Text="挂卡进度 " /> |
| 475 | + <TextBlock FontSize="22.6"> |
| 476 | + <TextBlock.Text> |
| 477 | + <MultiBinding StringFormat="{}{0} / {1}"> |
| 478 | + <CompiledBinding Path="DropCardsCount" /> |
| 479 | + <CompiledBinding Path="DroppedCardsCount" /> |
| 480 | + </MultiBinding> |
| 481 | + </TextBlock.Text> |
| 482 | + </TextBlock> |
| 483 | + </WrapPanel> |
| 484 | + |
| 485 | + <WrapPanel HorizontalAlignment="Center"> |
| 486 | + <TextBlock FontSize="24.6" Text="{Binding RuningCount, Mode=OneWay}" /> |
429 | 487 | <TextBlock VerticalAlignment="Center" Text=" 个游戏正在运行" /> |
430 | 488 | </WrapPanel> |
| 489 | + |
431 | 490 | <!--<TextBlock |
432 | 491 | Grid.Row="2" |
433 | 492 | Grid.Column="1" |
|
0 commit comments