(x, y)
| 4334 | }; |
| 4335 | exports.OnButtonClick = OnButtonClick; |
| 4336 | const HideClickedObj = (x, y) => { |
| 4337 | let m_ptr = find_method("UnityEngine.UI", "Button", "OnPointerClick", 1); |
| 4338 | let srcFunc = new NativeFunction(m_ptr, 'void', ['pointer', 'pointer', 'pointer', 'pointer']); |
| 4339 | Interceptor.revert(m_ptr); |
| 4340 | Interceptor.replace(m_ptr, new NativeCallback(function (arg0, pointerEventData, arg2, arg3) { |
| 4341 | srcFunc(arg0, pointerEventData, arg2, arg3); |
| 4342 | if (pointerEventData.isNull()) |
| 4343 | return; |
| 4344 | let gameObj = new class_1.PointerEventImpl(pointerEventData).get_pointerEnter(); |
| 4345 | if (gameObj.get_name() === "Settings Button") { |
| 4346 | } |
| 4347 | }, 'void', ['pointer', 'pointer', 'pointer', 'pointer'])); |
| 4348 | setClick(x, y); |
| 4349 | }; |
| 4350 | exports.HideClickedObj = HideClickedObj; |
| 4351 | globalThis.HookOnPointerClick = OnPointerClick; |
| 4352 | globalThis.B_Button = OnButtonClick; |
nothing calls this directly
no test coverage detected