You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 line
729 B

  1. local ZPDef = ZPFramework.ZPImport("zp_base.luaScript.ZPDef")
  2. local ZPSound = ZPFramework.ZPFrameworkClassImprot("zp_base.luaScript.ZPSound")
  3. local xuyongSound = class("xuyongSound", ZPSound)
  4. xuyongSound.man = "c_man"
  5. xuyongSound.women = "c_women"
  6. xuyongSound.pre = "c_"
  7. xuyongSound.sound_t = 1
  8. local function dealSex(s)
  9. local sex=tonumber(s)
  10. if sex~=1 and sex~=2 then
  11. sex=1
  12. end
  13. return 2--sex
  14. end
  15. function xuyongSound.PlayOperateSound(sex,opType)
  16. if xuyongSound.sound_t == 1 then--普通话
  17. xuyongSound.super.PlayOperateSound(sex,opType)
  18. end
  19. end
  20. function xuyongSound.PlayZPSound(sex,value)
  21. if xuyongSound.sound_t == 1 then--普通话
  22. xuyongSound.super.PlayZPSound(sex,value)
  23. end
  24. end
  25. return xuyongSound