Skip to content

Commit 071e52f

Browse files
committed
feat: 团队框架增加召请队友按钮
1 parent f041770 commit 071e52f

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

MY_Cataclysm/lang/zhcn.jx3dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ return {
9797
['Please install and load MY_TeamNotice addon first.'] = 'δ��⵽�ŶӸ�ʾ��������ȷ��ؽ�ɫѡ�����������������棬��װ�����������Ŷӹ����Ӳ����',
9898
['MY_TeamMon_Subscribe'] = '�ŶӼ�ص�������',
9999
['Please install and load MY_TeamMon addon first.'] = 'δ��⵽�ŶӼ�ز�������ȷ��ؽ�ɫѡ�����������������棬��װ�����������ŶӼ���Ӳ����',
100+
['EnvokeAllTeammates'] = '�������ǰ��',
100101
['You are not the distrubutor.'] = '�㲻�Ƿ����ߡ�',
101102
['Official team frame style'] = '�ٷ���ʽ',
102103
['Cataclysm team frame style'] = 'Cataclysm��ʽ',

MY_Cataclysm/lang/zhtw.jx3dat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ return {
9797
['Please install and load MY_TeamNotice addon first.'] = '未檢測到團隊告示插件,請先返回角色選擇界面進入插件管理界面,安裝並載入茗伊團隊工具子插件。',
9898
['MY_TeamMon_Subscribe'] = '團隊監控導入數據',
9999
['Please install and load MY_TeamMon addon first.'] = '未檢測到團隊監控插件,請先返回角色選擇界面進入插件管理界面,安裝並載入茗伊團隊監控子插件。',
100+
['EnvokeAllTeammates'] = '召請隊友前往',
100101
['You are not the distrubutor.'] = '你不是分配者。',
101102
['Official team frame style'] = '官方樣式',
102103
['Cataclysm team frame style'] = 'Cataclysm樣式',

MY_Cataclysm/src/MY_CataclysmMain.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,10 @@ function D.CreateControlBar()
519519
if X.IsLeader() then
520520
container:AppendContentFromIni(szIniFile, 'WndButton_WorldMark')
521521
end
522+
-- 召请玩家
523+
if X.IsLeader() and EnvokeAllTeammates then
524+
container:AppendContentFromIni(szIniFile, 'Wnd_EnvokeAllTeammates')
525+
end
522526
-- 语音按钮
523527
if X.GVoiceBase_IsOpen() then
524528
local nSpeakerState = X.GVoiceBase_GetSpeakerState()
@@ -1206,6 +1210,8 @@ function D.OnLButtonClick()
12061210
else
12071211
return X.OutputSystemMessage(_L['You are not the distrubutor.'])
12081212
end
1213+
elseif szName == 'WndButton_EnvokeAllTeammates' then
1214+
EnvokeAllTeammates()
12091215
elseif szName == 'WndButton_Speaker' then
12101216
X.GVoiceBase_SwitchSpeakerState()
12111217
elseif szName == 'WndButton_Microphone' then
@@ -1275,6 +1281,8 @@ function D.OnMouseEnter()
12751281
X.OutputTip(this, _L['MY_TeamNotice'])
12761282
elseif name == 'Wnd_TeamMon_Subscribe' then
12771283
X.OutputTip(this, _L['MY_TeamMon_Subscribe'])
1284+
elseif name == 'WndButton_EnvokeAllTeammates' then
1285+
X.OutputTip(this, _L['EnvokeAllTeammates'])
12781286
elseif name == 'WndButton_Speaker' then
12791287
local x, y = this:GetAbsPos()
12801288
local w, h = this:GetSize()

MY_Cataclysm/ui/MY_CataclysmMain_Button.ini

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -668,3 +668,51 @@ Frame=17
668668
Width=21
669669
Height=20
670670

671+
[Wnd_EnvokeAllTeammates]
672+
._WndType=WndWindow
673+
._Parent=WndContainer_Total
674+
Left=0
675+
Top=0
676+
Width=21
677+
Height=21
678+
Moveable=0
679+
FollowMove=0,0
680+
FollowSize=0,0
681+
DummyWnd=0
682+
683+
[WndButton_EnvokeAllTeammates]
684+
._WndType=WndButton
685+
._Parent=Wnd_EnvokeAllTeammates
686+
Left=0
687+
Top=0
688+
Width=21
689+
Height=21
690+
Moveable=0
691+
FollowMove=0,0
692+
FollowSize=0,0
693+
DummyWnd=0
694+
Trans=0
695+
Image=ui\Image\UICommon\GoldTeam.UITex
696+
Frame=-1
697+
GrayColor=0
698+
Up=0
699+
Down=0
700+
DisableFrame=-1
701+
NoOverSound=0
702+
Over=1
703+
OverFrame=0
704+
CheckBox=0
705+
CheckOver=0
706+
SendHoldMsg=0
707+
$Tip=Tip
708+
NormalGroup=28
709+
MouseOverGroup=29
710+
MouseDownGroup=30
711+
DisableGroup=31
712+
ButtonDisable=0
713+
ShowTipType=0
714+
TipBgPath=
715+
TipBgFrame=0
716+
TipBgAlpha=255
717+
Alpha=255
718+

0 commit comments

Comments
 (0)