VersionToolBar.xaml 3.0 KB

123456789101112131415161718192021222324252627282930
  1. <Grid Margin="0,10,6,0">
  2. ${@IF|${translator}|${@IF|!${translators_in_new_line}|
  3. <StackPanel Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
  4. <Path Margin="8,0" Width="18" Height="18" Fill="{DynamicResource ColorBrush4}"
  5. Stretch="Uniform"
  6. Data="M640 416h256c35.36 0 64 28.48 64 64v416c0 35.36-28.48 64-64 64H480c-35.36 0-64-28.48-64-64V640h128c53.312 0 96-42.976 96-96V416zM64 128c0-35.36 28.48-64 64-64h416c35.36 0 64 28.48 64 64v416c0 35.36-28.48 64-64 64H128c-35.36 0-64-28.48-64-64V128z m128 276.256h46.72v-24.768h67.392V497.76h49.504V379.488h68.768v20.64h50.88V243.36H355.616v-34.368c0-10.08 1.376-18.784 4.16-26.112a10.56 10.56 0 0 0 1.344-4.16c0-0.896-3.2-1.792-9.6-2.72h-46.816v67.36H192v160.896z m46.72-122.368h67.392v60.48h-67.36V281.92z m185.664 60.48h-68.768V281.92h68.768v60.48z m203.84 488l19.264-53.632h100.384l19.264 53.632h54.976L732.736 576h-64.64L576 830.4h52.256z m33.024-96.256l37.12-108.608h1.376l34.368 108.608h-72.864zM896 320h-64a128 128 0 0 0-128-128v-64a192 192 0 0 1 192 192zM128 704h64a128 128 0 0 0 128 128v64a192 192 0 0 1-192-192z"/>
  7. <TextBlock Text="By ${translator}" FontSize="14" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush4}"/>
  8. </StackPanel>
  9. }}
  10. <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
  11. <local:MyIconTextButton Text="启动" ToolTip="启动 ${version-id}" EventType="启动游戏"
  12. EventData="${version-id}" LogoScale="0.85" Logo="{StaticResource LaunchIcon}" />
  13. <local:MyIconTextButton Style="{StaticResource DownloadVersionButton}"
  14. LogoScale="0.85" Logo="{StaticResource DownloadIcon}"/>
  15. ${@IF|${server-jar}|
  16. <local:MyIconTextButton Style="{StaticResource ServerJarDownloadButton}"
  17. LogoScale="1.05" EventData="${server-jar}" Logo="{StaticResource CloudIcon}" />
  18. }
  19. </StackPanel>
  20. </Grid>
  21. ${@IF|${translator}|${@IF|${translators_in_new_line}|
  22. <StackPanel Margin="0,10,6,0" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Center">
  23. <Path Margin="8,0" Width="18" Height="18" Fill="{DynamicResource ColorBrush4}"
  24. Stretch="Uniform"
  25. Data="M640 416h256c35.36 0 64 28.48 64 64v416c0 35.36-28.48 64-64 64H480c-35.36 0-64-28.48-64-64V640h128c53.312 0 96-42.976 96-96V416zM64 128c0-35.36 28.48-64 64-64h416c35.36 0 64 28.48 64 64v416c0 35.36-28.48 64-64 64H128c-35.36 0-64-28.48-64-64V128z m128 276.256h46.72v-24.768h67.392V497.76h49.504V379.488h68.768v20.64h50.88V243.36H355.616v-34.368c0-10.08 1.376-18.784 4.16-26.112a10.56 10.56 0 0 0 1.344-4.16c0-0.896-3.2-1.792-9.6-2.72h-46.816v67.36H192v160.896z m46.72-122.368h67.392v60.48h-67.36V281.92z m185.664 60.48h-68.768V281.92h68.768v60.48z m203.84 488l19.264-53.632h100.384l19.264 53.632h54.976L732.736 576h-64.64L576 830.4h52.256z m33.024-96.256l37.12-108.608h1.376l34.368 108.608h-72.864zM896 320h-64a128 128 0 0 0-128-128v-64a192 192 0 0 1 192 192zM128 704h64a128 128 0 0 0 128 128v64a192 192 0 0 1-192-192z"/>
  26. <TextBlock Text="By ${translator}" FontSize="14" VerticalAlignment="Center" Foreground="{DynamicResource ColorBrush4}"/>
  27. </StackPanel>
  28. }}