A high-performance and customizable trade interface originally inspired by [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2683622537]Trade UI Revised[/url].
Written from scratch to not only avoid the biggest performance hits of the vanilla UI but to also allow for other mods to easily extend it with additional columns.
Can be safely added and removed at any time during a playthrough, since it doesn't add any game content.
Does [u]not[/u] replace the vanilla trade window. Instead you can choose in the mod options whether to open this or vanilla one by default, the other one can be accessed by holding down ctrl as the window opens.
The changelog can be found under the Change Notes tab.
Features:
[list]
[*] Performance friendly.
[*] Move and resize trade window.
[*] Toggle, hide and resize columns.
[*] Search and filter with RegEx, then save them.
[*] Enable saved filters for notifications.
[*] Click each columns to sort by it, and multiple with shift.
[*] Buy and Sell max affordable using double arrow buttons.
[*] Open original trade window by holding ctrl when it opens.
[*] Option to hide everything trader is unwilling to buy.
[*] Option to only show trade buttons near the cursor for better performance.
[*] Out of the box xenotype support and other extra icons.
[*] Togglable and resizable summary section based on TradeHelper.
[/list]
Added columns:
[list]
[*] Durability.
[*] Price per weight.
[*] Label variant of counter column.
[*] Category.
[/list]
Integrations & Compatibilities:
[list]
[*] Compatible with [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2882497271] Random's Gene Assistant [/url]
[*] Compatible with [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2599942235] DragSelect [/url]
[*] Compatible with [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2920370783] Show Known Techprints [/url]
[*] Compatible with [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3513846773] Quality Colors (Continued) [/url]
[*] [url=https://steamcommunity.com/sharedfiles/filedetails/?id=1440321094] Auto Seller [/url] adds an additional column.
[/list]
Limitations:
[list]
[*] Due to how Rimworld's UI system works, controls will lose focus if any other control is made visible or invisible ahead of it. Generally to the left and up.
This means that for example, putting the buttons to the left of the input counter boxes will cause them to unfocus when buttons change.
[b]There is now an option that can be enabled in the mod settings that attempts to compensate for this, by automatically refocusing the control whenever the focus is lost from changing interface. Often the escape button can be used to close windows that appear unreponsive. [/b]
[/list]
Extendability (For modders):
XSD files are bundled with the mod describing how to define a TradeColumnDef.
Based on a number of method handlers, column behaviour can be easily referenced in C#.
Because it doesn't use any custom typings, it can all be defined without any need for assembly references or otherwise.
The documentation can be found [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FZeracronius%2FDynamicTradeInterface%2Fwiki]https://github.com/Zeracronius/DynamicTradeInterface/wiki[/url].
All source code can be found on [url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FZeracronius%2FDynamicTradeInterface]Github[/url][github.com]
Troubleshooting
Experiencing an issue?
[list]
[*] First check that it is actually caused by this mod; Either remove it temporarily, (can be added or removed any time!) or hold ctrl while trade opens to open the original vanilla trade window and check if isssue is also present there.
[*] If the issue is still there, then it isn't related to this mod and should be reported somewhere else.
[*] If you don't experience the issue with or in vanilla, then do provide a description of what you are trying to do, and what the problem you are experiencing is. The more details the better!
[*] If the issue causes an error in the log, then use [url=https://steamcommunity.com/sharedfiles/filedetails/?id=2873415404]Hugslib log publisher[/url] to provide the log in your report.
[/list]
[url=https://steamcommunity.com/sharedfiles/filedetails/changelog/3020706506]Changelog[/url]
[url=https://steamcommunity.com/linkfilter/?u=https%3A%2F%2Fgithub.com%2FZeracronius%2FDynamicTradeInterface%2Freleases]Previous versions[/url][github.com]
Credits
Joseasoler for helping sanity checking code and ideas.
Ryan for the initial implementation of DragSelect and Gene Assistant support
Madman666 for the preview and icons.
Timmy for permission to implement features of TradeHelper
Spanish translation by Ferchu