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