{"action":"opened","issue":{"url":"https://api.github.com/repos/mkaito/VikingReborn/issues/27","labels_url":"https://api.github.com/repos/mkaito/VikingReborn/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/mkaito/VikingReborn/issues/27/comments","events_url":"https://api.github.com/repos/mkaito/VikingReborn/issues/27/events","html_url":"https://github.com/mkaito/VikingReborn/issues/27","id":111927718,"number":27,"title":"Unit Frame - hook into interface options for visibility","user":{"login":"sevelev","id":7908260,"avatar_url":"https://avatars.githubusercontent.com/u/7908260?v=3","gravatar_id":"","url":"https://api.github.com/users/sevelev","html_url":"https://github.com/sevelev","followers_url":"https://api.github.com/users/sevelev/followers","following_url":"https://api.github.com/users/sevelev/following{/other_user}","gists_url":"https://api.github.com/users/sevelev/gists{/gist_id}","starred_url":"https://api.github.com/users/sevelev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sevelev/subscriptions","organizations_url":"https://api.github.com/users/sevelev/orgs","repos_url":"https://api.github.com/users/sevelev/repos","events_url":"https://api.github.com/users/sevelev/events{/privacy}","received_events_url":"https://api.github.com/users/sevelev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-16T23:10:45Z","updated_at":"2015-10-16T23:10:45Z","closed_at":null,"body":"Also, when \"show in combat\" is chosen, show the player frame when casting as well so you can see your cast bar when interacting with objects or mounting.  I added this code to have the player frame only show when in combat and casting.  it also stays visible after combat until the health bar is full:\r\n\r\n  if unitPlayer:GetMaxHealth() == unitPlayer:GetHealth() and not bInCombat and not nCasting then\r\n    self.tPlayerFrame.wndUnitFrame:Show(false)\r\n  else\r\n    self.tPlayerFrame.wndUnitFrame:Show(true)\r\n  end"}}