Project1
标题:
请教金币的显示问题
[打印本页]
作者:
tsjslgy
时间:
2023-10-28 01:08
标题:
请教金币的显示问题
本帖最后由 tsjslgy 于 2023-10-28 01:23 编辑
家人们,用了mog的gold hub和TreasureHud,的确在获取金币时有显示,但如何实现减少金币时有'-xxxx'这种呢,比如地图上消耗,现在是直接显示余额,看不见变动,难道要用显示文字一个个弄么?
作者:
AKM丨
时间:
2023-10-31 23:34
我也想知道
作者:
小秋橙
时间:
2023-11-1 08:19
Game_Party.prototype.gold = function() {
return this._gold;
};
Game_Party.prototype.gainGold = function(amount) {
this._gold = (this._gold + amount).clamp(0, this.maxGold());
};
Game_Party.prototype.loseGold = function(amount) {
this.gainGold(-amount); // 感觉可能要从这个函数下手,把amount通过$gameMessage.add("xxx")显示出来。
};
作者:
151502289882
时间:
2023-11-1 09:25
插件 LiuYue_GainItemTips 可以做到
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1