Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; XCom Long War:
- ; Fix for soldier scroll bug when choosing a squad and using a game controller
- ; Scrolling left and right with a game controller would not scroll the soldiers so they would
- ; not line up with their names correctly.
- ; This also fixes the "too loud" sounds that occur when entering this screen and removing soldiers
- ; from the squad, so it's useful for keyboard/mouse users too.
- ; Install this with PatcherGUI 7.1 or better.
- ; - eclipse666
- //This script was generated by HexToPseudoCode decompiler for use with PatchUPK/PatcherGUI tool
- UPK_FILE = XComGame.upk
- OBJECT = UIFxsMovie.FlashRaiseMouseEvent : AUTO
- [REPLACEMENT_CODE]
- /*(0x0000/0x0000)*/ 0F 00 <.PanelPath> 38 60 00 <.Path>
- /*(0x0015/0x000D)*/ 07 [@label_0x00EE] 82 77 19 2E <Class.XComOnlineEventMgr> 19 2E <Engine.GameEngine> 12 20 <Engine.Engine> [@] <Engine.Engine.GetEngine.ReturnValue> 00 ( 1C <Engine.Engine.GetEngine> 16 ) [@] <Engine.GameEngine.OnlineEventManager> 00 ( 01 <Engine.GameEngine.OnlineEventManager> ) [@] <XComOnlineEventMgr.CopyProtection> 00 ( 01 <XComOnlineEventMgr.CopyProtection> ) 2A 16 18 [@] ( 19 19 2E <Class.XComOnlineEventMgr> 19 2E <Engine.GameEngine> 12 20 <Engine.Engine> [@] <Engine.Engine.GetEngine.ReturnValue> 00 ( 1C <Engine.Engine.GetEngine> 16 ) [@] <Engine.GameEngine.OnlineEventManager> 00 ( 01 <Engine.GameEngine.OnlineEventManager> ) [@] <XComOnlineEventMgr.CopyProtection> 00 ( 01 <XComOnlineEventMgr.CopyProtection> ) [@] <XComCopyProtection.ProtectionFailed.ReturnValue> 00 ( 1B <ProtectionFailed> 16 ) 16 )
- /*(0x00EC/0x0098)*/ 04 0B
- /*(0x00EE/0x009A)*/ [#label_0x00EE]
- /*(0x00EE/0x009A)*/
- 07 [@label_0x00FF]
- 82 // &&
- 81
- 2D 01 <@m_bMouseIsActive>
- 16
- 18 [@]
- (
- 9a // ==
- 7e // instr
- 00 <.Arg>
- 1f <%t "cycle_">
- 16
- 1d <%i -1>
- 16
- 16
- )
- 04 0B // return
- /*(0x00FF/0x00A7)*/ [#label_0x00FF]
- /*(0x00FF/0x00A7)*/ 07 [@label_0x0141] 19 2E <Class.XComPlayerController> 19 01 <@m_pPres> [@] <Engine.Actor.Owner> 00 ( 01 <Engine.Actor.Owner> ) [@] <XComPlayerController.InAltTab.ReturnValue> 00 ( 1B <InAltTab> 16 )
- /*(0x013F/0x00D3)*/ 04 0B
- /*(0x0141/0x00D5)*/ [#label_0x0141]
- /*(0x0141/0x00D5)*/ 0F 00 <.screen> 19 01 <@movieMgr> [@] <UIFxsMovieMgr.GetFirstInputScreen.ReturnValue> 00 ( 1B <GetFirstInputScreen> 16 )
- /*(0x016A/0x00F2)*/ 07 [@label_0x02D4] 82 77 00 <.screen> 2A 16 18 [@] ( 19 00 <.screen> [@] <UI_FxsScreen.IsMouseGate.ReturnValue> 00 ( 1B <IsMouseGate> 16 ) 16 )
- /*(0x019D/0x0119)*/ 07 [@label_0x01D6] 96 7E 38 57 00 <.PanelPath> 38 57 19 00 <.screen> [@] <UI_FxsScreen.GetMCPath.ReturnValue> 00 ( 1B <GetMCPath> 16 ) 4A 4A 4A 16 25 16
- /*(0x01D4/0x0144)*/ 04 0B
- /*(0x01D6/0x0146)*/ [#label_0x01D6]
- /*(0x01D6/0x0146)*/ 58 19 00 <.screen> [@] <UI_FxsScreen.panels> 00 ( 01 <UI_FxsScreen.panels> ) 00 <.panel> 00 4A [@label_0x02D0]
- /*(0x0202/0x0162)*/ 07 [@label_0x02CF] 82 19 00 <.panel> [@] <UI_FxsPanel.b_OwnsMouseFocus> 00 ( 2D 01 <UI_FxsPanel.b_OwnsMouseFocus> ) 18 [@] ( FE 19 00 <.panel> [@] <UI_FxsPanel.GetMCPath.ReturnValue> 00 ( 1B <GetMCPath> 16 ) 00 <.PanelPath> 16 16 )
- /*(0x0253/0x019B)*/ 07 [@label_0x027A] 81 19 00 <.panel> [@] <UI_FxsPanel.IsInited.ReturnValue> 00 ( 1B <IsInited> 16 ) 16
- /*(0x0277/0x01B7)*/ 30
- /*(0x0278/0x01B8)*/ 04 0B
- /*(0x027A/0x01BA)*/ [#label_0x027A]
- /*(0x027A/0x01BA)*/ 0F 00 <.parsedArgs> 1C <Core.Object.SplitString> 00 <.Arg> 1F <%t "."> 4A 16
- /*(0x029B/0x01CF)*/ 19 00 <.panel> [@] <UI_FxsPanel.OnMouseEvent.ReturnValue> 00 ( 1B <OnMouseEvent> 00 <.Cmd> 00 <.parsedArgs> 16 )
- /*(0x02CC/0x01F0)*/ 30
- /*(0x02CD/0x01F1)*/ 04 0B
- /*(0x02CF/0x01F3)*/ [#label_0x02CF]
- /*(0x02CF/0x01F3)*/ 31
- /*(0x02D0/0x01F4)*/ [#label_0x02D0]
- /*(0x02D0/0x01F4)*/ 30
- /*(0x02D1/0x01F5)*/ 06 [@label_0x0401]
- /*(0x02D4/0x01F8)*/ [#label_0x02D4]
- /*(0x02D4/0x01F8)*/ 58 01 <@screens> 00 <.screen> 00 4A [@label_0x0400]
- /*(0x02EB/0x0207)*/ 07 [@label_0x0326] 96 7E 38 57 00 <.PanelPath> 38 57 19 00 <.screen> [@] <UI_FxsScreen.GetMCPath.ReturnValue> 00 ( 1B <GetMCPath> 16 ) 4A 4A 4A 16 25 16
- /*(0x0322/0x0232)*/ 31
- /*(0x0323/0x0233)*/ 06 [@label_0x0400]
- /*(0x0326/0x0236)*/ [#label_0x0326]
- /*(0x0326/0x0236)*/ 58 19 00 <.screen> [@] <UI_FxsScreen.panels> 00 ( 01 <UI_FxsScreen.panels> ) 00 <.panel> 00 4A [@label_0x03FE]
- /*(0x0352/0x0252)*/ 07 [@label_0x03FD] FE 19 00 <.panel> [@] <UI_FxsPanel.GetMCPath.ReturnValue> 00 ( 1B <GetMCPath> 16 ) 00 <.PanelPath> 16
- /*(0x037F/0x0273)*/ 07 [@label_0x03A7] 81 19 00 <.panel> [@] <UI_FxsPanel.IsInited.ReturnValue> 00 ( 1B <IsInited> 16 ) 16
- /*(0x03A3/0x028F)*/ 30
- /*(0x03A4/0x0290)*/ 30
- /*(0x03A5/0x0291)*/ 04 0B
- /*(0x03A7/0x0293)*/ [#label_0x03A7]
- /*(0x03A7/0x0293)*/ 0F 00 <.parsedArgs> 1C <Core.Object.SplitString> 00 <.Arg> 1F <%t "."> 4A 16
- /*(0x03C8/0x02A8)*/ 19 00 <.panel> [@] <UI_FxsPanel.OnMouseEvent.ReturnValue> 00 ( 1B <OnMouseEvent> 00 <.Cmd> 00 <.parsedArgs> 16 )
- /*(0x03F9/0x02C9)*/ 30
- /*(0x03FA/0x02CA)*/ 30
- /*(0x03FB/0x02CB)*/ 04 0B
- /*(0x03FD/0x02CD)*/ [#label_0x03FD]
- /*(0x03FD/0x02CD)*/ 31
- /*(0x03FE/0x02CE)*/ [#label_0x03FE]
- /*(0x03FE/0x02CE)*/ 30
- /*(0x03FF/0x02CF)*/ 31
- /*(0x0400/0x02D0)*/ [#label_0x0400]
- /*(0x0400/0x02D0)*/ 30
- /*(0x0401/0x02D1)*/ [#label_0x0401]
- /*(0x0401/0x02D1)*/ 04 0B
- /*(0x0403/0x02D3)*/ 53
- UPK_FILE=UICollection_Strategy_SF.upk
- OBJECT=gfxSquadSelect.SquadSelect:AUTO
- [BEFORE_HEX]
- 17 96 02 00 04 01 4b 96
- 09 00 00 2e 63 79 63 6c
- 65 5f 00 47 96 04 00 04
- 01 08 0f 4e 4b 47 96 07
- 00 00 49 6e 70 75 74 00
- 1c 96 0a 00 00 4d 4f 55
- 53 45 5f 55 50 00 4e 96
- 02 00 04 04 4b 96 22 00
- 00 46 6c 61 73 68 52 61
- 69 73 65 4d 6f 75 73 65
- 45 76 65 6e 74 00 07 04
- 00 00 00 00 66 6c 61 73
- 68 00 1c 96 0a 00 00 65
- 78 74 65 72 6e 61 6c 00
- 4e 96 13 00 00 45 78 74
- 65 72 6e 61 6c 49 6e 74
- 65 72 66 61 63 65 00 4e
- 96 06 00 00 63 61 6c 6c
- 00 52 17 96 07 00 08 10
- 07 00 00 00 00 3c 96 05
- 00 07 00 00 00 00 87 01
- 00 05 17 96 06 00 04 05
- 04 04 08 0c 4e 96 02 00
- 08 03 4e 48 12 9d 02 00
- 79 00 96 04 00 04 04 08
- 0c 4e 96 02 00 04 05 4e
- 96 09 00 00 74 78 74 4e
- 61 6d 65 00 4e 96 02 00
- 08 39 4e 96 04 00 04 04
- 08 0c 4e 96 02 00 04 05
- 4e 96 0c 00 00 74 78 74
- 41 64 64 55 6e 69 74 00
- 4e 96 06 00 00 74 65 78
- 74 00 4e 96 02 00 08 03
- 4e 96 05 00 07 01 00 00
- 00 67 11 12 9d 02 00 0a
- 00 96 04 00 08 10 08 10
- 1c 50 1d 96 02 00 04 05
- 50 87 01 00 05 17 99 02
- 00 70 ff 96 04 00 08 10
- 08 10 1c 96 05 00 07 05
- 00 00 00 0b 96 05 00 07
- 02 00 00 00 0d 18 1d 96
- 02 00 08 10 1c 96 05 00
- 07 00 00 00 00 67 9d 02
- 00 25 00 96 04 00 04 01
- 08 04 4e 96 04 00 08 39
- 05 00 4f 96 04 00 04 01
- 08 05 4e 96 04 00 08 39
- 05 00 4f 96 01 00 03 3e
- 96 04 00 04 01 08 0f 4e
- 96 02 00 08 10 1c 49 12
- 9d 02 00 19 00 96 09 00
- 07 00 00 00 00 04 01 08
- 04 4e 96 02 00 08 0a 52
- 17 99 02 00 14 00 96 09
- 00 07 00 00 00 00 04 01
- 08 04 4e 96 02 00 08 09
- 52 17 96 04 00 04 01 08
- 0f 4e 96 07 00 07 00 00
- 00 00 08 10 1c 0b 49 12
- 9d 02 00 19 00 96 09 00
- 07 00 00 00 00 04 01 08
- 05 4e 96 02 00 08 0a 52
- 17 99 02 00 14 00 96 09
- 00 07 00 00 00 00 04 01
- 08 05 4e 96 02 00 08 09
- 52 17 96 07 00 04 02 07
- 00 00 00 00 0e 9d 02 00
- b4 01 96 17 00 04 04 07
- [AFTER_HEX]
- 17 96 07 00 08 10 07 00
- 00 00 00 3c 96 05 00 07
- 00 00 00 00 87 01 00 05
- 17 96 06 00 04 05 04 04
- 08 0c 4e 96 02 00 08 03
- 4e 48 12 9d 02 00 79 00
- 96 04 00 04 04 08 0c 4e
- 96 02 00 04 05 4e 96 09
- 00 00 74 78 74 4e 61 6d
- 65 00 4e 96 02 00 08 39
- 4e 96 04 00 04 04 08 0c
- 4e 96 02 00 04 05 4e 96
- 0c 00 00 74 78 74 41 64
- 64 55 6e 69 74 00 4e 96
- 06 00 00 74 65 78 74 00
- 4e 96 02 00 08 03 4e 96
- 05 00 07 01 00 00 00 67
- 11 12 9d 02 00 0a 00 96
- 04 00 08 10 08 10 1c 50
- 1d 96 02 00 04 05 50 87
- 01 00 05 17 99 02 00 70
- ff 96 04 00 08 10 08 10
- 1c 96 05 00 07 05 00 00
- 00 0b 96 05 00 07 02 00
- 00 00 0d 18 1d 96 02 00
- 08 10 1c 96 05 00 07 00
- 00 00 00 67 9d 02 00 25
- 00 96 04 00 04 01 08 04
- 4e 96 04 00 08 39 05 00
- 4f 96 04 00 04 01 08 05
- 4e 96 04 00 08 39 05 00
- 4f 96 01 00 03 3e 96 04
- 00 04 01 08 0f 4e 96 02
- 00 08 10 1c 49 12 9d 02
- 00 19 00 96 09 00 07 00
- 00 00 00 04 01 08 04 4e
- 96 02 00 08 0a 52 17 99
- 02 00 14 00 96 09 00 07
- 00 00 00 00 04 01 08 04
- 4e 96 02 00 08 09 52 17
- 96 04 00 04 01 08 0f 4e
- 96 07 00 07 00 00 00 00
- 08 10 1c 0b 49 12 9d 02
- 00 19 00 96 09 00 07 00
- 00 00 00 04 01 08 05 4e
- 96 02 00 08 0a 52 17 99
- 02 00 14 00 96 09 00 07
- 00 00 00 00 04 01 08 05
- 4e 96 02 00 08 09 52 17
- 96 07 00 04 02 07 00 00
- 00 00 0e 9d 02 00 46 02
- 96 02 00 04 01 4b 96 09
- 00 00 2e 63 79 63 6c 65
- 5f 00 47 96 04 00 04 01
- 08 0f 4e 4b 47 96 07 00
- 00 49 6e 70 75 74 00 1c
- 96 0a 00 00 4d 4f 55 53
- 45 5f 55 50 00 4e 96 02
- 00 04 04 4b 96 22 00 00
- 46 6c 61 73 68 52 61 69
- 73 65 4d 6f 75 73 65 45
- 76 65 6e 74 00 07 04 00
- 00 00 00 66 6c 61 73 68
- 00 1c 96 0a 00 00 65 78
- 74 65 72 6e 61 6c 00 4e
- 96 13 00 00 45 78 74 65
- 72 6e 61 6c 49 6e 74 65
- 72 66 61 63 65 00 4e 96
- 06 00 00 63 61 6c 6c 00
- 52 17 96 17 00 04 04 07
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement