Advertisement
Guest User

XCom Fix Soldier Scroll with Controller 10c

a guest
May 29th, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.66 KB | None | 0 0
  1. ; XCom Long War:
  2. ; Fix for soldier scroll bug when choosing a squad and using a game controller
  3. ; Scrolling left and right with a game controller would not scroll the soldiers so they would
  4. ; not line up with their names correctly.
  5. ; This also fixes the "too loud" sounds that occur when entering this screen and removing soldiers
  6. ; from the squad, so it's useful for keyboard/mouse users too.
  7.  
  8. ; Install this with PatcherGUI 7.1 or better.
  9. ; - eclipse666
  10.  
  11. //This script was generated by HexToPseudoCode decompiler for use with PatchUPK/PatcherGUI tool
  12. UPK_FILE = XComGame.upk
  13. OBJECT = UIFxsMovie.FlashRaiseMouseEvent : AUTO
  14. [REPLACEMENT_CODE]
  15. /*(0x0000/0x0000)*/ 0F 00 <.PanelPath> 38 60 00 <.Path>
  16. /*(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 )
  17. /*(0x00EC/0x0098)*/ 04 0B
  18. /*(0x00EE/0x009A)*/ [#label_0x00EE]
  19. /*(0x00EE/0x009A)*/
  20.  
  21. 07 [@label_0x00FF]
  22.  
  23. 82 // &&
  24. 81
  25. 2D 01 <@m_bMouseIsActive>
  26. 16
  27.  
  28. 18 [@]
  29. (
  30. 9a // ==
  31. 7e // instr
  32. 00 <.Arg>
  33. 1f <%t "cycle_">
  34. 16
  35.  
  36. 1d <%i -1>
  37. 16
  38.  
  39. 16
  40. )
  41.  
  42. 04 0B // return
  43.  
  44. /*(0x00FF/0x00A7)*/ [#label_0x00FF]
  45. /*(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 )
  46. /*(0x013F/0x00D3)*/ 04 0B
  47. /*(0x0141/0x00D5)*/ [#label_0x0141]
  48. /*(0x0141/0x00D5)*/ 0F 00 <.screen> 19 01 <@movieMgr> [@] <UIFxsMovieMgr.GetFirstInputScreen.ReturnValue> 00 ( 1B <GetFirstInputScreen> 16 )
  49. /*(0x016A/0x00F2)*/ 07 [@label_0x02D4] 82 77 00 <.screen> 2A 16 18 [@] ( 19 00 <.screen> [@] <UI_FxsScreen.IsMouseGate.ReturnValue> 00 ( 1B <IsMouseGate> 16 ) 16 )
  50. /*(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
  51. /*(0x01D4/0x0144)*/ 04 0B
  52. /*(0x01D6/0x0146)*/ [#label_0x01D6]
  53. /*(0x01D6/0x0146)*/ 58 19 00 <.screen> [@] <UI_FxsScreen.panels> 00 ( 01 <UI_FxsScreen.panels> ) 00 <.panel> 00 4A [@label_0x02D0]
  54. /*(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 )
  55. /*(0x0253/0x019B)*/ 07 [@label_0x027A] 81 19 00 <.panel> [@] <UI_FxsPanel.IsInited.ReturnValue> 00 ( 1B <IsInited> 16 ) 16
  56. /*(0x0277/0x01B7)*/ 30
  57. /*(0x0278/0x01B8)*/ 04 0B
  58. /*(0x027A/0x01BA)*/ [#label_0x027A]
  59. /*(0x027A/0x01BA)*/ 0F 00 <.parsedArgs> 1C <Core.Object.SplitString> 00 <.Arg> 1F <%t "."> 4A 16
  60. /*(0x029B/0x01CF)*/ 19 00 <.panel> [@] <UI_FxsPanel.OnMouseEvent.ReturnValue> 00 ( 1B <OnMouseEvent> 00 <.Cmd> 00 <.parsedArgs> 16 )
  61. /*(0x02CC/0x01F0)*/ 30
  62. /*(0x02CD/0x01F1)*/ 04 0B
  63. /*(0x02CF/0x01F3)*/ [#label_0x02CF]
  64. /*(0x02CF/0x01F3)*/ 31
  65. /*(0x02D0/0x01F4)*/ [#label_0x02D0]
  66. /*(0x02D0/0x01F4)*/ 30
  67. /*(0x02D1/0x01F5)*/ 06 [@label_0x0401]
  68. /*(0x02D4/0x01F8)*/ [#label_0x02D4]
  69. /*(0x02D4/0x01F8)*/ 58 01 <@screens> 00 <.screen> 00 4A [@label_0x0400]
  70. /*(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
  71. /*(0x0322/0x0232)*/ 31
  72. /*(0x0323/0x0233)*/ 06 [@label_0x0400]
  73. /*(0x0326/0x0236)*/ [#label_0x0326]
  74. /*(0x0326/0x0236)*/ 58 19 00 <.screen> [@] <UI_FxsScreen.panels> 00 ( 01 <UI_FxsScreen.panels> ) 00 <.panel> 00 4A [@label_0x03FE]
  75. /*(0x0352/0x0252)*/ 07 [@label_0x03FD] FE 19 00 <.panel> [@] <UI_FxsPanel.GetMCPath.ReturnValue> 00 ( 1B <GetMCPath> 16 ) 00 <.PanelPath> 16
  76. /*(0x037F/0x0273)*/ 07 [@label_0x03A7] 81 19 00 <.panel> [@] <UI_FxsPanel.IsInited.ReturnValue> 00 ( 1B <IsInited> 16 ) 16
  77. /*(0x03A3/0x028F)*/ 30
  78. /*(0x03A4/0x0290)*/ 30
  79. /*(0x03A5/0x0291)*/ 04 0B
  80. /*(0x03A7/0x0293)*/ [#label_0x03A7]
  81. /*(0x03A7/0x0293)*/ 0F 00 <.parsedArgs> 1C <Core.Object.SplitString> 00 <.Arg> 1F <%t "."> 4A 16
  82. /*(0x03C8/0x02A8)*/ 19 00 <.panel> [@] <UI_FxsPanel.OnMouseEvent.ReturnValue> 00 ( 1B <OnMouseEvent> 00 <.Cmd> 00 <.parsedArgs> 16 )
  83. /*(0x03F9/0x02C9)*/ 30
  84. /*(0x03FA/0x02CA)*/ 30
  85. /*(0x03FB/0x02CB)*/ 04 0B
  86. /*(0x03FD/0x02CD)*/ [#label_0x03FD]
  87. /*(0x03FD/0x02CD)*/ 31
  88. /*(0x03FE/0x02CE)*/ [#label_0x03FE]
  89. /*(0x03FE/0x02CE)*/ 30
  90. /*(0x03FF/0x02CF)*/ 31
  91. /*(0x0400/0x02D0)*/ [#label_0x0400]
  92. /*(0x0400/0x02D0)*/ 30
  93. /*(0x0401/0x02D1)*/ [#label_0x0401]
  94. /*(0x0401/0x02D1)*/ 04 0B
  95. /*(0x0403/0x02D3)*/ 53
  96.  
  97. UPK_FILE=UICollection_Strategy_SF.upk
  98. OBJECT=gfxSquadSelect.SquadSelect:AUTO
  99.  
  100. [BEFORE_HEX]
  101. 17 96 02 00 04 01 4b 96
  102. 09 00 00 2e 63 79 63 6c
  103. 65 5f 00 47 96 04 00 04
  104. 01 08 0f 4e 4b 47 96 07
  105. 00 00 49 6e 70 75 74 00
  106. 1c 96 0a 00 00 4d 4f 55
  107. 53 45 5f 55 50 00 4e 96
  108. 02 00 04 04 4b 96 22 00
  109. 00 46 6c 61 73 68 52 61
  110. 69 73 65 4d 6f 75 73 65
  111. 45 76 65 6e 74 00 07 04
  112. 00 00 00 00 66 6c 61 73
  113. 68 00 1c 96 0a 00 00 65
  114. 78 74 65 72 6e 61 6c 00
  115. 4e 96 13 00 00 45 78 74
  116. 65 72 6e 61 6c 49 6e 74
  117. 65 72 66 61 63 65 00 4e
  118. 96 06 00 00 63 61 6c 6c
  119. 00 52 17 96 07 00 08 10
  120. 07 00 00 00 00 3c 96 05
  121. 00 07 00 00 00 00 87 01
  122. 00 05 17 96 06 00 04 05
  123. 04 04 08 0c 4e 96 02 00
  124. 08 03 4e 48 12 9d 02 00
  125. 79 00 96 04 00 04 04 08
  126. 0c 4e 96 02 00 04 05 4e
  127. 96 09 00 00 74 78 74 4e
  128. 61 6d 65 00 4e 96 02 00
  129. 08 39 4e 96 04 00 04 04
  130. 08 0c 4e 96 02 00 04 05
  131. 4e 96 0c 00 00 74 78 74
  132. 41 64 64 55 6e 69 74 00
  133. 4e 96 06 00 00 74 65 78
  134. 74 00 4e 96 02 00 08 03
  135. 4e 96 05 00 07 01 00 00
  136. 00 67 11 12 9d 02 00 0a
  137. 00 96 04 00 08 10 08 10
  138. 1c 50 1d 96 02 00 04 05
  139. 50 87 01 00 05 17 99 02
  140. 00 70 ff 96 04 00 08 10
  141. 08 10 1c 96 05 00 07 05
  142. 00 00 00 0b 96 05 00 07
  143. 02 00 00 00 0d 18 1d 96
  144. 02 00 08 10 1c 96 05 00
  145. 07 00 00 00 00 67 9d 02
  146. 00 25 00 96 04 00 04 01
  147. 08 04 4e 96 04 00 08 39
  148. 05 00 4f 96 04 00 04 01
  149. 08 05 4e 96 04 00 08 39
  150. 05 00 4f 96 01 00 03 3e
  151. 96 04 00 04 01 08 0f 4e
  152. 96 02 00 08 10 1c 49 12
  153. 9d 02 00 19 00 96 09 00
  154. 07 00 00 00 00 04 01 08
  155. 04 4e 96 02 00 08 0a 52
  156. 17 99 02 00 14 00 96 09
  157. 00 07 00 00 00 00 04 01
  158. 08 04 4e 96 02 00 08 09
  159. 52 17 96 04 00 04 01 08
  160. 0f 4e 96 07 00 07 00 00
  161. 00 00 08 10 1c 0b 49 12
  162. 9d 02 00 19 00 96 09 00
  163. 07 00 00 00 00 04 01 08
  164. 05 4e 96 02 00 08 0a 52
  165. 17 99 02 00 14 00 96 09
  166. 00 07 00 00 00 00 04 01
  167. 08 05 4e 96 02 00 08 09
  168. 52 17 96 07 00 04 02 07
  169. 00 00 00 00 0e 9d 02 00
  170. b4 01 96 17 00 04 04 07
  171.  
  172. [AFTER_HEX]
  173. 17 96 07 00 08 10 07 00
  174. 00 00 00 3c 96 05 00 07
  175. 00 00 00 00 87 01 00 05
  176. 17 96 06 00 04 05 04 04
  177. 08 0c 4e 96 02 00 08 03
  178. 4e 48 12 9d 02 00 79 00
  179. 96 04 00 04 04 08 0c 4e
  180. 96 02 00 04 05 4e 96 09
  181. 00 00 74 78 74 4e 61 6d
  182. 65 00 4e 96 02 00 08 39
  183. 4e 96 04 00 04 04 08 0c
  184. 4e 96 02 00 04 05 4e 96
  185. 0c 00 00 74 78 74 41 64
  186. 64 55 6e 69 74 00 4e 96
  187. 06 00 00 74 65 78 74 00
  188. 4e 96 02 00 08 03 4e 96
  189. 05 00 07 01 00 00 00 67
  190. 11 12 9d 02 00 0a 00 96
  191. 04 00 08 10 08 10 1c 50
  192. 1d 96 02 00 04 05 50 87
  193. 01 00 05 17 99 02 00 70
  194. ff 96 04 00 08 10 08 10
  195. 1c 96 05 00 07 05 00 00
  196. 00 0b 96 05 00 07 02 00
  197. 00 00 0d 18 1d 96 02 00
  198. 08 10 1c 96 05 00 07 00
  199. 00 00 00 67 9d 02 00 25
  200. 00 96 04 00 04 01 08 04
  201. 4e 96 04 00 08 39 05 00
  202. 4f 96 04 00 04 01 08 05
  203. 4e 96 04 00 08 39 05 00
  204. 4f 96 01 00 03 3e 96 04
  205. 00 04 01 08 0f 4e 96 02
  206. 00 08 10 1c 49 12 9d 02
  207. 00 19 00 96 09 00 07 00
  208. 00 00 00 04 01 08 04 4e
  209. 96 02 00 08 0a 52 17 99
  210. 02 00 14 00 96 09 00 07
  211. 00 00 00 00 04 01 08 04
  212. 4e 96 02 00 08 09 52 17
  213. 96 04 00 04 01 08 0f 4e
  214. 96 07 00 07 00 00 00 00
  215. 08 10 1c 0b 49 12 9d 02
  216. 00 19 00 96 09 00 07 00
  217. 00 00 00 04 01 08 05 4e
  218. 96 02 00 08 0a 52 17 99
  219. 02 00 14 00 96 09 00 07
  220. 00 00 00 00 04 01 08 05
  221. 4e 96 02 00 08 09 52 17
  222. 96 07 00 04 02 07 00 00
  223. 00 00 0e 9d 02 00 46 02
  224. 96 02 00 04 01 4b 96 09
  225. 00 00 2e 63 79 63 6c 65
  226. 5f 00 47 96 04 00 04 01
  227. 08 0f 4e 4b 47 96 07 00
  228. 00 49 6e 70 75 74 00 1c
  229. 96 0a 00 00 4d 4f 55 53
  230. 45 5f 55 50 00 4e 96 02
  231. 00 04 04 4b 96 22 00 00
  232. 46 6c 61 73 68 52 61 69
  233. 73 65 4d 6f 75 73 65 45
  234. 76 65 6e 74 00 07 04 00
  235. 00 00 00 66 6c 61 73 68
  236. 00 1c 96 0a 00 00 65 78
  237. 74 65 72 6e 61 6c 00 4e
  238. 96 13 00 00 45 78 74 65
  239. 72 6e 61 6c 49 6e 74 65
  240. 72 66 61 63 65 00 4e 96
  241. 06 00 00 63 61 6c 6c 00
  242. 52 17 96 17 00 04 04 07
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement