{"action":"created","issue":{"url":"https://api.github.com/repos/DengSir/tdBattlePetScript_Rematch/issues/3","repository_url":"https://api.github.com/repos/DengSir/tdBattlePetScript_Rematch","labels_url":"https://api.github.com/repos/DengSir/tdBattlePetScript_Rematch/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/DengSir/tdBattlePetScript_Rematch/issues/3/comments","events_url":"https://api.github.com/repos/DengSir/tdBattlePetScript_Rematch/issues/3/events","html_url":"https://github.com/DengSir/tdBattlePetScript_Rematch/issues/3","id":386567034,"node_id":"MDU6SXNzdWUzODY1NjcwMzQ=","number":3,"title":"list buttons implementation changed in incompatible way","user":{"login":"bloerwald","id":2866005,"node_id":"MDQ6VXNlcjI4NjYwMDU=","avatar_url":"https://avatars3.githubusercontent.com/u/2866005?v=4","gravatar_id":"","url":"https://api.github.com/users/bloerwald","html_url":"https://github.com/bloerwald","followers_url":"https://api.github.com/users/bloerwald/followers","following_url":"https://api.github.com/users/bloerwald/following{/other_user}","gists_url":"https://api.github.com/users/bloerwald/gists{/gist_id}","starred_url":"https://api.github.com/users/bloerwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloerwald/subscriptions","organizations_url":"https://api.github.com/users/bloerwald/orgs","repos_url":"https://api.github.com/users/bloerwald/repos","events_url":"https://api.github.com/users/bloerwald/events{/privacy}","received_events_url":"https://api.github.com/users/bloerwald/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-02T14:55:20Z","updated_at":"2018-12-08T14:05:14Z","closed_at":"2018-12-08T14:05:14Z","author_association":"NONE","body":"As of Rematch 4.8.10-exp-05, the implementation around `FillTeamButton` changed, making the hook error. Using\r\n\r\n```lua\r\n    self:SecureHook(RematchTeamPanel.List, 'callback', function(button, key)\r\n        local script = scriptButtons[button]\r\n        if self:GetScript(key) then\r\n            script.key = key\r\n        \tlocal left_most_button = nil\r\n        \tif button.Preferences:IsShown() then\r\n        \t\tleft_most_button = button.Preferences\r\n        \telseif button.Notes:IsShown() then\r\n        \t\tleft_most_button = button.Notes\r\n        \telseif button.compact and button.WinRecordBack:IsShown() then\r\n        \t\tleft_most_button = button.WinRecordBack\r\n        \tend\r\n\r\n            local xoffset = -2\r\n            local yoffset = -3\r\n        \tif left_most_button then\r\n        \t\txoffset = left_most_button:GetLeft() - button:GetRight()\r\n        \t\tyoffset = left_most_button:GetTop() - button:GetTop()\r\n        \tend\r\n\r\n            script:ClearAllPoints()\r\n            script:SetPoint('TOPRIGHT', xoffset, yoffset)\r\n            button.Name:SetPoint ( button.compact and 'RIGHT' or 'TOPRIGHT'\r\n            \t                 , xoffset - script:GetWidth()\r\n            \t                 , button.compact and 0 or yoffset\r\n            \t                 )\r\n\r\n            script:Show()\r\n        else\r\n            script:Hide()\r\n        end\r\n    end)\r\n```\r\n\r\nas a replacement hook fixed it for me. \r\n\r\n![compact](https://user-images.githubusercontent.com/2866005/49341216-9f92a200-f64a-11e8-88d8-6e086826228a.png)."},"comment":{"url":"https://api.github.com/repos/DengSir/tdBattlePetScript_Rematch/issues/comments/445461731","html_url":"https://github.com/DengSir/tdBattlePetScript_Rematch/issues/3#issuecomment-445461731","issue_url":"https://api.github.com/repos/DengSir/tdBattlePetScript_Rematch/issues/3","id":445461731,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTQ2MTczMQ==","user":{"login":"bloerwald","id":2866005,"node_id":"MDQ6VXNlcjI4NjYwMDU=","avatar_url":"https://avatars3.githubusercontent.com/u/2866005?v=4","gravatar_id":"","url":"https://api.github.com/users/bloerwald","html_url":"https://github.com/bloerwald","followers_url":"https://api.github.com/users/bloerwald/followers","following_url":"https://api.github.com/users/bloerwald/following{/other_user}","gists_url":"https://api.github.com/users/bloerwald/gists{/gist_id}","starred_url":"https://api.github.com/users/bloerwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bloerwald/subscriptions","organizations_url":"https://api.github.com/users/bloerwald/orgs","repos_url":"https://api.github.com/users/bloerwald/repos","events_url":"https://api.github.com/users/bloerwald/events{/privacy}","received_events_url":"https://api.github.com/users/bloerwald/received_events","type":"User","site_admin":false},"created_at":"2018-12-08T14:05:14Z","updated_at":"2018-12-08T14:05:14Z","author_association":"NONE","body":"Fixed by 51e5d8cfff628d7e5adab2cc50a138905906110e including the `Update` function rename I forgot about."}}
{"actor":{"display_login":"bloerwald"}}