修改回放界面字牌位置
parent
dea44042cb
commit
0b40697efd
|
|
@ -229,11 +229,11 @@ end
|
|||
--牌位置
|
||||
function M:GetHandCardPos(cards_view,cards)
|
||||
local x,y = 0,0
|
||||
local card_width = 42 -- 牌的宽度
|
||||
local card_width = 80 -- 牌的宽度
|
||||
local middle_x = self._area_handcard_list.width / 2
|
||||
local start_x = middle_x - (cards / 2 * (card_width))
|
||||
x = start_x + (card_width) * (cards_view.index_X - 1)
|
||||
y = 0 - (42*cards_view.index_Y)
|
||||
y = 0 - (80*cards_view.index_Y)
|
||||
return Vector2.New(x,y)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -323,7 +323,7 @@ end
|
|||
--牌位置
|
||||
function M:GetHandCardPos(cards_view,cards)
|
||||
local x,y = 0,0
|
||||
local card_width = 90 -- 牌的宽度
|
||||
local card_width = 150 -- 牌的宽度
|
||||
local middle_x = self._area_handcard_list.width / 2
|
||||
local start_x = middle_x - (cards / 2 * (card_width))
|
||||
x = start_x + (card_width) * (cards_view.index_X - 1)
|
||||
|
|
|
|||
|
|
@ -229,11 +229,11 @@ end
|
|||
--牌位置
|
||||
function M:GetHandCardPos(cards_view,cards)
|
||||
local x,y = 0,0
|
||||
local card_width = 42 -- 牌的宽度
|
||||
local middle_x = self._area_handcard_list.width / 2
|
||||
local card_width = 80 -- 牌的宽度
|
||||
local middle_x = self._area_handcard_list.width / 2
|
||||
local start_x = middle_x - (cards / 2 * (card_width))
|
||||
x = start_x + (card_width) * (cards_view.index_X - 1)
|
||||
y = 0 - (42*cards_view.index_Y)
|
||||
y = 0 - (80*cards_view.index_Y)
|
||||
return Vector2.New(x,y)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -228,11 +228,11 @@ end
|
|||
--牌位置
|
||||
function M:GetHandCardPos(cards_view,cards)
|
||||
local x,y = 0,0
|
||||
local card_width = 42 -- 牌的宽度
|
||||
local card_width = 80 -- 牌的宽度
|
||||
local middle_x = self._area_handcard_list.width / 2
|
||||
local start_x = middle_x - (cards / 2 * (card_width))
|
||||
x = start_x + (card_width) * (cards_view.index_X - 1)
|
||||
y = 0 - (42*cards_view.index_Y)
|
||||
y = 0 - (80*cards_view.index_Y)
|
||||
return Vector2.New(x,y)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -5,16 +5,49 @@
|
|||
"ui://m7iejg46jgh8hwv",
|
||||
"ui://1hl55dqmc4r115",
|
||||
"ui://yzaioi79f55qwa",
|
||||
"ui://yzaioi79f55qvx",
|
||||
"ui://m7iejg46l679hws",
|
||||
"ui://27vd145beeqmch0",
|
||||
"ui://m7iejg46kwi0hmc",
|
||||
"ui://yzaioi79f55qw5",
|
||||
"ui://4skil1l6piv91mk",
|
||||
"ui://4skil1l6uwvl1qp",
|
||||
"ui://4skil1l6piv91o7",
|
||||
"ui://4skil1l6piv91o5",
|
||||
"ui://4skil1l6piv91ny",
|
||||
"ui://x3mp2cn6xvhr3r",
|
||||
"ui://niy3ldiwl9mn14",
|
||||
"ui://442j0uepygxga",
|
||||
"ui://3n2top74kpmgkd",
|
||||
"ui://awernf6xbazq7n",
|
||||
"ui://qpsoxvaiprgzee",
|
||||
"ui://b8jloj2qg8ktcmb",
|
||||
"ui://3op8sm5eu86s1f",
|
||||
"ui://y8prev1ms9wx7",
|
||||
"ui://c7j2rnvqtpf02f",
|
||||
"ui://b50sd5s6s9wx7",
|
||||
"ui://xul2z8cts9wx7",
|
||||
"ui://visk5g30gq7m2c",
|
||||
"ui://s63l0suw6cpqv",
|
||||
"ui://425x67nrs9wx7",
|
||||
"ui://kplym8mus9wx7",
|
||||
"ui://fnuxqeflnrnod",
|
||||
"ui://egnzysm7ffp36a",
|
||||
"ui://v2hilfzbgq7mde",
|
||||
"ui://ypulwxjhl9mn14",
|
||||
"ui://k15boclkl9mn14",
|
||||
"ui://oubpz2r2ofil7k",
|
||||
"ui://4skil1l6piv91mg",
|
||||
"ui://27vd145bdjzo18",
|
||||
"ui://yzaioi79f55qvw",
|
||||
"ui://c7j2rnvqtpf08x",
|
||||
"ui://fnuxqeflkllg1x",
|
||||
"ui://5cdldr01qaqf9c",
|
||||
"ui://5cdldr01qaqf61",
|
||||
"ui://5cdldr01qaqf7o",
|
||||
"ui://5cdldr01qaqf60",
|
||||
"ui://5cdldr01qaqfb",
|
||||
"ui://5cdldr01qaqf3f",
|
||||
"ui://5cdldr01qaqfa2",
|
||||
"ui://442j0uepdafga8",
|
||||
"ui://ypulwxjhl9mn37",
|
||||
|
|
@ -33,6 +66,12 @@
|
|||
"ui://m7iejg4610snh5j",
|
||||
"ui://m7iejg46jvvohyf",
|
||||
"ui://3z9lj55vjokmwr",
|
||||
"ui://3z9lj55vjokmlu",
|
||||
"ui://3z9lj55vjokmlt",
|
||||
"ui://3z9lj55vjokmay",
|
||||
"ui://3z9lj55vjokmb2",
|
||||
"ui://3z9lj55vjokmbc",
|
||||
"ui://3z9lj55vjokm6c",
|
||||
"ui://3z9lj55vjokm7l",
|
||||
"ui://4skil1l6ms5spy",
|
||||
"ui://2d9xdj6znlwcgk",
|
||||
|
|
@ -60,9 +99,15 @@
|
|||
"test.device": "Xiaomi 9",
|
||||
"canvasColor": 10066329,
|
||||
"auxline2": true,
|
||||
"doc.activeDoc": "ui://yzaioi79f55qw5",
|
||||
"doc.activeDoc": "ui://5cdldr01qaqf9c",
|
||||
"libview.twoColumn": false,
|
||||
"libview.expandedNodes": [
|
||||
"3z9lj55v",
|
||||
"/",
|
||||
"3z9lj55v",
|
||||
"/component/",
|
||||
"3z9lj55v",
|
||||
"/component/card/",
|
||||
"yzaioi79",
|
||||
"/",
|
||||
"yzaioi79",
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@
|
|||
<list id="n47_lr5d" name="area_fz_list" xy="0,31" pivot="0.5,0.5" size="713,268" rotation="180" layout="row" scroll="horizontal" colGap="20" align="right" vAlign="bottom"/>
|
||||
<list id="n48_lr5d" name="windcard_list" xy="1,350" size="535,530" touchable="false" layout="flow_hz" selectionMode="none" scroll="horizontal" lineGap="1" colGap="1" defaultItem="ui://v6yvqp7wf55qvw"/>
|
||||
<component id="n50_n1ry" name="mask_liangpai" src="qaqf60" fileName="component/Component1.xml" xy="200,83" size="5,5"/>
|
||||
<component id="n25" name="area_outcard_list" src="qaqf60" fileName="component/Component1.xml" xy="1328,-46" size="100,100"/>
|
||||
<component id="n51_n7o4" name="area_handcard_list" src="qaqf60" fileName="component/Component1.xml" xy="69,164" size="717,533" touchable="false"/>
|
||||
<component id="n25" name="area_outcard_list" src="qaqf60" fileName="component/Component1.xml" xy="900,-46" size="100,100"/>
|
||||
<component id="n51_n7o4" name="area_handcard_list" src="qaqf60" fileName="component/Component1.xml" xy="69,285" size="717,533" touchable="false"/>
|
||||
</displayList>
|
||||
<transition name="t0">
|
||||
<item time="0" type="XY" target="n25" tween="true" startValue="-63,105" endValue="121.45,295" duration="4"/>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<component size="2532,1170" opaque="false" initName="player_card_info">
|
||||
<displayList>
|
||||
<component id="n52_oske" name="area_handcard_list" src="djzo18" fileName="component/Component1.xml" pkg="27vd145b" xy="165,256" size="717,533" touchable="false"/>
|
||||
<component id="n52_oske" name="area_handcard_list" src="djzo18" fileName="component/Component1.xml" pkg="27vd145b" xy="316,256" size="717,533" touchable="false"/>
|
||||
<list id="n47_lr5d" name="area_fz_list" xy="196,31" size="713,268" layout="row" scroll="horizontal" colGap="20" defaultItem="ui://v6yvqp7wlr5d30" vAlign="middle"/>
|
||||
<list id="n48_lr5d" name="windcard_list" xy="0,350" size="535,530" layout="flow_hz" selectionMode="none" scroll="horizontal" lineGap="1" colGap="1" defaultItem="ui://yzaioi79f55qvw" autoClearItems="true">
|
||||
<item/>
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
<item/>
|
||||
<item/>
|
||||
</list>
|
||||
<component id="n25" name="area_outcard_list" src="djzo18" fileName="component/Component1.xml" pkg="27vd145b" xy="1328,-46" size="100,100" touchable="false"/>
|
||||
<component id="n25" name="area_outcard_list" src="djzo18" fileName="component/Component1.xml" pkg="27vd145b" xy="900,-46" size="100,100" touchable="false"/>
|
||||
<component id="n50_n1ry" name="mask_liangpai" src="djzo18" fileName="component/Component1.xml" pkg="27vd145b" xy="200,83" size="5,5"/>
|
||||
</displayList>
|
||||
<transition name="t0">
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue