Skip to content

Commit

Permalink
Fixed action properties editor ui
Browse files Browse the repository at this point in the history
  • Loading branch information
bmalrat committed Dec 9, 2024
1 parent 790d9cc commit 2714c49
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions Packages/com.unity.inputsystem/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ however, it has to be formatted properly to pass verification tests.
- Fixed documentation to clarify bindings with modifiers `overrideModifiersNeedToBePressedFirst` configuration [ISXB-806](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-806).
- Fixed an issue in `Samples/Visualizers/GamepadVisualizer.unity` sample where the visualization wouldn't handle device disconnects or current device changes properly (ISXB-1243).
- Fixed an issue when displaying Serialized InputAction's Processor properties inside the Inspector window. [ISXB-1269](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1269)
- Fixed Action properties edition in the UI Toolkit version of the Input Actions Asset editor. [ISXB-1278](https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1278)

### Changed
- Added back the InputManager to InputSystem project-wide asset migration code with performance improvement (ISX-2086).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,16 @@ public void OnDrawVisualElements(VisualElement root, Action onChangedCallback)

m_HelpBox = new HelpBox(m_HelpBoxText.text, HelpBoxMessageType.None);

m_DefaultToggle = new Toggle("Default") { value = m_UseDefaultValue };
m_DefaultToggle = new Toggle("Default")
{
value = m_UseDefaultValue,
style =
{
flexDirection = FlexDirection.RowReverse
}
};
m_DefaultToggle.RegisterValueChangedCallback(evt => ToggleUseDefaultValue(evt, onChangedCallback));
m_DefaultToggle.Q<Label>().style.minWidth = new StyleLength(StyleKeyword.Auto);


var buttonContainer = new VisualElement
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</ui:VisualElement>
<ui:VisualElement name="rclick-area-to-add-new-action-map" style="flex-direction: column; flex-grow: 1;" />
</ui:VisualElement>
<ui:TwoPaneSplitView name="actions-and-properties-split-view" fixed-pane-index="1" fixed-pane-initial-dimension="230" style="height: auto; min-width: 450px">
<ui:TwoPaneSplitView name="actions-and-properties-split-view" fixed-pane-index="1" fixed-pane-initial-dimension="300" style="height: auto; min-width: 450px;">
<ui:VisualElement name="actions-container" class="body-panel-container">
<ui:VisualElement name="header" class="body-panel-header" style="justify-content: space-between;">
<ui:Label text="Actions" display-tooltip-when-elided="true" name="actions-label" />
Expand All @@ -39,7 +39,7 @@
</ui:VisualElement>
<ui:VisualElement name="rclick-area-to-add-new-action" style="flex-direction: column; flex-grow: 1;" />
</ui:VisualElement>
<ui:VisualElement name="properties-container" class="body-panel-container body-panel-container" style="min-width: 220;">
<ui:VisualElement name="properties-container" class="body-panel-container body-panel-container" style="min-width: 295px;">
<ui:VisualElement name="header" class="body-panel-header">
<ui:Label text="Action Properties" display-tooltip-when-elided="true" name="properties-header-label" />
</ui:VisualElement>
Expand Down

0 comments on commit 2714c49

Please sign in to comment.