master
parent
c1c3d3ca76
commit
78057035d4
|
|
@ -21,6 +21,8 @@ BaseWindow = {
|
||||||
_queue = true,
|
_queue = true,
|
||||||
--全屏
|
--全屏
|
||||||
_full = false,
|
_full = false,
|
||||||
|
--缩放全屏
|
||||||
|
_scale = false,
|
||||||
--全屏偏移
|
--全屏偏移
|
||||||
_full_offset = true,
|
_full_offset = true,
|
||||||
--新窗口隐藏队列
|
--新窗口隐藏队列
|
||||||
|
|
@ -155,6 +157,13 @@ function M:Show()
|
||||||
WindowQueue[#WindowQueue + 1] = self
|
WindowQueue[#WindowQueue + 1] = self
|
||||||
end
|
end
|
||||||
AddPanel(self._root_view)
|
AddPanel(self._root_view)
|
||||||
|
|
||||||
|
if self._scale then
|
||||||
|
local scaleY = GRoot.inst.height / self._contentPane.height
|
||||||
|
local scaleX = GRoot.inst.width / self._contentPane.width
|
||||||
|
self._contentPane:SetScale(scaleX, scaleY)
|
||||||
|
end
|
||||||
|
|
||||||
if self._full then
|
if self._full then
|
||||||
local offset = get_offset(self._full_offset)
|
local offset = get_offset(self._full_offset)
|
||||||
self._contentPane.width = GRoot.inst.width - 2 * offset
|
self._contentPane.width = GRoot.inst.width - 2 * offset
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,25 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<component size="1980,234">
|
<component size="1980,234">
|
||||||
<displayList>
|
<displayList>
|
||||||
<image id="n0_yk1o" name="n0" src="yk1o7d3r" fileName="MyFamily/Image/Rectangle 259.png" xy="0,0" size="1980,249"/>
|
<image id="n0_yk1o" name="n0" src="yk1o7d3r" fileName="MyFamily/Image/Rectangle 259.png" xy="0,0" size="1980,249">
|
||||||
<loader id="n1_yk1o" name="loader_icon" xy="30,24" size="186,186" align="center" vAlign="middle" fill="scaleMatchHeight"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
<image id="n2_yk1o" name="n2" src="yk1o7d3s" fileName="MyFamily/Image/Rectangle 260.png" xy="246,24" size="1710,186"/>
|
</image>
|
||||||
<component id="n3_yk1o" name="btn_rank" src="yk1o7d3x" fileName="MyFamily/Component/btn_familyRank.xml" xy="912,57"/>
|
<image id="n2_yk1o" name="n2" src="yk1o7d3s" fileName="MyFamily/Image/Rectangle 260.png" xy="246,24" size="1710,186">
|
||||||
<component id="n4_yk1o" name="btn_record" src="yk1o7d3y" fileName="MyFamily/Component/btn_familyRecord.xml" xy="1299,57"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
<component id="n5_yk1o" name="btn_familyManage" src="yk1o7d3z" fileName="MyFamily/Component/btn_familyManage.xml" xy="1623,57"/>
|
</image>
|
||||||
<image id="n6_yk1o" name="n6" src="yk1o7d40" fileName="MyFamily/Image/hall_club_common_club_liebiao_icon_renshu.png" xy="555,54"/>
|
<loader id="n1_yk1o" name="loader_icon" xy="30,24" size="186,186" group="n10_q3uh" align="center" vAlign="middle" fill="scaleMatchHeight"/>
|
||||||
<text id="n7_yk1o" name="tex_familyId" xy="282,52" size="243,49" font="ui://27vd145bg2mo7ij0" fontSize="36" color="#940f0e" vAlign="middle" autoSize="none" text="940F0E"/>
|
<image id="n6_yk1o" name="n6" src="yk1o7d40" fileName="MyFamily/Image/hall_club_common_club_liebiao_icon_renshu.png" xy="555,54" group="n10_q3uh"/>
|
||||||
<text id="n8_yk1o" name="tex_familyName" xy="282,112" size="292,64" font="ui://27vd145bg2mo7ij0" fontSize="48" color="#333333" vAlign="middle" autoSize="none" text="333333"/>
|
<text id="n7_yk1o" name="tex_familyId" xy="282,52" size="243,49" group="n10_q3uh" font="ui://27vd145bg2mo7ij0" fontSize="36" color="#940f0e" vAlign="middle" autoSize="none" text="940F0E"/>
|
||||||
<text id="n9_yk1o" name="tex_familyNumber" xy="595,43" size="272,56" font="ui://27vd145bg2mo7ij0" fontSize="42" color="#333333" vAlign="middle" autoSize="none" text="333333"/>
|
<text id="n8_yk1o" name="tex_familyName" xy="282,112" size="292,64" group="n10_q3uh" font="ui://27vd145bg2mo7ij0" fontSize="48" color="#333333" vAlign="middle" autoSize="none" text="333333"/>
|
||||||
|
<text id="n9_yk1o" name="tex_familyNumber" xy="595,43" size="272,56" group="n10_q3uh" font="ui://27vd145bg2mo7ij0" fontSize="42" color="#333333" vAlign="middle" autoSize="none" text="333333"/>
|
||||||
|
<group id="n10_q3uh" name="n10" xy="30,24" size="837,186" advanced="true">
|
||||||
|
<relation target="" sidePair="left-left"/>
|
||||||
|
</group>
|
||||||
|
<component id="n3_yk1o" name="btn_rank" src="yk1o7d3x" fileName="MyFamily/Component/btn_familyRank.xml" xy="912,57" group="n11_q3uh"/>
|
||||||
|
<component id="n4_yk1o" name="btn_record" src="yk1o7d3y" fileName="MyFamily/Component/btn_familyRecord.xml" xy="1299,57" group="n11_q3uh"/>
|
||||||
|
<component id="n5_yk1o" name="btn_familyManage" src="yk1o7d3z" fileName="MyFamily/Component/btn_familyManage.xml" xy="1623,57" group="n11_q3uh"/>
|
||||||
|
<group id="n11_q3uh" name="n11" xy="912,57" size="1021,120" advanced="true">
|
||||||
|
<relation target="" sidePair="right-right"/>
|
||||||
|
</group>
|
||||||
</displayList>
|
</displayList>
|
||||||
</component>
|
</component>
|
||||||
|
|
@ -11,13 +11,18 @@
|
||||||
<relation target="n2_yk1o" sidePair="right-right"/>
|
<relation target="n2_yk1o" sidePair="right-right"/>
|
||||||
</image>
|
</image>
|
||||||
<group id="n1_yk1o" name="n1" xy="967,27" size="598,99"/>
|
<group id="n1_yk1o" name="n1" xy="967,27" size="598,99"/>
|
||||||
<image id="n5_yk1o" name="n5" src="mc627d05" fileName="Main/Image/Rectangle 91.png" xy="228,186" size="2076,960"/>
|
<image id="n5_yk1o" name="n5" src="mc627d05" fileName="Main/Image/Rectangle 91.png" xy="228,186" size="2076,960">
|
||||||
<image id="n6_yk1o" name="n6" src="ieus7d1e" fileName="Main/Image/Rectangle 121.png" xy="246,204" size="2040,924"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
<component id="n4_yk1o" name="btn_close" src="in3i7cu9" fileName="Main/Component/btn_close.xml" xy="54,6"/>
|
</image>
|
||||||
<list id="n7_yk1o" name="list_familys" xy="246,234" size="2040,865" layout="flow_vt" overflow="scroll" lineGap="36" defaultItem="ui://htcn7v3ryk1o7d3q" align="center" autoClearItems="true">
|
<image id="n6_yk1o" name="n6" src="ieus7d1e" fileName="Main/Image/Rectangle 121.png" xy="246,204" size="2040,924">
|
||||||
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
|
</image>
|
||||||
|
<list id="n7_yk1o" name="list_familys" xy="276,234" size="1980,865" overflow="scroll" lineGap="36" defaultItem="ui://htcn7v3ryk1o7d3q" align="center" autoClearItems="true">
|
||||||
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
<item/>
|
<item/>
|
||||||
<item/>
|
<item/>
|
||||||
<item/>
|
<item/>
|
||||||
</list>
|
</list>
|
||||||
|
<component id="n4_yk1o" name="btn_close" src="in3i7cu9" fileName="Main/Component/btn_close.xml" xy="54,6"/>
|
||||||
</displayList>
|
</displayList>
|
||||||
</component>
|
</component>
|
||||||
Binary file not shown.
Loading…
Reference in New Issue