Adds the ability to reorder param rows (disabled by default)
Adds GUI for reordering param rows & fields while in Editor Mode via context menus
The ability to reorder param fields already existed, using the attribute AlternativeOrder in paramdex meta files, and was gated behind the option Param_AllowFieldReorder. I used that same model to allow the reordering of rows, going off of their ID. There was, however, no GUI available for editing these orderings. I implemented that using roughly the same code that pin ordering uses, but with some extra consideration for separators.
Tested working with DS1 and Elden Ring params.
Potential concerns:
Some params have a shared paramdex file (e.g. the AtkParams in DS1) which means they also share the ordering of rows (this was already an issue, but is magnified by exposing the ability to reorder in UI)
Due to the number of rows in some param files, the XML for row ordering can get unwieldy
Some params have padding fields, which are hidden by default even in Editor Mode. This means moving a field up or down can have no apparent effect if it swaps places with a padding field
Due to the way they're placed not really making sense when rows aren't sorted by ID, separators in the rows view aren't shown while row reordering is enabled
When searching fields or rows, moving them up or down can potentially have no apparent effect (this was already true for moving pinned rows and fields, though)
"Tools->Sort Rows" seems to do nothing while row reordering is enabled, because row reordering preempts any other ordering
The ability to reorder param fields already existed, using the attribute
AlternativeOrder
in paramdex meta files, and was gated behind the optionParam_AllowFieldReorder
. I used that same model to allow the reordering of rows, going off of their ID. There was, however, no GUI available for editing these orderings. I implemented that using roughly the same code that pin ordering uses, but with some extra consideration for separators.Tested working with DS1 and Elden Ring params.
Potential concerns: