mod Ventoy Menu Tip Plugin(Design ventoy ventoy 1.0.72) - Printable Version +- Ventoy Forums (https://forums.ventoy.net) +-- Forum: Ventoy Plugin —— Ventoy 插件 (https://forums.ventoy.net/forumdisplay.php?fid=3) +--- Forum: Ventoy Plugin Forum (https://forums.ventoy.net/forumdisplay.php?fid=4) +--- Thread: mod Ventoy Menu Tip Plugin(Design ventoy ventoy 1.0.72) (/showthread.php?tid=2029) |
mod Ventoy Menu Tip Plugin(Design ventoy ventoy 1.0.72) - AlexBryansk - 04-03-2022 In continuation of the topics: Backgrounds per backrest, Design ventoy mod_ventoy 1.0.70. I imagine the modified "Ventoy Menu Tip Plugin". Except for the general parameters for all "tip": left, top и color. Now you can set individual parameters for each hint: tipleft, tiptop и tipcolor. Now the hint message can contain up to 7 lines: "tip1"...."tip7". Пример: Code: "menu_tip": { The video of the example can be viewed at the link: My ventoy. You can download the modified files from the following links: ventoy-1.0.72-linux.tar.gz ventoy-1.0.72-windows.zip ventoy-1.0.72-livecd.iso RE: mod Ventoy Menu Tip Plugin(Design ventoy ventoy 1.0.72) - chymax3m - 05-27-2022 Hi, is it possible to share the modified files for the recent version of Ventoy, or it doesnt matter what version I use, just to put an array tip1, tip2,...? RE: mod Ventoy Menu Tip Plugin(Design ventoy ventoy 1.0.72) - AlexBryansk - 05-29-2022 Hints tip1...tip7 are used only in the version 1.0.72 modified by me. If you want, I can redo it for version 1.0.74, or wait for the next release to be released and redo it there. You can add any number of hints.There are a lot of modified files themselves. To take advantage of this change, you need to download the modified file. Or ask longpanda to make such changes in its code. Or try programming yourself. In order to learn how to change someone else's code yourself, you need to figure out how it works. For example, to change the number of hints: 1. Add to the ventoy_def.h file: const char *tip3; const char *tip4; const char *tip5; const char *tip6; const char *tip7; 2. 1. Add to the plugin.c: grub_snprintf(node->tip3, 254, "%s", tip); } tip = vtoy_json_get_string_ex(pNode->pstChild, "tip4"); if (tip) { grub_snprintf(node->tip4, 254, "%s", tip); } tip = vtoy_json_get_string_ex(pNode->pstChild, "tip5"); if (tip) { grub_snprintf(node->tip5, 254, "%s", tip); } tip = vtoy_json_get_string_ex(pNode->pstChild, "tip6"); if (tip) { grub_snprintf(node->tip6, 254, "%s", tip); } tip = vtoy_json_get_string_ex(pNode->pstChild, "tip7"); if (tip) { grub_snprintf(node->tip7, 254, "%s", tip); } 3. 1. Add to the ventoy_cmd.c: img->tip3 = tip->tip3; img->tip4 = tip->tip4; img->tip5 = tip->tip5; img->tip6 = tip->tip6; img->tip7 = tip->tip7; 4. And so on for about 7 files... Для chymax3m. Что-бы был русский язык в меню надо по-русски написать в плагине "menu_alias" файла "ventoy.json": "menu_alias": [ { "dir": "/ISO/Antivirus", "alias": "[антивирусники]" }, { "dir": "/ISO/sistem utilit", "alias": "[работа с HDD,ssd,flash...]" }, { "dir": "/ISO/multiboot", "alias": "[загрузчики]" }, .... Это всё касается любой версии ventoy оригинальной или мода. |