Skip to content

Commit

Permalink
5.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Nebby1999 committed Oct 2, 2024
1 parent 4792d5a commit 64ee462
Show file tree
Hide file tree
Showing 4 changed files with 325 additions and 25 deletions.
37 changes: 23 additions & 14 deletions Assets/VisualElements/Components/MapNodeGroupInspector.uxml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,30 @@
<ui:Toggle label="Draw All Nodes" name="DrawAllNodes" />
<ui:TextField picking-mode="Ignore" label="Gate Name" name="GateName" />
<ui:VisualElement name="FlagContainer" />
<ui:VisualElement style="flex-direction: row;">
<ui:Button text="Update no Ceiling Masks" display-tooltip-when-elided="true" name="UpdateNoCeilingMasks" style="white-space: normal; flex-grow: 0; flex-direction: column; flex-wrap: nowrap; width: 48%;" />
<ui:Button text="Clear Nodes" display-tooltip-when-elided="true" name="ClearNodes" style="flex-grow: 0; width: 48%;" />
<ui:Toggle label="Use Painter" name="UsePainter" />
<ui:VisualElement name="PainterContainer" style="display: none;">
<RoR2.Editor.ExtendedHelpBox message="The Painter for Map Nodes is a legacy feature and is not supported directly by Nebby. Bugs related to it will be fixed by the community" message-type="Info" />
<uie:FloatField label="Painter Size" value="42,2" name="BrushSize" />
</ui:VisualElement>
<ui:VisualElement style="flex-direction: row;">
<ui:Button text="Update Teleporter Masks" display-tooltip-when-elided="true" name="UpdateTeleporterMasks" style="white-space: normal; flex-grow: 0; flex-direction: column; flex-wrap: nowrap; width: 48%;" />
<ui:Button text="Bake Node Graph" display-tooltip-when-elided="true" name="BakeNodeGraph" style="flex-grow: 0; width: 48%;" />
</ui:VisualElement>
<ui:VisualElement style="flex-direction: row;">
<ui:Button text="Update Hull Masks" display-tooltip-when-elided="true" name="UpdateHullMasks" style="white-space: normal; flex-grow: 0; flex-direction: column; flex-wrap: nowrap; width: 48%;" />
<ui:Button text="Remove Node Excess" display-tooltip-when-elided="true" name="RemoveNodeExcess" style="flex-grow: 0; width: 48%;" />
</ui:VisualElement>
<ui:VisualElement style="flex-direction: row;">
<ui:Button text="Make Air Nodes" display-tooltip-when-elided="true" name="MakeAirNodes" style="white-space: normal; flex-grow: 0; flex-direction: column; flex-wrap: nowrap; width: 48%;" />
<ui:Button text="Make Ground Nodes" display-tooltip-when-elided="true" name="MakeGroundNodes" style="flex-grow: 0; width: 48%;" />
<ui:VisualElement name="ButtonContainer">
<ui:VisualElement style="flex-direction: row;">
<ui:Button text="Update no Ceiling Masks" display-tooltip-when-elided="true" name="UpdateNoCeilingMasks" style="white-space: normal; flex-grow: 0; flex-direction: column; flex-wrap: nowrap; width: 48%;" />
<ui:Button text="Update Teleporter Masks" display-tooltip-when-elided="true" name="UpdateTeleporterMasks" style="white-space: normal; flex-grow: 0; flex-direction: column; flex-wrap: nowrap; width: 48%;" />
</ui:VisualElement>
<ui:VisualElement style="flex-direction: row;">
<ui:Button text="Update Hull Masks" display-tooltip-when-elided="true" name="UpdateHullMasks" style="white-space: normal; flex-grow: 0; flex-direction: column; flex-wrap: nowrap; width: 48%;" />
<ui:Button text="Remove Node Excess" display-tooltip-when-elided="true" name="RemoveNodeExcess" style="flex-grow: 0; width: 48%;" />
</ui:VisualElement>
<ui:VisualElement style="flex-direction: row;">
<ui:Button text="Make Air Nodes" display-tooltip-when-elided="true" name="MakeAirNodes" style="white-space: normal; flex-grow: 0; flex-direction: column; flex-wrap: nowrap; width: 48%;" />
<ui:Button text="Make Ground Nodes" display-tooltip-when-elided="true" name="MakeGroundNodes" style="flex-grow: 0; width: 48%;" />
</ui:VisualElement>
<ui:VisualElement style="flex-direction: row;">
<ui:Button text="Clear Nodes" display-tooltip-when-elided="true" name="ClearNodes" style="flex-grow: 0; width: 31.5%; color: rgb(255, 0, 0);" />
<ui:Button text="Bake Graph" display-tooltip-when-elided="true" name="BakeNodeGraph" style="flex-grow: 0; width: 31.5%;" />
<ui:Button text="Bake Async" display-tooltip-when-elided="true" name="BakeGraphAsync" style="flex-grow: 0; width: 31.5%;" />
</ui:VisualElement>
</ui:VisualElement>
<ui:ProgressBar value="0.5" title="Baking..." name="BakingProgressBar" high-value="1" style="display: none;" />
</ui:VisualElement>
</ui:UXML>
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
### '5.3.0'

* RoR2Scripts Changes:
* Made multiple changes and improvements to the ``MapNodeGroup`` inspector
* Fixed the SceneGUI not updating as often as necesary, causing a choppy experience.
* Fixed certain utilities that where supposed to be connected to editor settings not being properly updated.
* Added a "HitPoint position" scene field to display the position where the cursor is.
* Re-implemented the node painter utility.
* Allows you to select a size for the brush
* Pressing ``B`` by default paints nodes on the selected area
* This utility will not be directly supported by the main developer
* Added a button to bake the nodes "asynchronously"
* Uses a Coroutine for baking the nodes
* Coroutine yields more often with less node counts, specially noticeable when the node count jumps by magnitudes.
* Added a ProgressBar that's used when the inspector is baking nodes asynchronously

### '5.2.2'

* Core Changes:
Expand Down
Loading

0 comments on commit 64ee462

Please sign in to comment.