mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Renamed the inventory/barter slot extension options
Edited their logging messages and description in ddraw.ini Added Chinese FRMs Corrected the size directives in ASM code in Inventory.cpp
This commit is contained in:
+10
-9
@@ -114,6 +114,16 @@ FadeMultiplier=100
|
|||||||
;The minimum supported version of the hi-res patch is v4.1.8
|
;The minimum supported version of the hi-res patch is v4.1.8
|
||||||
ActionPointsBar=0
|
ActionPointsBar=0
|
||||||
|
|
||||||
|
;Set to 1 to use the expanded barter/trade interface with 4 item slots per table instead of 3
|
||||||
|
;Requires the hi-res patch/mode and new BARTER_E.frm and TRADE_E.frm files in art\intrface\ (included in sfall.dat)
|
||||||
|
;The resolution of the hi-res patch must be set to at least 640x528
|
||||||
|
;The only supported version of the hi-res patch is v4.1.8
|
||||||
|
ExpandBarter=0
|
||||||
|
|
||||||
|
;Set to 1 to use the expanded inventory/loot screens with 8 vertical slots instead of 6
|
||||||
|
;Requires new INVBOX_E.frm, LOOT_E.frm, and USE_E.frm files in art\intrface\ (included in sfall.dat)
|
||||||
|
ExpandInventory=0
|
||||||
|
|
||||||
;Set to 1 to use the expanded world map interface
|
;Set to 1 to use the expanded world map interface
|
||||||
;Set to 2 to skip correcting the position of entrance markers on town maps
|
;Set to 2 to skip correcting the position of entrance markers on town maps
|
||||||
;You can use resized FRMs in 700x682 for town maps in the expanded world map interface
|
;You can use resized FRMs in 700x682 for town maps in the expanded world map interface
|
||||||
@@ -133,15 +143,6 @@ WorldMapTravelMarkers=0
|
|||||||
;Set to 1 to display terrain types when hovering the cursor over the player's marker on the world map
|
;Set to 1 to display terrain types when hovering the cursor over the player's marker on the world map
|
||||||
WorldMapTerrainInfo=0
|
WorldMapTerrainInfo=0
|
||||||
|
|
||||||
;Set to 1 to enable tall trade/barter window with 4 item slots per table instead of 3
|
|
||||||
;Requires the high-res mode with resolution of at least 640x528
|
|
||||||
;Requires new frm files in art\intrface\: barter_e.frm (640x239), trade_e.frm (640x238) (included in sfall.dat)
|
|
||||||
ExpandedBarter=0
|
|
||||||
|
|
||||||
;Set to 1 to enable tall inventory/loot/item select windows with 8 vertical slots instead of 6
|
|
||||||
;Requires new frm files in art\intrface\: invbox_e.frm (499x467), loot_e.frm (537x464) and use_e.frm (292x464) files (included in sfall.dat)
|
|
||||||
ExpandedInventory=0
|
|
||||||
|
|
||||||
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
;XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
|
||||||
[Sound]
|
[Sound]
|
||||||
;Sets the number of allowed simultaneous sound effects
|
;Sets the number of allowed simultaneous sound effects
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1267,15 +1267,15 @@ static void __declspec(naked) gdialog_barter_destroy_win__gdialog_scroll_subwin_
|
|||||||
|
|
||||||
// Expands barter/trade window vertically with 4 slots per table instead of 3.
|
// Expands barter/trade window vertically with 4 slots per table instead of 3.
|
||||||
static void ExpandedBarterPatch() {
|
static void ExpandedBarterPatch() {
|
||||||
if (IniReader::GetConfigInt("Interface", "ExpandedBarter", 0) == 0) return;
|
if (IniReader::GetConfigInt("Interface", "ExpandBarter", 0) == 0) return;
|
||||||
|
|
||||||
const int dialogWindowHeight = 480 + extraBarterHeight;
|
const int dialogWindowHeight = 480 + extraBarterHeight;
|
||||||
if (Graphics::GetGameHeightRes() < dialogWindowHeight) {
|
if (Graphics::GetGameHeightRes() < dialogWindowHeight) {
|
||||||
dlog_f("Skipping expanded barter screen patch. Screen height = %d < %d\n", DL_INIT, Graphics::GetGameHeightRes(), dialogWindowHeight);
|
dlog_f("Skipping expanded barter screen patch. Screen height < %d\n", DL_INIT, dialogWindowHeight);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (HRP::Setting::ExternalEnabled() && !HRP::Setting::VersionIsValid) {
|
if (HRP::Setting::ExternalEnabled() && !HRP::Setting::VersionIsValid) {
|
||||||
dlogr("Skipping expanded barter screen patch. Incompatible version of High-Resolution Patch (f2_res.dll) found.", DL_INIT);
|
dlogr("Skipping expanded barter screen patch. Incompatible version of Hi-Res Patch found.", DL_INIT);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!barterTallFrm.ArtExists() || !tradeTallFrm.ArtExists()) {
|
if (!barterTallFrm.ArtExists() || !tradeTallFrm.ArtExists()) {
|
||||||
@@ -1313,7 +1313,7 @@ static void ExpandedBarterPatch() {
|
|||||||
|
|
||||||
// Expands inventory/loot/item select windows vertically with 8 vertical slots instead of 6
|
// Expands inventory/loot/item select windows vertically with 8 vertical slots instead of 6
|
||||||
static void ExpandedInventoryPatch() {
|
static void ExpandedInventoryPatch() {
|
||||||
if (IniReader::GetConfigInt("Interface", "ExpandedInventory", 0) == 0) return;
|
if (IniReader::GetConfigInt("Interface", "ExpandInventory", 0) == 0) return;
|
||||||
|
|
||||||
for (size_t i = 0; i < inventoryTallFrms.size(); i++) {
|
for (size_t i = 0; i < inventoryTallFrms.size(); i++) {
|
||||||
if (!inventoryTallFrms[i].ArtExists()) {
|
if (!inventoryTallFrms[i].ArtExists()) {
|
||||||
|
|||||||
@@ -415,7 +415,7 @@ scroll:
|
|||||||
mov ebx, [eax + 8 + 0]; // ebx = _i_wid.rect.x
|
mov ebx, [eax + 8 + 0]; // ebx = _i_wid.rect.x
|
||||||
mov ecx, [eax + 8 + 4]; // ecx = _i_wid.rect.y
|
mov ecx, [eax + 8 + 4]; // ecx = _i_wid.rect.y
|
||||||
mov eax, 48;
|
mov eax, 48;
|
||||||
mul ds:[FO_VAR_inven_cur_disp];
|
imul dword ptr ds:[FO_VAR_inven_cur_disp];
|
||||||
add ecx, 37;
|
add ecx, 37;
|
||||||
mov edx, ecx; // y_start
|
mov edx, ecx; // y_start
|
||||||
add ecx, eax; // y_end
|
add ecx, eax; // y_end
|
||||||
@@ -459,7 +459,7 @@ scroll:
|
|||||||
mov ebx, ebp; // ebx = _i_wid.rect.x
|
mov ebx, ebp; // ebx = _i_wid.rect.x
|
||||||
mov ecx, edi; // ecx = _i_wid.rect.y
|
mov ecx, edi; // ecx = _i_wid.rect.y
|
||||||
mov eax, 48;
|
mov eax, 48;
|
||||||
mul ds:[FO_VAR_inven_cur_disp];
|
imul dword ptr ds:[FO_VAR_inven_cur_disp];
|
||||||
add ecx, 35;
|
add ecx, 35;
|
||||||
mov edx, ecx; // y_start
|
mov edx, ecx; // y_start
|
||||||
add ecx, eax; // y_end
|
add ecx, eax; // y_end
|
||||||
@@ -479,7 +479,7 @@ notTargetScroll:
|
|||||||
mov ebx, ebp;
|
mov ebx, ebp;
|
||||||
mov ecx, edi;
|
mov ecx, edi;
|
||||||
mov eax, 48;
|
mov eax, 48;
|
||||||
mul ds:[FO_VAR_inven_cur_disp];
|
imul dword ptr ds:[FO_VAR_inven_cur_disp];
|
||||||
add ecx, 20;
|
add ecx, 20;
|
||||||
mov edx, ecx; // y_start
|
mov edx, ecx; // y_start
|
||||||
add ecx, eax; // y_end
|
add ecx, eax; // y_end
|
||||||
@@ -499,7 +499,7 @@ notTargetBarter:
|
|||||||
mov ebx, ebp;
|
mov ebx, ebp;
|
||||||
mov ecx, edi;
|
mov ecx, edi;
|
||||||
mov eax, 48;
|
mov eax, 48;
|
||||||
mul ds:[FO_VAR_inven_cur_disp];
|
imul dword ptr ds:[FO_VAR_inven_cur_disp];
|
||||||
add ecx, 20;
|
add ecx, 20;
|
||||||
mov edx, ecx; // y_start
|
mov edx, ecx; // y_start
|
||||||
add ecx, eax; // y_end
|
add ecx, eax; // y_end
|
||||||
|
|||||||
Reference in New Issue
Block a user