MV Need help with "Space" between Name

Hi guys I have huge problem with script.
I don't know how to set "Space" in my monster book, that animated arrow has a place to show full name.
All what I need is a space by every name and by ?????? characters.
I guessing where the possibility is, but I have no java script knowledge.
I include this 2 plugins, so you can see and help me with this:

Take a look:
Bez tytułu.png


And this 2 plugins:

First is an enemy book by Yoji Ojima:
Spoiler
//=============================================================================
// EnemyBook.js
//=============================================================================

/*:
* @plugindesc Displays detailed statuses of enemies.
* @Author Yoji Ojima
*
* @param Unknown Data
* @desc The index name for an unknown enemy.
* @Default ??????
*
* @Help
*
* Plugin Command:
* EnemyBook open # Open the enemy book screen
* EnemyBook add 3 # Add enemy #3 to the enemy book
* EnemyBook remove 4 # Remove enemy #4 from the enemy book
* EnemyBook complete # Complete the enemy book
* EnemyBook clear # Clear the enemy book
*
* Enemy Note:
* <desc1:foobar> # Description text in the enemy book, line 1
* <desc2:blahblah> # Description text in the enemy book, line 2
* <book:no> # This enemy does not appear in the enemy book
*/

/*:ja
* @plugindesc モンスター図鑑です。敵キャラの詳細なステータスを表示します。
* @Author Yoji Ojima
*
* @param Unknown Data
* @desc 未確認の敵キャラの索引名です。
* @Default ??????
*
* @Help
*
* プラグインコマンド:
* EnemyBook open # 図鑑画面を開く
* EnemyBook add 3 # 敵キャラ3番を図鑑に追加
* EnemyBook remove 4 # 敵キャラ4番を図鑑から削除
* EnemyBook complete # 図鑑を完成させる
* EnemyBook clear # 図鑑をクリアする
*
* 敵キャラのメモ:
* <desc1:なんとか> # 説明1行目
* <desc2:かんとか> # 説明2行目
* <book:no> # 図鑑に載せない場合
*/

(function() {

var parameters = PluginManager.parameters('EnemyBook');
var unknownData = String(parameters['Unknown Data'] || '??????');

var _Game_Interpreter_pluginCommand =
Game_Interpreter.prototype.pluginCommand;
Game_Interpreter.prototype.pluginCommand = function(command, args) {
_Game_Interpreter_pluginCommand.call(this, command, args);
if (command === 'EnemyBook') {
switch (args[0]) {
case 'open':
SceneManager.push(Scene_EnemyBook);
break;
case 'add':
$gameSystem.addToEnemyBook(Number(args[1]));
break;
case 'remove':
$gameSystem.removeFromEnemyBook(Number(args[1]));
break;
case 'complete':
$gameSystem.completeEnemyBook();
break;
case 'clear':
$gameSystem.clearEnemyBook();
break;
}
}
};

Game_System.prototype.addToEnemyBook = function(enemyId) {
if (!this._enemyBookFlags) {
this.clearEnemyBook();
}
this._enemyBookFlags[enemyId] = true;
};

Game_System.prototype.removeFromEnemyBook = function(enemyId) {
if (this._enemyBookFlags) {
this._enemyBookFlags[enemyId] = false;
}
};

Game_System.prototype.completeEnemyBook = function() {
this.clearEnemyBook();
for (var i = 1; i < $dataEnemies.length; i++) {
this._enemyBookFlags = true;
}
};

Game_System.prototype.clearEnemyBook = function() {
this._enemyBookFlags = [];
};

Game_System.prototype.isInEnemyBook = function(enemy) {
if (this._enemyBookFlags && enemy) {
return !!this._enemyBookFlags[enemy.id];
} else {
return false;
}
};

var _Game_Troop_setup = Game_Troop.prototype.setup;
Game_Troop.prototype.setup = function(troopId) {
_Game_Troop_setup.call(this, troopId);
this.members().forEach(function(enemy) {
if (enemy.isAppeared()) {
$gameSystem.addToEnemyBook(enemy.enemyId());
}
}, this);
};

var _Game_Enemy_appear = Game_Enemy.prototype.appear;
Game_Enemy.prototype.appear = function() {
_Game_Enemy_appear.call(this);
$gameSystem.addToEnemyBook(this._enemyId);
};

var _Game_Enemy_transform = Game_Enemy.prototype.transform;
Game_Enemy.prototype.transform = function(enemyId) {
_Game_Enemy_transform.call(this, enemyId);
$gameSystem.addToEnemyBook(enemyId);
};

function Scene_EnemyBook() {
this.initialize.apply(this, arguments);
}

Scene_EnemyBook.prototype = Object.create(Scene_MenuBase.prototype);
Scene_EnemyBook.prototype.constructor = Scene_EnemyBook;

Scene_EnemyBook.prototype.initialize = function() {
Scene_MenuBase.prototype.initialize.call(this);
};

Scene_EnemyBook.prototype.create = function() {
Scene_MenuBase.prototype.create.call(this);
this._indexWindow = new Window_EnemyBookIndex(0, 0);
this._indexWindow.setHandler('cancel', this.popScene.bind(this));
var wy = this._indexWindow.height;
var ww = Graphics.boxWidth;
var wh = Graphics.boxHeight - wy;
this._statusWindow = new Window_EnemyBookStatus(0, wy, ww, wh);
this.addWindow(this._indexWindow);
this.addWindow(this._statusWindow);
this._indexWindow.setStatusWindow(this._statusWindow);
};

function Window_EnemyBookIndex() {
this.initialize.apply(this, arguments);
}

Window_EnemyBookIndex.prototype = Object.create(Window_Selectable.prototype);
Window_EnemyBookIndex.prototype.constructor = Window_EnemyBookIndex;

Window_EnemyBookIndex.lastTopRow = 0;
Window_EnemyBookIndex.lastIndex = 0;

Window_EnemyBookIndex.prototype.initialize = function(x, y) {
var width = Graphics.boxWidth;
var height = this.fittingHeight(6);
Window_Selectable.prototype.initialize.call(this, x, y, width, height);
this.refresh();
this.setTopRow(Window_EnemyBookIndex.lastTopRow);
this.select(Window_EnemyBookIndex.lastIndex);
this.activate();
};

Window_EnemyBookIndex.prototype.maxCols = function() {
return 3;
};

Window_EnemyBookIndex.prototype.maxItems = function() {
return this._list ? this._list.length : 0;
};

Window_EnemyBookIndex.prototype.setStatusWindow = function(statusWindow) {
this._statusWindow = statusWindow;
this.updateStatus();
};

Window_EnemyBookIndex.prototype.update = function() {
Window_Selectable.prototype.update.call(this);
this.updateStatus();
};

Window_EnemyBookIndex.prototype.updateStatus = function() {
if (this._statusWindow) {
var enemy = this._list[this.index()];
this._statusWindow.setEnemy(enemy);
}
};

Window_EnemyBookIndex.prototype.refresh = function() {
this._list = [];
for (var i = 1; i < $dataEnemies.length; i++) {
var enemy = $dataEnemies;
if (enemy.name && enemy.meta.book !== 'no') {
this._list.push(enemy);
}
}
this.createContents();
this.drawAllItems();
};

Window_EnemyBookIndex.prototype.drawItem = function(index) {
var enemy = this._list[index];
var rect = this.itemRectForText(index);
var name;
if ($gameSystem.isInEnemyBook(enemy)) {
name = enemy.name;
} else {
name = unknownData;
}
this.drawText(name, rect.x, rect.y, rect.width);
};

Window_EnemyBookIndex.prototype.processCancel = function() {
Window_Selectable.prototype.processCancel.call(this);
Window_EnemyBookIndex.lastTopRow = this.topRow();
Window_EnemyBookIndex.lastIndex = this.index();
};

function Window_EnemyBookStatus() {
this.initialize.apply(this, arguments);
}

Window_EnemyBookStatus.prototype = Object.create(Window_Base.prototype);
Window_EnemyBookStatus.prototype.constructor = Window_EnemyBookStatus;

Window_EnemyBookStatus.prototype.initialize = function(x, y, width, height) {
Window_Base.prototype.initialize.call(this, x, y, width, height);
this._enemy = null;
this._enemySprite = new Sprite();
this._enemySprite.anchor.x = 0.5;
this._enemySprite.anchor.y = 0.5;
this._enemySprite.x = width / 2 - 20;
this._enemySprite.y = height / 2;
this.addChildToBack(this._enemySprite);
this.refresh();
};

Window_EnemyBookStatus.prototype.setEnemy = function(enemy) {
if (this._enemy !== enemy) {
this._enemy = enemy;
this.refresh();
}
};

Window_EnemyBookStatus.prototype.update = function() {
Window_Base.prototype.update.call(this);
if (this._enemySprite.bitmap) {
var bitmapHeight = this._enemySprite.bitmap.height;
var contentsHeight = this.contents.height;
var scale = 1;
if (bitmapHeight > contentsHeight) {
scale = contentsHeight / bitmapHeight;
}
this._enemySprite.scale.x = scale;
this._enemySprite.scale.y = scale;
}
};

Window_EnemyBookStatus.prototype.refresh = function() {
var enemy = this._enemy;
var x = 0;
var y = 0;
var lineHeight = this.lineHeight();

this.contents.clear();

if (!enemy || !$gameSystem.isInEnemyBook(enemy)) {
this._enemySprite.bitmap = null;
return;
}

var name = enemy.battlerName;
var hue = enemy.battlerHue;
var bitmap;
if ($gameSystem.isSideView()) {
bitmap = ImageManager.loadSvEnemy(name, hue);
} else {
bitmap = ImageManager.loadEnemy(name, hue);
}
this._enemySprite.bitmap = bitmap;

this.resetTextColor();
this.drawText(enemy.name, x, y);

x = this.textPadding();
y = lineHeight + this.textPadding();

for (var i = 0; i < 8; i++) {
this.changeTextColor(this.systemColor());
this.drawText(TextManager.param(i), x, y, 160);
this.resetTextColor();
this.drawText(enemy.params, x + 160, y, 60, 'right');
y += lineHeight;
}

var rewardsWidth = 280;
x = this.contents.width - rewardsWidth;
y = lineHeight + this.textPadding();

this.resetTextColor();
this.drawText(enemy.exp, x, y);
x += this.textWidth(enemy.exp) + 6;
this.changeTextColor(this.systemColor());
this.drawText(TextManager.expA, x, y);
x += this.textWidth(TextManager.expA + ' ');

this.resetTextColor();
this.drawText(enemy.gold, x, y);
x += this.textWidth(enemy.gold) + 6;
this.changeTextColor(this.systemColor());
this.drawText(TextManager.currencyUnit, x, y);

x = this.contents.width - rewardsWidth;
y += lineHeight;

for (var j = 0; j < enemy.dropItems.length; j++) {
var di = enemy.dropItems[j];
if (di.kind > 0) {
var item = Game_Enemy.prototype.itemObject(di.kind, di.dataId);
this.drawItemName(item, x, y, rewardsWidth);
y += lineHeight;
}
}

var descWidth = 480;
x = this.contents.width - descWidth;
y = this.textPadding() + lineHeight * 7;
this.drawTextEx(enemy.meta.desc1, x, y + lineHeight * 0, descWidth);
this.drawTextEx(enemy.meta.desc2, x, y + lineHeight * 1, descWidth);
};

})();


Galv's Animated Menu Cursor:
Spoiler
//-----------------------------------------------------------------------------
// Galv's Animated Menu Cursor
//-----------------------------------------------------------------------------
// For: RPGMAKER MV
// GALV_CursorImage.js
//-----------------------------------------------------------------------------
// 2019-03-13 - Version 1.8 - fixed issue with battle actor window no cursor
// 2017-04-02 - Version 1.7 - added ability to hide/unhide cursor
// 2016-08-10 - Version 1.6 - updated to work with MV version 1.3
// 2016-07-10 - Version 1.5 - hid cursor in yanfly battle status window
// 2016-06-13 - Version 1.4 - removed cursor in shop plugins item number box
// 2016-06-11 - Version 1.3 - fixed indent for default battle actor name
// - removed cursor from number input
// 2016-05-12 - Version 1.2 - cursor image added to 'dont exclude' file list
// 2016-04-11 - Version 1.1 - fixed display bug for initially inactive windows
// 2016-04-02 - Version 1.0 - release
//-----------------------------------------------------------------------------
// Terms can be found at:
// galvs-scripts.com
//-----------------------------------------------------------------------------

var Imported = Imported || {};
Imported.Galv_CursorImage = true;

var Galv = Galv || {}; // Galv's main object
Galv.pCmd = Galv.pCmd || {}; // Plugin Command manager
Galv.CI = Galv.CI || {}; // Galv's stuff

//-----------------------------------------------------------------------------
/*:
* @plugindesc (v.1.8) Display an animated image next to the selected menu command.
*
* @Author Galv - galvs-scripts.com
*
* @param Cursor Image
* @desc Image filename located in /img/system/ folder.
* @Default WindowCursor
* @require 1
* @dir img/system/
* @type file
*
* @param Image Frames
* @desc How many frames are in your cursor animation
* @Default 4
*
* @param Position Centered
* @desc true or false if Image cursor is centered vertically to the command or not.
* @Default true
*
* @param Position Offset
* @desc x,y - to reposition the cursor next to the active command in your menus
* @Default 0,0
*
* @param Animation Speed
* @desc Speed that the animation plays each frame. Lower numbers mean faster animation speed.
* @Default 6
*
* @param Command Indent
* @desc Indent commands in menus to make room for the cursor if required
* @Default 0
*
* @param Item Indent
* @desc Indent items and skills in menus to make room for the cursor if required
* @Default 0
*
* @param Start Hidden
* @desc Start the cursor hidden (invisible) on game load
* true or false
* @Default false
*
* @Help
* Galv's Animated Menu Cursor
* ----------------------------------------------------------------------------
* Make sure the cursor image is located in /img/system/ folder in your
* project and the plugin settings are setup as required.
*
* Any size image can be used as long as the width is divisible by the number
* of frames set in the "Image Frames" plugin setting.
*
* ----------------------------------------------------------------------------
* SCRIPT CALLS
* ----------------------------------------------------------------------------
*
* $gameSystem._cursorHidden = true; // hide cursor
* $gameSystem._cursorHidden = false; // show cursor
*/



//-----------------------------------------------------------------------------
// CODE STUFFS
//-----------------------------------------------------------------------------

(function() {

Galv.CI.initHidden = PluginManager.parameters('Galv_CursorImage')["Start Hidden"].toLowerCase() === 'true' ? true : false;

Galv.CI.image = PluginManager.parameters('Galv_CursorImage')["Cursor Image"];
Galv.CI.frames = Number(PluginManager.parameters('Galv_CursorImage')["Image Frames"]);
Galv.CI.animSpeed = Number(PluginManager.parameters('Galv_CursorImage')["Animation Speed"]);
Galv.CI.center = PluginManager.parameters('Galv_CursorImage')["Position Centered"].toLowerCase() == 'true' ? true : false;
Galv.CI.cIndent = Number(PluginManager.parameters('Galv_CursorImage')["Command Indent"]);
Galv.CI.iIndent = Number(PluginManager.parameters('Galv_CursorImage')["Item Indent"]);
var tmp = PluginManager.parameters('Galv_CursorImage')["Position Offset"].split(",");
Galv.CI.offset = {x: Number(tmp[0]), y: Number(tmp[1])};
tmp = null;

// Pre Cache
//-----------------------------------------------------------------------------

Galv.CI.Scene_Boot_loadSystemImages = Scene_Boot.loadSystemImages;
Scene_Boot.loadSystemImages = function() {
Galv.CI.Scene_Boot_loadSystemImages.call(this);
ImageManager.loadSystem(Galv.CI.image);
};


// Window Stuff
//-----------------------------------------------------------------------------

Galv.CI.Game_System_initialize = Game_System.prototype.initialize;
Game_System.prototype.initialize = function() {
Galv.CI.Game_System_initialize.call(this);
this._cursorHidden = Galv.CI.initHidden;
};


// Window Stuff
//-----------------------------------------------------------------------------

Galv.CI.Window_Selectable_initialize = Window_Selectable.prototype.initialize;
Window_Selectable.prototype.initialize = function(x, y, width, height) {
Galv.CI.Window_Selectable_initialize.call(this,x,y,width,height);
this.createGalvCursor();
};

Window_NumberInput.prototype.createGalvCursor = function() {
};

Window_ShopNumber.prototype.createGalvCursor = function() {
};

Window_BattleStatus.prototype.createGalvCursor = function() {
};



Galv.CI.Window_BattleStatus_drawActorName = Window_BattleStatus.prototype.drawActorName;
Window_BattleStatus.prototype.drawActorName = function(actor, x, y, width) {
x += Galv.CI.iIndent;
Galv.CI.Window_BattleStatus_drawActorName.call(this,actor,x,y,width);
};

Window_Selectable.prototype.createGalvCursor = function() {
this._galvCursor = new Sprite_GalvCursor(this);
this.addChild(this._galvCursor);
};

Window_BattleActor.prototype.createGalvCursor = Window_Selectable.prototype.createGalvCursor;

Galv.CI.Window_Command_textPadding = Window_Command.prototype.textPadding;
Window_Command.prototype.textPadding = function() {
return Galv.CI.Window_Command_textPadding.call(this) + Galv.CI.cIndent;
};

Galv.CI.Window_EquipSlot_drawText = Window_EquipSlot.prototype.drawText;
Window_EquipSlot.prototype.drawText = function(text, x, y, maxWidth, align) {
x += Galv.CI.iIndent;
Galv.CI.Window_EquipSlot_drawText.call(this,text,x,y,maxWidth,align);
};

Galv.CI.Window_Selectable_drawItemName = Window_Selectable.prototype.drawItemName;
Window_Selectable.prototype.drawItemName = function(item, x, y, width) {
x += Galv.CI.iIndent;
Galv.CI.Window_Selectable_drawItemName.call(this,item,x,y,width);
};

Galv.CI.Window_EquipSlot_drawIcon = Window_EquipSlot.prototype.drawIcon;
Window_EquipSlot.prototype.drawIcon = function(iconIndex, x, y) {
x += Galv.CI.iIndent;
Galv.CI.Window_EquipSlot_drawIcon.call(this,iconIndex, x, y);
};



// Sprite_GalvCursor
//-----------------------------------------------------------------------------

function Sprite_GalvCursor() {
this.initialize.apply(this, arguments);
}

Sprite_GalvCursor.prototype = Object.create(Sprite_Base.prototype);
Sprite_GalvCursor.prototype.constructor = Sprite_GalvCursor;

Sprite_GalvCursor.prototype.initialize = function(window) {
Sprite_Base.prototype.initialize.call(this);
this._window = window;
this.createImage();
this._ticker = 0;
this._pattern = 0;
this.updateFrame();
};

Sprite_GalvCursor.prototype.createImage = function() {
this.bitmap = ImageManager.loadSystem(Galv.CI.image);
this._frameWidth = this.bitmap.width / Galv.CI.frames;
this._frameHeight = this.bitmap.height;
this._maxPattern = Galv.CI.frames - 1;
this._tickSpeed = Galv.CI.animSpeed;
this.anchor.y = 0.5;
this.opacity = 0;
};

Sprite_GalvCursor.prototype.update = function() {
Sprite_Base.prototype.update.call(this);
if (this._window.isCursorVisible() && !$gameSystem._cursorHidden) {
this.opacity = this._window.openness >= 255 ? 255 : 0;
if (this._window.active) this.updateFrame();
this.updatePosition();
} else {
this.opacity = 0;
};
};

Sprite_GalvCursor.prototype.updateFrame = function() {
var pw = this._frameWidth;
var ph = this._frameHeight;
var sx = this._pattern * pw;
this.setFrame(sx, 0, pw, ph);

this._ticker += 1;
if (this._ticker >= this._tickSpeed) {
this._pattern = this._pattern == this._maxPattern ? 0 : this._pattern + 1;
this._ticker = 0;
};
};

Sprite_GalvCursor.prototype.updatePosition = function() {
var rect = this._window._cursorRect;
this.y = rect.y + Galv.CI.offset.y + this._window.standardPadding() + this.yPos(rect.height);
this.x = rect.x + Galv.CI.offset.x;
};


if (Galv.CI.center) {
Sprite_GalvCursor.prototype.yPos = function(height) {
return height / 2;
};
} else {
Sprite_GalvCursor.prototype.yPos = function(height) {
return 0;
};
};

})();
Hi there!

You can try to just add an offset value into the X coordinate of the draw text:

JavaScript:
Window_EnemyBookIndex.prototype.drawItem = function(index) {
var enemy = this._list[index];
var rect = this.itemRectForText(index);
var name;
if ($gameSystem.isInEnemyBook(enemy)) {
name = enemy.name;
} else {
name = unknownData;
}
var offsetX = 16 // Change this number to whatever you want.
this.drawText(name, rect.x + offsetX, rect.y, rect.width);
};
It worked perfect! Thank you VERY MUCH! 😍
Moved to: Plugin Support

Requests is when you don't have a plugin. Support is when you need help with a plugin you already have.

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-space-between-name.143017/