Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. def self():
  2. ShowBase.self
  3.  
  4. self.clothingListShirt = 1
  5.  
  6.  
  7.  
  8.  
  9. def plain_shirt():
  10. mp.findAllMatches("**/body_torso*").hide()
  11. mp.findAllMatches("**/body_shoulder*").hide()
  12. mp.findAllMatches("**/body_armpit*").hide()
  13. mp.find('**/clothing_layer1_shirt_common_short_sleeve').show()
  14. mp.find('**/clothing_layer1_shirt_common_closed_base').show()
  15. mp.find('**/clothing_layer1_shirt_common_closed_front').show()
  16. mp.find('**/clothing_layer1_shirt_common_collar_v_high1').show()
  17. mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_base').show()
  18. mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_front').show()
  19. tex = loader.loadTexture('phase_2\maps\PM_shirt_shared_cloth_plain1.jpg')
  20. mp.find('**/clothing_layer1_shirt_common_short_sleeve').setTexture(tex, 1)
  21. mp.find('**/clothing_layer1_shirt_common_closed_base').setTexture(tex, 1)
  22. mp.find('**/clothing_layer1_shirt_common_closed_front').setTexture(tex, 1)
  23. mp.find('**/clothing_layer1_shirt_common_collar_v_high1').setTexture(tex, 1)
  24. mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_base').setTexture(tex, 1)
  25. mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_front').setTexture(tex, 1)
  26. self.clothingListShirt += 1
  27.  
  28.  
  29.  
  30.  
  31.  
  32. def no_sleeves():
  33. tanktop = loader.loadTexture("phase_2\maps\PM_shirt_nosleeves_stripe.jpg")
  34. mp.findAllMatches("**/body_torso*").hide()
  35. mp.findAllMatches("**/body_shoulder*").show()
  36. mp.findAllMatches("**/body_armpit*").show()
  37. mp.find('**/clothing_layer1_shirt_common_short_sleeve').hide()
  38. mp.find('**/clothing_layer1_shirt_common_closed_base').show()
  39. mp.find('**/clothing_layer1_shirt_common_closed_front').show()
  40. mp.find('**/clothing_layer1_shirt_common_collar_v_high1').show()
  41. mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_base').show()
  42. mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_front').show()
  43. mp.find('**/clothing_layer1_shirt_common_closed_base').setTexture(tanktop, 1)
  44. mp.find('**/clothing_layer1_shirt_common_closed_front').setTexture(tanktop, 1)
  45. mp.find('**/clothing_layer1_shirt_common_collar_v_high1').setTexture(tanktop, 1)
  46. mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_base').setTexture(tanktop, 1)
  47. mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_front').setTexture(tanktop, 1)
  48. self.clothingListShirt +=1
  49.  
  50.  
  51.  
  52.  
  53.  
  54. Shirt1 = DirectButton(geom = (triangle_base.find("**/triangle"),
  55. triangle_base.find("**/triangle_down"),
  56. triangle_base.find("**/triangle_over")), relief=None, scale = 0.1)
  57. Shirt1.setPos(1.1,0,0.3)
  58. Shirt1.show()
  59. Shirt2 = DirectButton(geom = (triangle_base.find("**/triangle"),
  60. triangle_base.find("**/triangle_down"),
  61. triangle_base.find("**/triangle_over")), relief=None, scale = 0.1)
  62. Shirt2.setPos(0.65,0,0.3)
  63. Shirt2.setR(180)
  64. Shirt2.show()
  65.  
  66.  
  67.  
  68. if self.clothingListShirt == 1:
  69. Shirt1["command"] = plain_shirt
  70.  
  71.  
  72. elif self.clothingListShirt == 2:
  73. Shirt1["command"] = no_sleeves
  74.  
  75.  
  76. elif self.clothingListShirt == 3:
  77. Shirt2["command"] = plain_shirt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement