Fix comand hints on title menu

This commit is contained in:
OleSTEEP 2024-01-14 04:05:20 +03:00
parent c07880876a
commit 6b717a39f7
3 changed files with 6 additions and 5 deletions

View file

@ -36,13 +36,13 @@ Bitmap.prototype.initialize = function (width, height) {
// Run Original Function
_TDS_.OmoriBASE.Bitmap_initialize.call(this, width, height);
// Default Input Icons
this._defaultInputIcons = 'keyboardBlack24';
this._defaultInputIcons = 'gamepadBlack24';
};
//=============================================================================
// * Get Default Input Icons
//=============================================================================
Bitmap.prototype.defaultInputIcons = function () {
return !ConfigManager.gamepadTips ? this._defaultInputIcons : 'gamepadBlack24';
return ConfigManager.gamepadTips ? this._defaultInputIcons : 'keyboardBlack24';
}
//=============================================================================
@ -130,7 +130,7 @@ Bitmap.prototype.drawKeyIcon = function (key, x, y, type = this.defaultInputIcon
//=============================================================================
// * Draw Input Icon
//=============================================================================
Bitmap.prototype.drawInputIcon = function (input, x, y, gamepad = false, type = this.defaultInputIcons(), side = 0) {
Bitmap.prototype.drawInputIcon = function (input, x, y, gamepad = true, type = this.defaultInputIcons(), side = 0) {
// Get Key Map
gamepad = ConfigManager.gamepadTips;
var map = gamepad ? Input.gamepadMapper : Input.keyMapper;