- aurore54Membre
- Nombre de messages : 44
Distinction : aucune
Date d'inscription : 07/06/2016
aide sur ce pluding s'il vous plait
Ven 24 Juin 2016 - 9:45
- Spoiler:
- // ====================================================================================
// Script by ScienKunScript,
// RPG Make MV Plugin
// Version 1.2
// SKS TTS script.
// Free for all
// Facebook Page : https://www.facebook.com/scienkunscript/
// My english is very bad, sorry !
// ====================================================================================
// ========================== HOW TO USE THIS SCRIPT ==================================
// ====================================================================================
// SKS TiTleScreen : Easy to use, juste create 3 or 4 files "command" and add
// a number, number 1 for a newGame, number 2 to loadGame, number 3 for the options
// and number 4 for exit the game. The files will be in .PNG ! IT'S VERY IMPORTANT.
// Finally, files are like that : command1, command2, command3 and command4. For
// help, see on my facebook page ! https://www.facebook.com/scienkunscript/
// ====================================================================================
// =========================== COMMENT UTILISER CE SCRIPT =============================
// ====================================================================================
// SKS TiTleScreen : utilisation facile, vous avez juste à créer 3 ou 4 fichiers
// "command" et ajouter un numéro derrière, de cette façon : numéro 1 pour newGame,
// numéro 2 pour loadGame, numéro 3 pour options et numéro 4 pour quitter le jeu. Les
// fichiers sont en extension .PNG, c'est très IMPORTANT ! Finallement, vos fichiers
// ressembleront à ceux-ci : command1, command2, command3 et command4. Pour de l'aide,
// aller visiter ma page facebook : https://www.facebook.com/scienkunscript/
// ====================================================================================
/*:
*
* @plugindesc More fonctionnalities for the Scene_Title. Wave Design 1.1
*
* @author ScienKunScript
*
* @param PersonnalMenu
* @desc Change the style of the menu. (true for yes, false for no)
* @default true
*
* @param AddQuitOption
* @desc Add a quit option in the Scene_Menu. (true for yes, false for no)
* @default true
*
* @param XPOS
* @desc Change X position of the Personnal Menu Style
* @default 180
*
* @param YPOS
* @desc Change Y position of the Personnal Menu Style
* @default 50
*
*/
var params = PluginManager.parameters("SKS_TTS");
var personnal_menu_style = String(params["PersonnalMenu"] || "false");
var add_quitOption = String(params["AddQuitOption"] || "false");
var xposition_personnal_menu = Number(params["XPOS"] || 180);
var yposition_personnal_menu = Number(params["YPOS"] || 50);
if ((personnal_menu_style === "true" ) && (add_quitOption === "false")) {
var scene_title_create = Scene_Title.prototype.create;
Scene_Title.prototype.create = function() {
scene_title_create.call(this);
this.createSpriteButtons();
};
Scene_Title.prototype.createSpriteButtons = function () {
this._spriteButtons = new Sprite_Button();
this._spriteButtons.bitmap = ImageManager.loadSystem('command' + Number(this._commandWindow._index + 1));
this._spriteButtons.x = Graphics.width / 2 - xposition_personnal_menu;
this._spriteButtons.y = Graphics.height / 2 + yposition_personnal_menu;
this.addChild(this._spriteButtons);
}
Scene_Title.prototype.createCommandWindow = function () {
this._commandWindow = new Window_TitleCommand();
this._commandWindow.visible = false;
this._commandWindow.x = Graphics.boxWidth;
this._commandWindow.y = Graphics.boxHeight;
this._commandWindow.setHandler('newGame', this.commandNewGame.bind(this));
this._commandWindow.setHandler('continue', this.commandContinue.bind(this));
this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this.addWindow(this._commandWindow);
};
Scene_Title.prototype.update = function () {
Scene_Base.prototype.update.call(this);
if (!this.isBusy()) {
this._commandWindow.open();
}
this._spriteButtons.bitmap = ImageManager.loadSystem('command' + Number(this._commandWindow._index + 1));
switch (this._commandWindow._index) {
case 0:
this._spriteButtons.setClickHandler(this.commandNewGame.bind(this));
break;
case 1:
this._spriteButtons.setClickHandler(this.commandContinue.bind(this));
break;
case 2:
this._spriteButtons.setClickHandler(this.commandOptions.bind(this));
break;
}
}
}
if ((add_quitOption === "true") && (personnal_menu_style === "false" )) {
(function () {
Window_TitleCommand.prototype.makeCommandList = function () {
this.addCommand(TextManager.newGame, 'newGame');
this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled());
this.addCommand(TextManager.options, 'options');
this.addCommand("Quitter", 'quit');
};
Scene_Title.prototype.createCommandWindow = function () {
this._commandWindow = new Window_TitleCommand();
this._commandWindow.setHandler('newGame', this.commandNewGame.bind(this));
this._commandWindow.setHandler('continue', this.commandContinue.bind(this));
this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this._commandWindow.setHandler('quit', this.commandQuit.bind(this));
this.addWindow(this._commandWindow);
};
Scene_Title.prototype.commandQuit = function() {
SceneManager.exit();
}
})();
}
if ((personnal_menu_style === "true") && (add_quitOption === "true")) {
(function () {
Window_TitleCommand.prototype.makeCommandList = function () {
this.addCommand(TextManager.newGame, 'newGame');
this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled());
this.addCommand(TextManager.options, 'options');
this.addCommand("Quitter", 'quit');
};
Scene_Title.prototype.createCommandWindow = function () {
this._commandWindow = new Window_TitleCommand();
this._commandWindow = new Window_TitleCommand();
this._commandWindow.visible = false;
this._commandWindow.x = Graphics.boxWidth;
this._commandWindow.y = Graphics.boxHeight;
this._commandWindow.setHandler('newGame', this.commandNewGame.bind(this));
this._commandWindow.setHandler('continue', this.commandContinue.bind(this));
this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this._commandWindow.setHandler('quit', this.commandQuit.bind(this));
this.addWindow(this._commandWindow);
};
Scene_Title.prototype.commandQuit = function () {
SceneManager.exit();
}
})();
var scene_title_create = Scene_Title.prototype.create;
Scene_Title.prototype.create = function () {
scene_title_create.call(this);
this.createSpriteButtons();
};
Scene_Title.prototype.createSpriteButtons = function () {
this._spriteButtons = new Sprite_Button();
this._spriteButtons.bitmap = ImageManager.loadSystem('command' + Number(this._commandWindow._index + 1));
this._spriteButtons.x = Graphics.width / 2 - xposition_personnal_menu;
this._spriteButtons.y = Graphics.height / 2 + yposition_personnal_menu;
this.addChild(this._spriteButtons);
};
Scene_Title.prototype.update = function () {
Scene_Base.prototype.update.call(this);
if (!this.isBusy()) {
this._commandWindow.open();
}
this._spriteButtons.bitmap = ImageManager.loadSystem('command' + Number(this._commandWindow._index + 1));
switch (this._commandWindow._index) {
case 0:
this._spriteButtons.setClickHandler(this.commandNewGame.bind(this));
break;
case 1:
this._spriteButtons.setClickHandler(this.commandContinue.bind(this));
break;
case 2:
this._spriteButtons.setClickHandler(this.commandOptions.bind(this));
break;
case 3:
this._spriteButtons.setClickHandler(this.commandQuit.bind(this));
}
}
}
voila le problème ce scripte sert a faire un écran personnalisé mais je n'arrive pas a le metre en js
je les sur bloc note la question comment puis je faire pour le metre en js merci d'avance
Re: aide sur ce pluding s'il vous plait
Ven 24 Juin 2016 - 10:21
Salut,
C'est tout simple : le format du fichier changera en fonction de l'extension que tu lui donnes. L'extension ce sont les lettres qui se trouvent après le nom du fichier. example.doc est un fichier Word, example.js est un fichier JS.
Selon les réglages de ton PC il est fort possible que lorsque tu édites le nom l'extension soit masquée : c'est une protection Microsoft pour éviter que les utilisateurs changent l'extension par mégarde.
Tu peux régler l'affichage des extensions en faisant ceci : Panneau de configuration > Option des dossiers > Onglet affichage : cherche l'option Masquer les extensions des fichiers dont le type est connu. (Sous W7, je n'ai pas de W10 sous la main)
En gros: renomme le fichier et change le .txt en .js
C'est tout simple : le format du fichier changera en fonction de l'extension que tu lui donnes. L'extension ce sont les lettres qui se trouvent après le nom du fichier. example.doc est un fichier Word, example.js est un fichier JS.
Selon les réglages de ton PC il est fort possible que lorsque tu édites le nom l'extension soit masquée : c'est une protection Microsoft pour éviter que les utilisateurs changent l'extension par mégarde.
Tu peux régler l'affichage des extensions en faisant ceci : Panneau de configuration > Option des dossiers > Onglet affichage : cherche l'option Masquer les extensions des fichiers dont le type est connu. (Sous W7, je n'ai pas de W10 sous la main)
En gros: renomme le fichier et change le .txt en .js
- aurore54Membre
- Nombre de messages : 44
Distinction : aucune
Date d'inscription : 07/06/2016
Re: aide sur ce pluding s'il vous plait
Ven 24 Juin 2016 - 11:25
ok je te re merci ça a marche cool ...
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|