TexasPokerBetween.m 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // TexasPokerBetween.m
  3. // BuguLive
  4. //
  5. // Created by 王珂 on 16/12/14.
  6. // Copyright © 2016年 xfg. All rights reserved.
  7. //
  8. #import "TexasPokerBetween.h"
  9. @implementation TexasPokerBetween
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. self.pokWidth = kBullPokerW;
  14. self.pokHeight = kBullPokerH-4;
  15. self.texasPokerTwoLeftLeading.constant = kTexasPokerWidth*2.0/3.0;
  16. self.texasPokerThreeLeftLeading.constant = kTexasPokerWidth * 4.0/3.0;
  17. self.texasPokerFourLeftLeading.constant = kTexasPokerWidth * 6.0/3.0;
  18. self.texasPokerFiveLeftLeading.constant = kTexasPokerWidth * 8.0/3.0;
  19. self.backgroundColor = [kBlackColor colorWithAlphaComponent:0.3];
  20. self.pokerResultView.hidden = YES;
  21. self.texasPokerOne.layer.cornerRadius = 5;
  22. self.texasPokerOne.layer.masksToBounds = YES;
  23. self.texasPokerTwo.layer.cornerRadius = 5;
  24. self.texasPokerTwo.layer.masksToBounds = YES;
  25. self.texasPokerThree.layer.cornerRadius = 5;
  26. self.texasPokerThree.layer.masksToBounds = YES;
  27. self.texasPokerFour.layer.cornerRadius = 5;
  28. self.texasPokerFour.layer.masksToBounds = YES;
  29. self.texasPokerFive.layer.cornerRadius = 5;
  30. self.texasPokerFive.layer.masksToBounds = YES;
  31. self.layer.cornerRadius = 4;
  32. self.layer.masksToBounds = YES;
  33. }
  34. - (void)hidenTexasPoker:(BOOL)hiden
  35. {
  36. self.texasPokerOne.hidden = hiden;
  37. self.texasPokerTwo.hidden = hiden;
  38. self.texasPokerThree.hidden = hiden;
  39. self.texasPokerFour.hidden = hiden;
  40. self.texasPokerFive.hidden = hiden;
  41. }
  42. @end