Skip to content

Bannerlord-Community-Mods/TradeImprovements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mount & Blade Bannerlord Trade Improvements Mod

Currently the mod shows whether the items are profitable to buy or sell. The game already had this functionality displayed in the tooltip of an item but it is more convenient to see it straight away.

It overrides the InventoryGauntletScreenOverride class with a mirror like class that sends the _dataSource to the MainApp which changes the displayed fields. It is a mirror because the original class has all the needed fields as private.

A better way of doing this would be to override the _dataSource type SPInventoryVM and do the changes on refresh. However, a simple class SPInventoryVMOverride that extends SPInventoryVM with no extra logic caused tooltips and other ui elements to misbehave.

To do

  • Append margin to TextDescription
  • Move margin to a margin column
  • Sort items by margin column
  • Feature Switch using WholeSeller perk
  • Release to bannerlord.mod.io

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages