RimWorld

RimWorld

776 hodnocení
Dynamic Trade Interface
4
3
2
2
2
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Mod, 1.4, 1.5, 1.6
Velikost souboru
Přidáno
Aktualizováno
870.295 KB
15. srp. 2023 v 10.12
2. srp. v 9.31
Poznámky ke změnám (58) – zobrazit

Klikněte na „Odebírat“ pro stažení položky
Dynamic Trade Interface

Popis
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
Populární diskuze Zobrazit vše (3)
10
17. bře. 2024 v 11.48
Error offering gifts to hostile settlement
Tom Jackal
4
14. bře. 2024 v 17.23
Error when trying to trade.
Tandy1000Synth
0
31. kvě. v 21.37
Price unpredictability when paired with Everything has Quality Silver
Scarlet
Počet komentářů: 257
Winterstein před 15 hodinami 
I will try to do this, but is it not possible to not update the button while holding "Shift" but simply checking if this key is pressed onClick?
Zeracronius  [autor] před 16 hodinami 
@Winterstein
Actually, have you tried rebinding the Shift key away from Increment 100x?
When the modifiers change, the buttons update to reflect which ones are and aren't available.
In unity, updating the interface while focused in a text box causes the text box to lose focus. There is an option to try attempt to auto-refocus the control when this happens, however this sometimes ends up a bit too aggressive.

Rebinding the increment multiplier or enabling that option should mitigate the issue.
Zeracronius  [autor] před 17 hodinami 
Thank you, I will try to investigate this
Winterstein před 19 hodinami 
I have an AZERTY keyboard with numbers accessibles only through shift (mini keyboard). When I click the rectangle to input a specific number, when I type "Shift", before any other input, the interface do something weird and then when I type a number (1, 2, 3, 4, 5 ...) it does not reflect well on the ui.
Zeracronius  [autor] 10. srp. v 2.54 
This is the first i hear of any input issues. To my knowledge, Unity should be handling that part.
Can you describe what exactly you experience?

For arrows, the mod supports using a number of modifier keys to adjust the increments, following similar standards like in vanilla: Control, Shift, and both, for 10, 100, and 1000 increments.
Winterstein 10. srp. v 2.31 
Hello, thanks for your mod. It seems it does not handle welll AZERTY (mini) keyboard. When typings numbers it does not understand it and that's a bit sad because Trade UI handle it perfectly. Do you think you can provide a fix for that?

Most of the time, the arrrows are enough but sometimes (especially with GTG Orbial) I need to enter specific numbers and it's a problem.

Moreover, it would be cool to have a mechanism that detect hold click and automaticaly increase the number without having to click over and over.
Zeracronius  [autor] 5. srp. v 2.52 
It has been reported that there was some incompatibilities with bartering, but not specifically what the issue was.
I have not been able to find any obvious overlap or conflicts with Bartering as it uses its entirely own UI.
But I will try to dig further when I get home from vacation
✪ AstraZeneca 4. srp. v 22.47 
Bartering (Trading) with the merchant's guild from VFE-Medieval 2 with this mod causes the merchant's side show nothing. I can still sell but there's nothing to buy.

Console shows no error, at least when opening the interface and trading for me. I may have missed it if it did show errors. Works very well otherwise.
Zeracronius  [autor] 2. srp. v 9.33 
Should be fixed now. Thanks for letting me know, and sorry for the inconvenience!
Azazellz 2. srp. v 9.25 
Nice!
I am very accustomed to playing with your mod; it is extremely convenient for trading.
Thank you for the fix, and keep up the good work!