暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UsageDial.uxml 1.7KB

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ui:UXML
  3. xmlns:ui="UnityEngine.UIElements"
  4. xmlns:uie="UnityEditor.UIElements"
  5. xmlns:apui="UnityEditor.AdaptivePerformance.UI.Editor"
  6. xsi="http://www.w3.org/2001/XMLSchema-instance"
  7. engine="UnityEngine.UIElements"
  8. editor="UnityEditor.UIElements"
  9. noNamespaceSchemaLocation="../../../../../../UIElementsSchema/UIElements.xsd"
  10. editor-extension-mode="True">
  11. <ui:VisualElement name="proxy-root">
  12. <Style src="UsageDialStyle.uss" />
  13. <ui:VisualElement style="border-left-color: rgba(151, 151, 151, 255); border-right-color: rgba(151, 151, 151, 255); border-top-color: rgba(151, 151, 151, 255); border-bottom-color: rgba(151, 151, 151, 255); border-bottom-width: 1px; flex-grow: 1; width: 68px; margin-left: 0; padding-left: 2px;">
  14. <apui:UsageDial percentage-value="31" class="usage-dial__background-image">
  15. <ui:VisualElement name="usage-dial__root" style="align-items: center; width: 0; height: 0;">
  16. <ui:VisualElement name="usage-dial__indicator" style="width: 12px; position: absolute; right: 22px; border-left-color: rgb(255, 255, 255); border-right-color: rgb(255, 255, 255); border-top-color: rgb(255, 255, 255); border-bottom-color: rgb(255, 255, 255); border-left-width: 0; border-right-width: 0; border-top-width: 0.5px; border-bottom-width: 0.5px; border-top-left-radius: 1px; border-bottom-left-radius: 1px; border-top-right-radius: 1px; border-bottom-right-radius: 1px;" />
  17. </ui:VisualElement>
  18. <ui:Label text="50%" display-tooltip-when-elided="true" name="usage-dial__label" style="-unity-text-align: upper-center;" show-label="true"/>
  19. </apui:UsageDial>
  20. </ui:VisualElement>
  21. </ui:VisualElement>
  22. </ui:UXML>