设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 173|回复: 3
打印 上一主题 下一主题

[有事请教] 去除技能界面消耗MP的显示

[复制链接]

Lv4.逐梦者

梦石
0
星屑
4979
在线时间
1312 小时
注册时间
2018-1-16
帖子
380
跳转到指定楼层
1
发表于 2024-7-27 11:55:23 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1星屑
老哥们,问个问题,忽然想去除技能界面的MP的消耗的显示,应该怎么办呢

最佳答案

查看完整内容

Window_SkillList.prototype.drawSkillCost = function (skill, x, y, width) { if (this._actor.skillTpCost(skill) > 0) { this.changeTextColor(ColorManager.tpCostColor()); this.drawText(this._actor.skillTpCost(skill), x, y, width, "right"); } else if (this._actor.skillMpCost(skill) > 0) { //this.changeTextColor(ColorManager.mpCostColor()); ...

Lv4.逐梦者

梦石
0
星屑
8375
在线时间
1434 小时
注册时间
2012-6-6
帖子
349
2
发表于 2024-7-27 11:55:24 | 只看该作者
本帖最后由 流浪杰哥 于 2024-7-29 21:26 编辑

   Window_SkillList.prototype.drawSkillCost = function (skill, x, y, width) {
        if (this._actor.skillTpCost(skill) > 0) {
            this.changeTextColor(ColorManager.tpCostColor());
            this.drawText(this._actor.skillTpCost(skill), x, y, width, "right");
        } else if (this._actor.skillMpCost(skill) > 0) {
            //this.changeTextColor(ColorManager.mpCostColor());
            //this.drawText(this._actor.skillMpCost(skill), x, y, width, "right");
        }
    };


代码是这么改,既然不显示MP,那TP呢,如果也不需要TP显示,那就这样

Window_SkillList.prototype.drawSkillCost = function (skill, x, y, width) { };
回复

使用道具 举报

Lv4.逐梦者

梦石
0
星屑
4979
在线时间
1312 小时
注册时间
2018-1-16
帖子
380
3
 楼主| 发表于 2024-7-28 14:38:38 | 只看该作者
自顶,有没有老哥知道
回复

使用道具 举报

Lv4.逐梦者

梦石
0
星屑
4979
在线时间
1312 小时
注册时间
2018-1-16
帖子
380
4
 楼主| 发表于 2024-7-29 22:01:45 | 只看该作者
流浪杰哥 发表于 2024-7-27 11:55
Window_SkillList.prototype.drawSkillCost = function (skill, x, y, width) {
        if (this._acto ...

搞定,多谢了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-9-8 09:27

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表