BullPoker.m 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // BullPoker.m
  3. // BuguLive
  4. //
  5. // Created by 王珂 on 16/12/2.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import "BullPoker.h"
  9. @implementation BullPoker
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. self.pokWidth = kBullPokerW;
  14. self.pokHeight = kBullPokerH-4;
  15. self.BullPokerTwoLeftLeading.constant = kBullPokerW *1.0/3.0+1;
  16. self.BullPokerThreeLeftLeading.constant = kBullPokerW * 2.0/3.0;
  17. self.BullPokerFourLeftLeading.constant = kBullPokerW * 3.0/3.0-1;
  18. self.BullPokerFiveLeftLeding.constant = kBullPokerW * 4.0/3.0-2;
  19. self.backgroundColor = [kBlackColor colorWithAlphaComponent:0.3];
  20. self.pokerResultView.hidden = YES;
  21. self.BullPokerOne.layer.cornerRadius = 5;
  22. self.BullPokerOne.layer.masksToBounds = YES;
  23. self.BullPokerTwo.layer.cornerRadius = 5;
  24. self.BullPokerTwo.layer.masksToBounds = YES;
  25. self.BullPokerThree.layer.cornerRadius = 5;
  26. self.BullPokerThree.layer.masksToBounds = YES;
  27. self.BullPokerFour.layer.cornerRadius = 5;
  28. self.BullPokerFour.layer.masksToBounds = YES;
  29. self.BullPokerFive.layer.cornerRadius = 5;
  30. self.BullPokerFive.layer.masksToBounds = YES;
  31. self.layer.cornerRadius = 4;
  32. self.layer.masksToBounds = YES;
  33. }
  34. #pragma mark -- 隐藏 所有的牌
  35. - (void)hidenBullPoker:(BOOL)hiden
  36. {
  37. self.BullPokerOne.hidden = hiden;
  38. self.BullPokerTwo.hidden = hiden;
  39. self.BullPokerThree.hidden = hiden;
  40. self.BullPokerFour.hidden = hiden;
  41. self.BullPokerFive.hidden = hiden;
  42. }
  43. @end