麻将显示语音按钮
|
|
@ -19,7 +19,7 @@ function FamilyInvitedMsgView.new(groupid, pid, invite_id, blur_view, callback)
|
||||||
self.callback = callback
|
self.callback = callback
|
||||||
print("lingmeng FGAssistInviteView1")
|
print("lingmeng FGAssistInviteView1")
|
||||||
UIPackage.AddPackage('base/newgroup/ui/FGAssist')
|
UIPackage.AddPackage('base/newgroup/ui/FGAssist')
|
||||||
self:initView("ui://FGAssist/panel_invite")
|
self:initView("ui://FGAssist/panel_invited")
|
||||||
print("lingmeng FGAssistInviteView2")
|
print("lingmeng FGAssistInviteView2")
|
||||||
|
|
||||||
return self
|
return self
|
||||||
|
|
@ -56,7 +56,14 @@ function M:initView(url)
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:FillData()
|
function M:FillData()
|
||||||
|
local group = DataManager.groups:get(self.groupid)
|
||||||
|
local play = group:getPlay(self.pid)
|
||||||
|
local player = group.memberMap[self.invite_id]
|
||||||
|
|
||||||
|
self._viewText_groupName.text = group.name
|
||||||
|
self._viewText_gameName.text = play.game_name
|
||||||
|
self._viewText_inviteName.text = player.nick
|
||||||
|
self._viewText_playName.text = play.name
|
||||||
end
|
end
|
||||||
|
|
||||||
function M:Destroy()
|
function M:Destroy()
|
||||||
|
|
|
||||||
|
|
@ -220,9 +220,12 @@ function M:ShowInteraction(type, str)
|
||||||
Voice.DownLoad(
|
Voice.DownLoad(
|
||||||
str,
|
str,
|
||||||
function(clip)
|
function(clip)
|
||||||
|
print("lingmeng ShowInteraction")
|
||||||
if (clip) then
|
if (clip) then
|
||||||
|
print("lingmeng ShowInteraction1")
|
||||||
self:ShowMaskVoice(clip.length)
|
self:ShowMaskVoice(clip.length)
|
||||||
GameApplication.Instance:PlayVoice(clip)
|
GameApplication.Instance:PlayVoice(clip)
|
||||||
|
print("lingmeng ShowInteraction2")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
|
||||||
<component size="1009,619">
|
|
||||||
<displayList>
|
|
||||||
<component id="n0_cioe" name="n0" src="eeqmcgu" fileName="Win_Frame_full.xml" pkg="27vd145b" xy="-1,0" size="1009,619" controller="show_line,0,show_di,0,style,0">
|
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
|
||||||
<Button icon="ui://vplxondscioehny"/>
|
|
||||||
</component>
|
|
||||||
<component id="n1_cioe" name="btn_close" src="vg2c4" fileName="buttons/Btn_close.xml" pkg="27vd145b" xy="962,0" controller="style,0">
|
|
||||||
<relation target="" sidePair="right-right"/>
|
|
||||||
</component>
|
|
||||||
<text id="n19_cioe" name="tex_left_time" xy="472,561" pivot="0.5,0.5" anchor="true" size="53,42" fontSize="30" color="#ff0000" singleLine="true" autoClearText="true" text="15s"/>
|
|
||||||
<component id="n20_cioe" name="btn_no" src="cioeho4" fileName="invite/component/invite/btn_invite_action.xml" xy="130,510" size="301,105" group="n22_cioe"/>
|
|
||||||
<component id="n21_cioe" name="btn_yes" src="cioeho4" fileName="invite/component/invite/btn_invite_action.xml" xy="586,510" size="293,98" group="n22_cioe">
|
|
||||||
<Button icon="ui://vplxondscioeho2"/>
|
|
||||||
</component>
|
|
||||||
<group id="n22_cioe" name="n22" xy="130,510" size="749,105"/>
|
|
||||||
<component id="n23_pxf0" name="btn_refuse" src="h1uu3f" fileName="component/create_room/Btn_cr_checkbox.xml" pkg="27vd145b" xy="403,405" size="388,47">
|
|
||||||
<Button title="5分钟之内不再接受邀请"/>
|
|
||||||
</component>
|
|
||||||
<text id="n15_cioe" name="n15" xy="311,323" size="154,42" group="n24_p747" fontSize="30" color="#663300" text="游戏类型:"/>
|
|
||||||
<text id="n18_cioe" name="tex_game_name" xy="512,323" size="124,42" group="n24_p747" fontSize="30" color="#663300" singleLine="true" autoClearText="true" text="长沙麻将"/>
|
|
||||||
<group id="n24_p747" name="n24" xy="311,323" size="325,42"/>
|
|
||||||
<text id="n14_cioe" name="n14" xy="311,264" size="154,42" group="n25_p747" fontSize="30" color="#663300" text="包间名称:"/>
|
|
||||||
<text id="n16_cioe" name="tex_play_name" xy="512,264" size="55,42" group="n25_p747" fontSize="30" color="#663300" singleLine="true" autoClearText="true" text="233"/>
|
|
||||||
<group id="n25_p747" name="n25" xy="311,264" size="251,38"/>
|
|
||||||
<text id="n9_cioe" name="n9" xy="339,186" size="124,42" group="n26_p747" fontSize="30" color="#663300" text="邀请人:"/>
|
|
||||||
<component id="n10_cioe" name="btn_head" src="do2f1z" fileName="component/head/Head2.xml" pkg="27vd145b" xy="526,204" pivot="0.5,0.5" anchor="true" group="n13_cioe"/>
|
|
||||||
<text id="n11_cioe" name="tex_name" xy="601,164" size="124,42" group="n13_cioe" fontSize="30" color="#663300" singleLine="true" autoClearText="true" text="玩家名字"/>
|
|
||||||
<text id="n12_cioe" name="tex_id" xy="601,209" size="143,42" group="n13_cioe" fontSize="30" color="#663300" singleLine="true" autoClearText="true" text="iD:123456"/>
|
|
||||||
<group id="n13_cioe" name="n13" xy="484,162" size="249,85" group="n26_p747" advanced="true"/>
|
|
||||||
<group id="n26_p747" name="n26" xy="339,162" size="394,85"/>
|
|
||||||
</displayList>
|
|
||||||
</component>
|
|
||||||
|
|
@ -32,7 +32,6 @@
|
||||||
<image id="cioehn1" name="hd.png" path="/invite/image/tool/" scale="9grid" scale9grid="18,22,36,44"/>
|
<image id="cioehn1" name="hd.png" path="/invite/image/tool/" scale="9grid" scale9grid="18,22,36,44"/>
|
||||||
<component id="cioehnd" name="panel_assist.xml" path="/invite/" exported="true"/>
|
<component id="cioehnd" name="panel_assist.xml" path="/invite/" exported="true"/>
|
||||||
<component id="cioehnj" name="panel_table.xml" path="/invite/"/>
|
<component id="cioehnj" name="panel_table.xml" path="/invite/"/>
|
||||||
<component id="cioehnx" name="panel_invited--.xml" path="/invite/"/>
|
|
||||||
<component id="cioehmy" name="btn_assist.xml" path="/invite/" exported="true"/>
|
<component id="cioehmy" name="btn_assist.xml" path="/invite/" exported="true"/>
|
||||||
<component id="pxf0ho6" name="checkbox.xml" path="/invite/component/invite/"/>
|
<component id="pxf0ho6" name="checkbox.xml" path="/invite/component/invite/"/>
|
||||||
<image id="pxf0ho7" name="yqhs.png" path="/invite/image/invite/"/>
|
<image id="pxf0ho7" name="yqhs.png" path="/invite/image/invite/"/>
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<component size="120,120" extention="Button">
|
||||||
|
<controller name="button" pages="0,up,1,down,2,over,3,selectedOver" selected="0"/>
|
||||||
|
<displayList>
|
||||||
|
<image id="n3_ckvb" name="n3" src="pbp614j" fileName="Main_New/Image/Group 205.png" xy="-3,-3"/>
|
||||||
|
</displayList>
|
||||||
|
<Button downEffect="dark" downEffectValue=".8"/>
|
||||||
|
</component>
|
||||||
|
After Width: | Height: | Size: 22 KiB |
|
After Width: | Height: | Size: 22 KiB |
|
|
@ -7,7 +7,8 @@
|
||||||
<controller name="showNext" pages="0,不展示,1,展示" selected="0"/>
|
<controller name="showNext" pages="0,不展示,1,展示" selected="0"/>
|
||||||
<controller name="showNextConfrim" pages="0,不展示,1,展示" selected="0"/>
|
<controller name="showNextConfrim" pages="0,不展示,1,展示" selected="0"/>
|
||||||
<controller name="more" pages="0,,1," selected="0"/>
|
<controller name="more" pages="0,,1," selected="0"/>
|
||||||
<controller name="witness" pages="0,,1," selected="1"/>
|
<controller name="witness" pages="0,,1," selected="0"/>
|
||||||
|
<controller name="voice" pages="0,,1," selected="0"/>
|
||||||
<displayList>
|
<displayList>
|
||||||
<component id="n81_l2u4" name="cardbox" src="gq7m5e" fileName="Main_style_2/turn/Gcm_box_4.xml" xy="1278,-294" pivot="0.5,0.5">
|
<component id="n81_l2u4" name="cardbox" src="gq7m5e" fileName="Main_style_2/turn/Gcm_box_4.xml" xy="1278,-294" pivot="0.5,0.5">
|
||||||
<gearDisplay controller="state" pages="1,3"/>
|
<gearDisplay controller="state" pages="1,3"/>
|
||||||
|
|
@ -245,9 +246,16 @@
|
||||||
<relation target="" sidePair="width-width,height-height"/>
|
<relation target="" sidePair="width-width,height-height"/>
|
||||||
<Button controller="witness" page="0"/>
|
<Button controller="witness" page="0"/>
|
||||||
</component>
|
</component>
|
||||||
<component id="n185_kzuz" name="comp_witness" src="kzuz14b" fileName="Main_new/Main/Component/comp_witness.xml" xy="2097,30">
|
<component id="n185_kzuz" name="comp_witness" src="kzuz14b" fileName="Main_new/Main/Component/comp_witness.xml" xy="2537,30">
|
||||||
<gearDisplay controller="witness" pages="1"/>
|
<gearDisplay controller="witness" pages="1"/>
|
||||||
<gearXY controller="witness" pages="0" values="2537,30" default="2097,30" tween="true" ease="Linear" duration=".5"/>
|
<gearXY controller="witness" pages="0" values="2537,30" default="2097,30" tween="true" ease="Linear" duration=".5"/>
|
||||||
</component>
|
</component>
|
||||||
|
<component id="n187_pbp6" name="btn_sendTalk" src="pbp614i" fileName="Main_New/Component/Btn_MessageTalk.xml" xy="2328,482"/>
|
||||||
|
<graph id="n188_pbp6" name="n188" xy="0,0" size="2532,1170" group="n191_pbp6" type="rect" lineSize="0" fillColor="#73000000"/>
|
||||||
|
<image id="n189_pbp6" name="n189" src="pbp614k" fileName="Main_New/Image/Group 205(1).png" xy="1203,522" group="n191_pbp6"/>
|
||||||
|
<text id="n190_pbp6" name="n190" xy="1024,667" size="484,79" group="n191_pbp6" fontSize="60" color="#ffffff" text="松开按钮发送语音"/>
|
||||||
|
<group id="n191_pbp6" name="chatTalk" xy="0,0" size="2532,1170" advanced="true">
|
||||||
|
<gearDisplay controller="voice" pages="1"/>
|
||||||
|
</group>
|
||||||
</displayList>
|
</displayList>
|
||||||
</component>
|
</component>
|
||||||
|
|
@ -1223,6 +1223,9 @@
|
||||||
<component id="sx7x14f" name="btn_bg.xml" path="/Main_new/Main/Component/"/>
|
<component id="sx7x14f" name="btn_bg.xml" path="/Main_new/Main/Component/"/>
|
||||||
<image id="sx7x14g" name="gamechatback1.png" path="/Main_new/Main/Image/" scale="9grid" scale9grid="22,13,46,31"/>
|
<image id="sx7x14g" name="gamechatback1.png" path="/Main_new/Main/Image/" scale="9grid" scale9grid="22,13,46,31"/>
|
||||||
<image id="sx7x14h" name="gamechatback2.png" path="/Main_new/Main/Image/"/>
|
<image id="sx7x14h" name="gamechatback2.png" path="/Main_new/Main/Image/"/>
|
||||||
|
<component id="pbp614i" name="Btn_MessageTalk.xml" path="/Main_New/Component/"/>
|
||||||
|
<image id="pbp614j" name="Group 205.png" path="/Main_New/Image/"/>
|
||||||
|
<image id="pbp614k" name="Group 205(1).png" path="/Main_New/Image/"/>
|
||||||
</resources>
|
</resources>
|
||||||
<publish name="Main_Majiang" path="..\wb_unity_pro\Assets\ART\base\main_majiang\ui" packageCount="2"/>
|
<publish name="Main_Majiang" path="..\wb_unity_pro\Assets\ART\base\main_majiang\ui" packageCount="2"/>
|
||||||
</packageDescription>
|
</packageDescription>
|
||||||
|
|
@ -88,5 +88,5 @@ TextureImporter:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 0
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: base/family/b23cba4d4e164d6d5cb3cff916b9e0a4
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||
|
|
@ -88,5 +88,5 @@ TextureImporter:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 0
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: base/family/b23cba4d4e164d6d5cb3cff916b9e0a4
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||
|
|
@ -88,5 +88,5 @@ TextureImporter:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 0
|
||||||
userData:
|
userData:
|
||||||
assetBundleName: base/main_majiang/d2fa434d27dc07bf09395dc32491060b
|
assetBundleName: base/main_majiang/abf0e2af8fb6daf78fa8ebcdd8acc4f0
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||
|
|
@ -88,5 +88,5 @@ TextureImporter:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 0
|
||||||
userData:
|
userData:
|
||||||
assetBundleName: base/main_majiang/d2fa434d27dc07bf09395dc32491060b
|
assetBundleName: base/main_majiang/abf0e2af8fb6daf78fa8ebcdd8acc4f0
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||
|
|
@ -88,5 +88,5 @@ TextureImporter:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 0
|
||||||
userData:
|
userData:
|
||||||
assetBundleName: base/main_majiang/d2fa434d27dc07bf09395dc32491060b
|
assetBundleName: base/main_majiang/abf0e2af8fb6daf78fa8ebcdd8acc4f0
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 3.8 MiB |
|
|
@ -88,5 +88,5 @@ TextureImporter:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 0
|
||||||
userData:
|
userData:
|
||||||
assetBundleName: base/main_majiang/d2fa434d27dc07bf09395dc32491060b
|
assetBundleName: base/main_majiang/abf0e2af8fb6daf78fa8ebcdd8acc4f0
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 3.9 MiB After Width: | Height: | Size: 3.9 MiB |
|
|
@ -88,5 +88,5 @@ TextureImporter:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 0
|
||||||
userData:
|
userData:
|
||||||
assetBundleName: base/main_majiang/d2fa434d27dc07bf09395dc32491060b
|
assetBundleName: base/main_majiang/abf0e2af8fb6daf78fa8ebcdd8acc4f0
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.9 MiB |
|
|
@ -88,5 +88,5 @@ TextureImporter:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 0
|
||||||
userData:
|
userData:
|
||||||
assetBundleName: base/main_majiang/d2fa434d27dc07bf09395dc32491060b
|
assetBundleName: base/main_majiang/abf0e2af8fb6daf78fa8ebcdd8acc4f0
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 888 KiB After Width: | Height: | Size: 889 KiB |
|
|
@ -88,5 +88,5 @@ TextureImporter:
|
||||||
pSDRemoveMatte: 0
|
pSDRemoveMatte: 0
|
||||||
pSDShowRemoveMatteOption: 0
|
pSDShowRemoveMatteOption: 0
|
||||||
userData:
|
userData:
|
||||||
assetBundleName: base/main_majiang/d2fa434d27dc07bf09395dc32491060b
|
assetBundleName: base/main_majiang/abf0e2af8fb6daf78fa8ebcdd8acc4f0
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@ guid: 326fa64ee0dd8b94aa86fa1978e56fa5
|
||||||
TextScriptImporter:
|
TextScriptImporter:
|
||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
userData:
|
userData:
|
||||||
assetBundleName: base/main_majiang/d2fa434d27dc07bf09395dc32491060b
|
assetBundleName: base/main_majiang/abf0e2af8fb6daf78fa8ebcdd8acc4f0
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|
|
||||||