Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def self():
- ShowBase.self
- self.clothingListShirt = 1
- def plain_shirt():
- mp.findAllMatches("**/body_torso*").hide()
- mp.findAllMatches("**/body_shoulder*").hide()
- mp.findAllMatches("**/body_armpit*").hide()
- mp.find('**/clothing_layer1_shirt_common_short_sleeve').show()
- mp.find('**/clothing_layer1_shirt_common_closed_base').show()
- mp.find('**/clothing_layer1_shirt_common_closed_front').show()
- mp.find('**/clothing_layer1_shirt_common_collar_v_high1').show()
- mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_base').show()
- mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_front').show()
- tex = loader.loadTexture('phase_2\maps\PM_shirt_shared_cloth_plain1.jpg')
- mp.find('**/clothing_layer1_shirt_common_short_sleeve').setTexture(tex, 1)
- mp.find('**/clothing_layer1_shirt_common_closed_base').setTexture(tex, 1)
- mp.find('**/clothing_layer1_shirt_common_closed_front').setTexture(tex, 1)
- mp.find('**/clothing_layer1_shirt_common_collar_v_high1').setTexture(tex, 1)
- mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_base').setTexture(tex, 1)
- mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_front').setTexture(tex, 1)
- self.clothingListShirt += 1
- def no_sleeves():
- tanktop = loader.loadTexture("phase_2\maps\PM_shirt_nosleeves_stripe.jpg")
- mp.findAllMatches("**/body_torso*").hide()
- mp.findAllMatches("**/body_shoulder*").show()
- mp.findAllMatches("**/body_armpit*").show()
- mp.find('**/clothing_layer1_shirt_common_short_sleeve').hide()
- mp.find('**/clothing_layer1_shirt_common_closed_base').show()
- mp.find('**/clothing_layer1_shirt_common_closed_front').show()
- mp.find('**/clothing_layer1_shirt_common_collar_v_high1').show()
- mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_base').show()
- mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_front').show()
- mp.find('**/clothing_layer1_shirt_common_closed_base').setTexture(tanktop, 1)
- mp.find('**/clothing_layer1_shirt_common_closed_front').setTexture(tanktop, 1)
- mp.find('**/clothing_layer1_shirt_common_collar_v_high1').setTexture(tanktop, 1)
- mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_base').setTexture(tanktop, 1)
- mp.find('**/clothing_layer1_shirt_common_bottom_in_closed_front').setTexture(tanktop, 1)
- self.clothingListShirt +=1
- Shirt1 = DirectButton(geom = (triangle_base.find("**/triangle"),
- triangle_base.find("**/triangle_down"),
- triangle_base.find("**/triangle_over")), relief=None, scale = 0.1)
- Shirt1.setPos(1.1,0,0.3)
- Shirt1.show()
- Shirt2 = DirectButton(geom = (triangle_base.find("**/triangle"),
- triangle_base.find("**/triangle_down"),
- triangle_base.find("**/triangle_over")), relief=None, scale = 0.1)
- Shirt2.setPos(0.65,0,0.3)
- Shirt2.setR(180)
- Shirt2.show()
- if self.clothingListShirt == 1:
- Shirt1["command"] = plain_shirt
- elif self.clothingListShirt == 2:
- Shirt1["command"] = no_sleeves
- elif self.clothingListShirt == 3:
- Shirt2["command"] = plain_shirt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement