選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

41 行
1.4 KiB

  1. local designSize = cc.size(1280,720)
  2. local config = require("mj.luaScript.Common.2d.CommonMahjongConfig")
  3. config.HANDCARD_VIEW = "mj_xueliu.luaScript.Views.2d.HandCard_2d"
  4. config.MAHJONG_CARD = "mj_xueliu.luaScript.Views.2d.Card_2d"
  5. config.GROUP_BAGANG = "mj_xueliu.luaScript.Views.2d.GroupBaGang_2d"
  6. -- 花麻将多杠显示位置,对桌面组合牌有效
  7. config.OpDuoGangFlagPos = {
  8. [1] = {x = 47, y = 25, scale = 1.0, },
  9. [2] = {x = 9, y = 22, scale = 0.8, },
  10. [3] = {x = 11, y = 40, scale = 1.0, },
  11. [4] = {x = 11, y = 30, scale = 1.0, },
  12. };
  13. -- 只针对组合牌第四个麻将牌
  14. config.OpDuoGangFlagRotationConfig = {
  15. [1] = {x = 0, y = 0, z = 90},
  16. [2] = {x = 0, y = 0, z = 0},
  17. [3] = {x = 0, y = 0, z = -90},
  18. [4] = {x = 0, y = 0, z = 0},
  19. }
  20. -- 手牌每个麻将子偏移量
  21. -- HandCardOffset[viewId].x
  22. config.HandCardOffsetPos = {
  23. [1] = {x = 0, y = -32},
  24. [2] = {x = -2, y = 0},
  25. [3] = {x = 0, y = -32},
  26. [4] = {x = -1, y = 0},
  27. }
  28. -- todo lwq
  29. config.HuCardStartPos = {
  30. [1] = {x = (designSize.width / 2 + 420)*g_radio_x, y = (designSize.height / 2 + 250)*g_radio_y},
  31. [2] = {x = (designSize.width / 2 - 235 + 20)*g_radio_x, y = (designSize.height / 2 + 250)*g_radio_y},
  32. [3] = {x = (designSize.width / 2 - 420)*g_radio_x, y = (designSize.height / 2 - 170)*g_radio_y},
  33. [4] = {x = (designSize.width / 2 + 333)*g_radio_x, y = 150*g_radio_y},
  34. }
  35. return config