RimWorld

RimWorld

806 ratings
Dynamic Trade Interface
4
3
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5, 1.6
File Size
Posted
Updated
871.169 KB
15 Aug, 2023 @ 10:12am
27 Aug @ 5:06am
59 Change Notes ( view )

Subscribe to download
Dynamic Trade Interface

Description
A high-performance and customizable trade interface originally inspired by Trade UI Revised.
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 not 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:
  • 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.

Added columns:
  • Durability.
  • Price per weight.
  • Label variant of counter column.
  • Category.

Integrations & Compatibilities:

Limitations:
  • 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.
    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.

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 https://github.com/Zeracronius/DynamicTradeInterface/wiki.

All source code can be found on Github[github.com]


Troubleshooting
Experiencing an issue?
  1. 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.
  2. If the issue is still there, then it isn't related to this mod and should be reported somewhere else.
  3. 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!
  4. If the issue causes an error in the log, then use Hugslib log publisher to provide the log in your report.


Previous versions[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
Popular Discussions View All (3)
10
17 Mar, 2024 @ 11:48am
Error offering gifts to hostile settlement
Tom Jackal
4
14 Mar, 2024 @ 5:23pm
Error when trying to trade.
Tandy1000Synth
0
31 May @ 9:37pm
Price unpredictability when paired with Everything has Quality Silver
Scarlet
273 Comments
BigFatSMOrc 27 Aug @ 12:33pm 
@Zeracronius
Thank you, no rush!
Zeracronius  [author] 27 Aug @ 12:32pm 
No problem, glad you found it!
Nathan 27 Aug @ 12:27pm 
@Zeracronius

I didn't realize how long it's been and didn't look far back enough in the changelog to see it. I really should've checked the options before posting, though. Sorry for bothering you and thank you for the mod and updates!
Zeracronius  [author] 27 Aug @ 12:22pm 
@BigFatSMOrc
I'll push an update tomorrow that adjusts the reference ID
Zeracronius  [author] 27 Aug @ 12:19pm 
@Nathan
Alternating row colors has been in the mod since 19th of April.
You can find it in the mod's options menu.
Nathan 27 Aug @ 12:07pm 
Hello again,

I hope it's not too much trouble but I was wondering if you had any update regarding the potential for alternating row colors. It's fine if you decided it wasn't worth it or something, I've just been wondering.
BigFatSMOrc 27 Aug @ 10:09am 
Heya! Could you update the mod to be compatible with Quality Colors (Continued) https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3513846773 The original seems to have been abandoned! Thank you!
Zef 27 Aug @ 7:16am 
@Zeracronius: Thanks i tested and it works now, i can type using SHIFT when disabling "dynamic buttons".
Zeracronius  [author] 27 Aug @ 5:08am 
Added an option to turn off button behaviour. Assuming the prior description is actually the reason for this issue, then this should hopefully solve it.

It basically makes all buttons permanently visible.
Zeracronius  [author] 26 Aug @ 6:53am 
Alternatively, for testing, you can try removing the button column.