浏览代码

small changes

/main
Mohsen Kamalzadeh 4 年前
当前提交
26fce59a
共有 3 个文件被更改,包括 13 次插入16 次删除
  1. 14
      com.unity.perception/Editor/Randomization/Uss/Styles.uss
  2. 5
      com.unity.perception/Editor/Randomization/Uxml/Randomizer/RandomizerList.uxml
  3. 10
      com.unity.perception/Editor/Randomization/Uxml/ScenarioBaseElement.uxml

14
com.unity.perception/Editor/Randomization/Uss/Styles.uss


background-image: resource("Packages/com.unity.perception/Editor/Icons/ChevronRight.png");
}
.title-label {
-unity-font-style: bold;
margin-bottom: 5px;
color: #CACACA;
}
/* Scenario classes */
.scenario__info-box {
border-width: 1px;

white-space: normal;
margin-top: 4px;
margin-bottom: 4px;
margin: 3px 3px 3px 3px;
}
.scenario__dark-viewport {

}
.scenario__title-label {
-unity-font-style: bold;
margin: 3px 3px 3px 3px;
color: #CACACA;
}
/* Randomizer classes */
.randomizer__drag-bar {

5
com.unity.perception/Editor/Randomization/Uxml/Randomizer/RandomizerList.uxml


<UXML xmlns="UnityEngine.UIElements">
<VisualElement style="min-height: 132px;">
<VisualElement class="scenario__dark-viewport">
<TextElement text="Randomizers" class="title-label" style="margin-left: 3px; margin-top:3px"/>
<TextElement text="Randomizers" class="scenario__title-label"/>
text="Randomizers are executed in the order below. You can change the order by dragging Randomizers up or down using the handle bar to their left."
style="margin-left: 3px; margin-right: 3px; margin-top: 3px"/>
text="Randomizers are executed in the order below. You can change the order by dragging Randomizers up or down using the handle bar to their left."/>
<VisualElement name="randomizers-container" style="margin-top: 3px; min-height: 100px;"/>
<VisualElement style="flex-direction: row; align-items: center; justify-content: center; margin-top: 2px;">
<Button name="add-randomizer-button" text="Add Randomizer"/>

10
com.unity.perception/Editor/Randomization/Uxml/ScenarioBaseElement.uxml


<UXML xmlns="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements">
<VisualElement>
<Style src="../Uss/Styles.uss"/>
<TextElement
class="scenario__info-box"
text="Scenarios control the execution flow of your simulation by applying randomization parameters. Make sure to always have only one scenario active within your scene."/>
<TextElement text="Scenario Properties" class="title-label" style="margin-left: 3px; margin-top:3px"/>
<Toggle label="Quit On Complete" tooltip="Quit the application when the scenario completes" binding-path="quitOnComplete" style="margin-top:2px"/>
<TextElement text="Scenario Properties" class="scenario__title-label"/>
<TextElement
class="scenario__info-box"
text="Scenarios control the execution flow of your simulation by applying randomization parameters. Make sure to always have only one scenario active within your scene."/>
<Toggle label="Quit On Complete" tooltip="Quit the application when the scenario completes" binding-path="quitOnComplete" style="margin-top:5px"/>
<VisualElement name="constants-container">
<Foldout style="padding-left: 16px" text="Constants" name="constants-list" tooltip="A list of parameters for this scenario that will be JSON serialized in the configuration file."/>
<editor:PropertyField name="configuration-file-name" label="Constants File Name" binding-path="serializedConstantsFileName"/>

正在加载...
取消
保存