换游戏底图

master
DESKTOP-7R8JEQQ\k 2025-07-09 21:32:02 +08:00
parent c3fea3ad73
commit 121e8a3716
12 changed files with 51 additions and 22 deletions

View File

@ -16,9 +16,14 @@ function M:init()
root.familyType.selectedIndex = 0
local comp_rank = UIPackage.CreateObjectFromURL("ui://Family/Comp_Rank")
root._view:AddChild(comp_rank)
--[[
comp_rank.width = root._view.width
comp_rank.height = root._view.height
comp_rank:Center()
]]
local scaleY = GRoot.inst.height / comp_rank.height
local scaleX = GRoot.inst.width / comp_rank.width
comp_rank:SetScale(scaleX, scaleY)
self._view = comp_rank
local viewBox_leftTime = comp_rank:GetChild('left_time')

View File

@ -552,6 +552,7 @@ function M:ConnetFamily(index, groups, isCreate)
list_family.itemRenderer = function(i, obj)
local j = i + 1
obj:GetChild("title").emojies = EmojiDitc.EmojiesDitc
--obj.text = ViewUtil.TextOmit(groups[j].name)
obj.text = groups[j].name
obj.onClick:Add(function()

View File

@ -361,3 +361,10 @@ function ViewUtil.ShowOneInput(showText, callback)
GRoot.inst:RemoveChild(pop_oneInput)
end)
end
function ViewUtil.TextOmit(str)
if utf8.len(str) > 6 then
return string.sub(str, 1, utf8.offset(s, 6)) .. "..."
end
return str
end

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<component size="2532,1170" opaque="false">
<controller name="cStyle" pages="0,,1," selected="0">
<controller name="cStyle" pages="0,,1," selected="1">
<remark page="0" value="加入"/>
<remark page="1" value="创建"/>
</controller>
@ -59,8 +59,8 @@
<text id="n20_n74n" name="n20" xy="849,456" size="241,64" group="n18_n74n" font="ui://27vd145bh35o7ilc" fontSize="48" color="#222222" align="center" vAlign="middle" autoSize="none" text="会长微信号"/>
<text id="n21_n74n" name="n21" xy="849,702" size="241,64" group="n18_n74n" font="ui://27vd145bh35o7ilc" fontSize="48" color="#222222" align="center" vAlign="middle" autoSize="none" text="亲友圈说明"/>
<text id="n22_n74n" name="n22" xy="1164,699" size="760,187" group="n18_n74n" font="ui://27vd145bh35o7ilc" fontSize="48" color="#222222" autoSize="none" text="1.亲友圈人数上限为500名成员&#xA;2.亲友圈管理员有管理人员权限&#xA;3.亲友圈管理员有权利撤销该亲友圈"/>
<text id="n23_n74n" name="input_name" xy="1161,324" size="750,84" group="n18_n74n" font="ui://27vd145bh35o7il1" fontSize="48" color="#222222" vAlign="middle" autoSize="none" text="请输入名称" input="true"/>
<text id="n25_n74n" name="input_wxId" xy="1161,447" size="750,84" group="n18_n74n" font="ui://27vd145bh35o7il1" fontSize="48" color="#222222" vAlign="middle" autoSize="none" text="请输入微信号" input="true"/>
<text id="n23_n74n" name="input_name" xy="1161,324" size="750,84" group="n18_n74n" font="ui://27vd145bh35o7il1" fontSize="48" color="#222222" vAlign="middle" autoSize="none" text="" input="true" prompt="请输入名称"/>
<text id="n25_n74n" name="input_wxId" xy="1161,447" size="750,84" group="n18_n74n" font="ui://27vd145bh35o7il1" fontSize="48" color="#222222" vAlign="middle" autoSize="none" text="" input="true" prompt="请输入微信号"/>
<component id="n26_n74n" name="btn_c" src="86ct7cwb" fileName="CreateAndJoin/Component/btn_create.xml" xy="1338,960" size="333,96" group="n18_n74n"/>
<group id="n18_n74n" name="n18" xy="849,324" size="1075,732" group="n27_g71b" advanced="true">
<gearDisplay controller="cStyle" pages="1"/>

View File

@ -8,7 +8,7 @@
<image id="n8_jrro" name="n8" src="jrro7cyb" fileName="Main/Image/btn_familyName_off.png" xy="0,0">
<gearDisplay controller="button" pages="0"/>
</image>
<richtext id="n9_jrro" name="title" xy="-1,18" size="296,56" font="ui://27vd145bh35o7iln" fontSize="42" color="#2c1f16" align="center" autoSize="ellipsis" text="亲友圈名称名称名">
<richtext id="n9_jrro" name="title" xy="-1,18" size="296,56" font="ui://27vd145bh35o7iln" fontSize="42" color="#2c1f16" align="center" autoSize="none" text="亲友圈名称名称名友圈名称名称名">
<relation target="" sidePair="center-center,middle-middle"/>
</richtext>
</displayList>

View File

@ -2,11 +2,17 @@
<component size="2432,1170">
<controller name="top_list" pages="0,,1,,2," selected="0"/>
<displayList>
<image id="n20_g71b" name="n20" src="jrro7cyp" fileName="Main/Image/loginBg.png" xy="0,0" size="2531,1170" group="n2_jydr">
<relation target="" sidePair="width-width,height-height"/>
</image>
<image id="n21_g71b" name="n21" src="jrro7cyd" fileName="Main/Image/bt_top.png" xy="0,0" size="2532,204" group="n2_jydr">
<relation target="" sidePair="width-width"/>
</image>
<component id="n0_jydr" name="btn_close" src="in3i7cu9" fileName="Main/Component/btn_close.xml" xy="54,6" group="n2_jydr"/>
<image id="n1_jydr" name="n1" src="jydr7d3l" fileName="Rank/Image/Group 147.png" xy="246,194" group="n2_jydr">
<relation target="" sidePair="width-width%,height-height%"/>
</image>
<group id="n2_jydr" name="bg" xy="54,6" size="2232,1148"/>
<group id="n2_jydr" name="bg" xy="0,0" size="2532,1170"/>
<component id="n4_jydr" name="btn_round" src="jydr7d3r" fileName="Main/Component/btn_choose.xml" xy="659,361" size="348,123" group="n7_jydr">
<Button checked="true" icon="ui://htcn7v3rjydr7d3f" selectedIcon="ui://htcn7v3rjydr7d3i" controller="top_list" page="0"/>
</component>

View File

@ -88,5 +88,5 @@ TextureImporter:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleName: extend/majiang/lichuan/8dba1742414c996765e2bd85d1b4bea7
assetBundleVariant:

View File

@ -88,5 +88,5 @@ TextureImporter:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleName: extend/poker/chuntian/8f2a9eeddae7bdd6699208ed03c6055a
assetBundleVariant:

View File

@ -88,5 +88,5 @@ TextureImporter:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleName: extend/poker/runfast/4453ac44dfe0b10c314c4b7d0f517f22
assetBundleVariant:

View File

@ -133,6 +133,16 @@ namespace Game
}
});
}
public static string TextOmit(string str, int num)
{
if (str.Length > num)
{
return str.Substring(0, num) + "...";
}
return str;
}
}
}

View File

@ -1,57 +1,57 @@
[
{
"ver": "1.0.26",
"ver": "1.0.27",
"name": "跑得快",
"check": true,
"version": "1.0.26",
"version": "1.0.27",
"game_id": "66",
"bundle": "extend/poker/runfast"
},
{
"ver": "1.0.1",
"ver": "1.0.2",
"name": "春天",
"check": true,
"version": "1.0.1",
"version": "1.0.2",
"game_id": "65",
"bundle": "extend/poker/chuntian"
},
{
"ver": "1.0.2",
"ver": "1.0.3",
"name": "梭哈",
"check": true,
"version": "1.0.2",
"version": "1.0.3",
"game_id": "90",
"bundle": "extend/poker2/suoha"
},
{
"ver": "1.0.19",
"ver": "1.0.21",
"name": "南城麻将",
"check": true,
"version": "1.0.19",
"version": "1.0.21",
"game_id": "86",
"bundle": "extend/majiang/nancheng"
},
{
"ver": "1.0.20",
"ver": "1.0.21",
"name": "黎川麻将",
"check": true,
"version": "1.0.20",
"version": "1.0.21",
"game_id": "87",
"bundle": "extend/majiang/lichuan"
},
{
"ver": "1.0.15",
"ver": "1.0.16",
"name": "金溪麻将",
"check": true,
"version": "1.0.15",
"version": "1.0.16",
"game_id": "88",
"bundle": "extend/majiang/jinxi"
},
{
"ver": "1.0.14",
"ver": "1.0.15",
"name": "抚州麻将",
"check": true,
"version": "1.0.14",
"version": "1.0.15",
"game_id": "89",
"bundle": "extend/majiang/fuzhou"
}