File:Ufo weight.zip: Difference between revisions
Appearance
Hacked CE edition that displays encumbrance on equipment screen |
No edit summary |
||
| Line 1: | Line 1: | ||
Hacked CE edition that displays encumbrance on equipment screen | Hacked CE edition that displays encumbrance on equipment screen | ||
'Recycle' the 'GROUND' text on the inventory screen to display the encumberance of the unit. | |||
Patch detail: | |||
.text:0041947E E9 99 FA 04 00 jmp loc_468F1C | |||
.text:00468F1C loc_468F1C: ; CODE XREF: DrawInventoryItems+BE�j | |||
.text:00468F1C 51 push ecx | |||
.text:00468F1D 6A 01 push 1 ; useSmallFont | |||
.text:00468F1F 8B 0D 6C 3F 4A 00 mov ecx, lastCursorPosition | |||
.text:00468F25 51 push ecx ; int | |||
.text:00468F26 6A 20 push 20h ; int | |||
.text:00468F28 A1 88 3E 4A 00 mov eax, currentUnit_unitref | |||
.text:00468F2D 31 DB xor ebx, ebx | |||
.text:00468F2F 8A 58 28 mov bl, [eax+28h] | |||
.text:00468F32 53 push ebx ; unitIdx | |||
.text:00468F33 E8 E8 A8 FA FF call GetUnitEncumberance | |||
.text:00468F38 83 C4 04 add esp, 4 | |||
.text:00468F3B 50 push eax ; number | |||
.text:00468F3C E8 CF 7A FE FF call DrawNumber2 | |||
.text:00468F41 83 C4 10 add esp, 10h | |||
.text:00468F44 59 pop ecx | |||
.text:00468F45 5F pop edi | |||
.text:00468F46 5E pop esi | |||
.text:00468F47 5D pop ebp | |||
.text:00468F48 5B pop ebx | |||
.text:00468F49 C3 retn | |||
Revision as of 01:33, 29 March 2008
Hacked CE edition that displays encumbrance on equipment screen 'Recycle' the 'GROUND' text on the inventory screen to display the encumberance of the unit. Patch detail:
.text:0041947E E9 99 FA 04 00 jmp loc_468F1C
.text:00468F1C loc_468F1C: ; CODE XREF: DrawInventoryItems+BE�j .text:00468F1C 51 push ecx .text:00468F1D 6A 01 push 1 ; useSmallFont .text:00468F1F 8B 0D 6C 3F 4A 00 mov ecx, lastCursorPosition .text:00468F25 51 push ecx ; int .text:00468F26 6A 20 push 20h ; int .text:00468F28 A1 88 3E 4A 00 mov eax, currentUnit_unitref .text:00468F2D 31 DB xor ebx, ebx .text:00468F2F 8A 58 28 mov bl, [eax+28h] .text:00468F32 53 push ebx ; unitIdx .text:00468F33 E8 E8 A8 FA FF call GetUnitEncumberance .text:00468F38 83 C4 04 add esp, 4 .text:00468F3B 50 push eax ; number .text:00468F3C E8 CF 7A FE FF call DrawNumber2 .text:00468F41 83 C4 10 add esp, 10h .text:00468F44 59 pop ecx .text:00468F45 5F pop edi .text:00468F46 5E pop esi .text:00468F47 5D pop ebp .text:00468F48 5B pop ebx .text:00468F49 C3 retn
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Dimensions | User | Comment | |
|---|---|---|---|---|
| current | 09:38, 30 March 2008 | (248 KB) | Seb76 (talk | contribs) | Fix wrong calculation of unitpos entry |
| 17:15, 29 March 2008 | (248 KB) | Seb76 (talk | contribs) | Added strength of current unit | |
| 01:06, 29 March 2008 | (248 KB) | Seb76 (talk | contribs) | Hacked CE edition that displays encumbrance on equipment screen |
You cannot overwrite this file.
File usage
The following 2 pages use this file: