mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Increased the width of the mouse drop area for inv on the barter screen
Removed HRP's BARTER_PC_INV_DROP_FIX.
This commit is contained in:
@@ -276,12 +276,6 @@ void Setting::init(const char* exeFileName, std::string &cmdline) {
|
||||
int nodes = sf::IniReader::GetInt("MAPS", "NumPathNodes", 1, f2ResIni);
|
||||
if (nodes > 1) game::Tilemap::SetPathMaxNodes((nodes < 20) ? nodes * 2000 : 40000);
|
||||
|
||||
if (sf::IniReader::GetInt("OTHER_SETTINGS", "BARTER_PC_INV_DROP_FIX", 1, f2ResIni)) {
|
||||
// barter_move_from_table_inventory_
|
||||
if (fo::var::getInt(0x47523D) == 80) sf::SafeWrite32(0x47523D, 100); // x_start
|
||||
if (fo::var::getInt(0x475231) == 144) sf::SafeWrite32(0x475231, 164); // x_end
|
||||
}
|
||||
|
||||
// add: patchXXX.dat > sfall.dat > [add here] > critter.dat > master.dat
|
||||
sf::LoadOrder::AddResourcePatches(
|
||||
sf::IniReader::GetString("Main", "f2_res_dat", "f2_res.dat", MAX_PATH, f2ResIni),
|
||||
|
||||
@@ -659,7 +659,7 @@ static bool PrintHotspotText(long x, long y, bool backgroundCopy = false) {
|
||||
long x_cut = abs(20 - x);
|
||||
long width = 0;
|
||||
do {
|
||||
width += fo::GetCharWidthFM(*text++);
|
||||
width += fo::util::GetCharWidthFM(*text++);
|
||||
} while (width < x_cut);
|
||||
x += x_cut;
|
||||
}*/
|
||||
@@ -1017,6 +1017,13 @@ static void InterfaceWindowPatch() {
|
||||
|
||||
// Increase the max text width of the information card on the character screen
|
||||
SafeWriteBatch<BYTE>(145, {0x43ACD5, 0x43DD37}); // 136, 133
|
||||
|
||||
// Increase the width of the mouse drop area from 64px to 80px for the PC's and NPC's inventory on the barter screen
|
||||
// barter_move_from_table_inventory_
|
||||
SafeWrite32(0x47523D, 98); // x_start was 80
|
||||
SafeWrite32(0x475231, 98 + 80); // x_end was 144
|
||||
SafeWrite32(0x4752BE, 460); // x_start was 475
|
||||
SafeWrite32(0x4752B2, 460 + 80); // x_end was 539
|
||||
}
|
||||
|
||||
static void InventoryCharacterRotationSpeedPatch() {
|
||||
|
||||
Reference in New Issue
Block a user