|
有问题的论坛留言,我继续改进。
1.修正退出游戏还在继续播放地图音乐的BUG
文件->set.js 522行增加
引入2个文件
import AudioUtil from "../ts/core/AudioUtil";
import GameUtil from "../core/GameUtil";
let audioid = GameUtil.getMapAudio(this.mapId);
AudioUtil.stopPlay(audioid);
2.修改称谓面板字体颜色为白色
预制体SetRoleTitleItem.prefab
3.修改顶部金币显示
文件->fgui->顶部货币
4.修改炼化框内所需物品获取路径
文件->信息弹框->item_detail_panel
增加按钮get_btn 标题title
5.修正新的一天剧情任务从新开始bug
文件->core/RoleTaskMgr.ts第120行增加
if(!item){
item.nTaskID = 1;
}
新的一天获取数据库为空值,造成传递参数为空,无法判断是否完成哪项任务,系统默认从开始计算
6.修改星阵升级所需物品点击事件,点击按钮跳出所需物品属性及获取方式。
starHome.js->76行增加
FGUtil.getObject(this.main, "n60/n5").onClick(this.showNeedItem, this)
添加showNeddItem方法
showNeedItem(){
ItemUtil.showItemDetail(9654);
}
start--------------------------未实现点击事件重复了。导致冲突------------------------------
7.修改fgui->useitem模板,添加一个透明图层按钮。用来添加物品详细信息显示click事件
脚本文件->assets\Script\ts\gear_2.3.4\fgui 89行增加代码
FGUtil.getButton(item, "n29").onClick(this.showItemInfo(`${itemData.icon}`),this);
添加方法
showItemInfo(itemid:any){
ItemUtil.showItemDetail(itemid);
}
end--------------------------未实现点击事件重复了。导致冲突------------------------------
8.修正坐骑洗练,所需物品图标被点击后变大的bug,fgui修改图片为缩放0.5
增加点击物品查看详细信息
文件->scipt\horse\RefiningAlter.ts
添加按钮监听事件
FGUtil.getButton(this.alert, "use_item").onClick(this.onClickItem, this);
添加按钮方法
onClickItem(){
ItemUtil.showItemDetail(10608);
}
9.增加配饰激活套装技能提示
服务端文件object\Player.ts
export default class Player extends BattleObj {
baldric_isFours:boolean;
}
constructor() {
super();
这个里面添加
this.baldric_isFours = false;
}
1548行添加
if(this.baldric_isFours == false){
this.send_notice('激活套装技能' + skill.skill_name);
this.baldric_isFours = true;
}
1556行添加
this.baldric_isFours = false;
10.修正天策符界面(合成、鉴定、装备)混乱的ui。
fgui修改界面文件->天演策->faction_talent_bag_panel
nocard添加控制器 3 4 5 6 7
3->合成界面
4->鉴定界面
5->装备界面
6->卸下界面->暂时无用
7->批量分解
脚本文件
ts\FactionTalent.ts
openDecomposeFuMore方法里添加
FGUtil.getControl(this.fcBagPanel, "alert/noCard").selectedIndex = 7;
checkfuitem方法里添加
// 操作
if (this.moreUnComposeMode) {
FGUtil.getControl(this.fcBagPanel, "alert/type").selectedIndex = 4;
} else {
if (info.oftype == 0) {
if (info.itemid == 100320) {
// 碎片
FGUtil.getControl(this.fcBagPanel, "alert/type").selectedIndex = 1;
FGUtil.getControl(this.fcBagPanel, "alert/noCard").selectedIndex = 3;
} else
// 未鉴定
FGUtil.getControl(this.fcBagPanel, "alert/type").selectedIndex = 2;
FGUtil.getControl(this.fcBagPanel, "alert/noCard").selectedIndex = 4;
} else {
// 天策符
if (info.usestate == 0)
FGUtil.getControl(this.fcBagPanel, "alert/type").selectedIndex = 0;
FGUtil.getControl(this.fcBagPanel, "alert/noCard").selectedIndex = 6;
else if (info.usestate == 1)
FGUtil.getControl(this.fcBagPanel, "alert/type").selectedIndex = 3;
FGUtil.getControl(this.fcBagPanel, "alert/noCard").selectedIndex = 5;;
}
}
if (info.itemid == 100320) {
// 碎片
FGUtil.getControl(this.fcBagPanel, "alert/type").selectedIndex = 1;
FGUtil.getControl(this.fcBagPanel, "alert/noCard").selectedIndex = 3;
}
11.增加完成任务获得称谓功能。
服务端文件
object\taskstate.ts 270行增加
if(vecPrize[it].nKey == 'addtitle'){
let playerRace:number = 0;
playerRace = member.race;
let tmpID:number = 0;
tmpID = vecPrize[it].nValue;
let chengweiID:number =0;
chengweiID = tmpID + playerRace;
member.addTitle(4,chengweiID,'');
member.send('s2c_notice', {
strRichText: `恭喜您获得${task.strTaskName}称谓。`
});
}
任务文件添加奖励定义
vecPrize此字段是完成每步骤的奖励。添加定义addtitle 参数:1000为第一称谓起始id,1000+角色种族id就是称谓id。
12。增加地藏套装回法功能
|
组图打开中,请稍候......
评分
-
查看全部评分
|