### Load TyranoScript with jQuery and Studio API Source: https://github.com/shikemokumk/tyranoscript/blob/master/index.html This snippet initializes jQuery for TyranoScript and sets up the `window.studio_api` object. It handles cases for packaged applications (Win, Mac) and preview environments, ensuring the `window.process` is correctly assigned. ```javascript try { window.jQuery = window.$ = require("./tyrano/libs/jquery-3.6.0.min.js"); } catch (e) {} try{ if(window.studio_api){ //Win Macなど パッケージング時 window.studio_api = window.studio_api; window.process = window.studio_api.ipcRenderer.sendSync("getProcess"); }else if (window.opener.window.studio_api) { //プレビューのとき window.studio_api = window.opener.window.studio_api; window.process = window.opener.window.studio_api.ipcRenderer.sendSync("getProcess"); } }catch(e){ } ``` -------------------------------- ### TyranoScript Templating Example Source: https://github.com/shikemokumk/tyranoscript/blob/master/tyrano/html/load.html Demonstrates TyranoScript's templating syntax for iterating through saved data, conditionally displaying images, and outputting text content. This is useful for creating dynamic menus or lists within TyranoScript projects. ```tyranoscript {{for array_save}} * {{if img_data != ""}} ![]({{>img_data}}) {{/if}} {{:save_date}} {{:title}} {{/for}} ``` -------------------------------- ### TyranoScript Core Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt Core information for TyranoScript, the visual novel creation tool. ```APIDOC TyranoScript: Copyright (c) 2012-2022 STRIKEWORKS / Shikemokumk URL: https://tyrano.jp ``` -------------------------------- ### Popopo Plugin Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A plugin for TyranoScript. ```APIDOC Popopo Plugin: URL: https://plugin.tyrano.jp/item/5032 License: MIT License Author: Ogihara ``` -------------------------------- ### animate.css Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A library of ready-to-use, cross-browser CSS animations for web projects. ```APIDOC animate.css: Version: 3.5.1 URL: https://daneden.me/animate License: MIT License (https://opensource.org/licenses/MIT) Copyright: (c) 2016 Daniel Eden ``` -------------------------------- ### jQuery Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A fast, small, and feature-rich JavaScript library. ```APIDOC jQuery: Version: v3.6.0 License: MIT License (jquery.org/license) Copyright: (c) JS Foundation and other contributors ``` -------------------------------- ### Remodal Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt Responsive, lightweight, fast modal window plugin with CSS animations. ```APIDOC Remodal: Version: 1.1.1 URL: https://vodkabears.github.io/remodal/ License: MIT License Author: Ilya Makarov ``` -------------------------------- ### howler.js Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A modern, HTML5 audio library for the web. ```APIDOC howler.js: Version: 2.2.3 URL: howlerjs.com License: MIT License Copyright: (c) 2013-2021, James Simpson of GoldFire Studios (goldfirestudios.com) ``` -------------------------------- ### textillate.js Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A simple CSS3 text animations lettering.js plugin. ```APIDOC textillate.js: URL: https://jschr.github.com/textillate License: MIT licensed Copyright: (C) 2012-2013 Jordan Schroter ``` -------------------------------- ### jQuery UI Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A curated set of user interface interactions, effects, animations, and themes implemented with jQuery. ```APIDOC jQuery UI: Version: v1.10.3 Date: 2013-05-03 URL: https://jqueryui.com License: MIT License Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.accordion.js, jquery.ui.autocomplete.js, jquery.ui.button.js, jquery.ui.datepicker.js, jquery.ui.dialog.js, jquery.ui.effect-blind.js, jquery.ui.effect-bounce.js, jquery.ui.effect-clip.js, jquery.ui.effect-drop.js, jquery.ui.effect-explode.js, jquery.ui.effect-fade.js, jquery.ui.effect-fold.js, jquery.ui.effect-highlight.js, jquery.ui.effect-pulsate.js, jquery.ui.effect-scale.js, jquery.ui.effect-shake.js, jquery.ui.effect-slide.js, jquery.ui.effect-transfer.js, jquery.ui.menu.js, jquery.ui.position.js, jquery.ui.progressbar.js, jquery.ui.slider.js, jquery.ui.spinner.js, jquery.ui.tabs.js, jquery.ui.tooltip.js Copyright: 2013 jQuery Foundation and other contributors ``` -------------------------------- ### JsRender Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A JavaScript templating engine for HTML and other formats. ```APIDOC JsRender: Version: 1.0.0-beta URL: https://github.com/BorisMoore/jsrender, https://jsviews.com/jsviews ``` -------------------------------- ### TouchSwipe Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A jQuery Plugin for touch swipe events. ```APIDOC TouchSwipe: Version: 1.6.18 Author: Matt Bryson (https://www.github.com/mattbryson) Project URL: https://github.com/mattbryson/TouchSwipe-Jquery-Plugin Demo URL: https://labs.rampinteractive.co.uk/touchSwipe/ Plugin URL: https://plugins.jquery.com/project/touchSwipe License: Dual licensed under the MIT or GPL Version 2 licenses. Copyright: (c) 2010-2015 Matt Bryson ``` -------------------------------- ### anime.js Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A lightweight JavaScript animation library. ```APIDOC anime.js: Version: 3.2.1 URL: animejs.com License: MIT License Copyright: (c) 2020 Julian Garnier ``` -------------------------------- ### jQuery A3D Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt A jQuery plugin to use CSS3 Keyframe Animation from JavaScript. ```APIDOC jQuery A3D: Version: v1.0 License: MIT License Copyright: 2012, ShikemokuMK Twitter: https://twitter.com/shikemokumk ``` -------------------------------- ### html2canvas Source: https://github.com/shikemokumk/tyranoscript/blob/master/LICENCE.txt Captures screenshots of web pages or parts of them as a canvas object. ```APIDOC html2canvas: Version: 1.4.1 URL: https://html2canvas.hertzen.com License: MIT License Copyright: (c) 2022 Niklas von Hertzen (https://hertzen.com) ``` -------------------------------- ### Image Hover Effect for Menu Items Source: https://github.com/shikemokumk/tyranoscript/blob/master/tyrano/html/save.html Applies a hover effect to menu item images, changing the source from '.png' to '.png2' on mouse enter and reverting on mouse leave. This enhances user interaction feedback. ```javascript $("#menu_save_wrapper .menu_item img").each((i, elm) => { const j_elm = $(elm); const original_src = j_elm.attr("src"); const hover_src = original_src.replace(".png", "2.png"); j_elm.hover( () => { j_elm.attr("src", hover_src); }, () => { j_elm.attr("src", original_src); } ); }); ``` -------------------------------- ### Image Hover Effect for Menu Items Source: https://github.com/shikemokumk/tyranoscript/blob/master/tyrano/html/backlog.html This JavaScript code snippet targets image elements within menu items. It applies a hover effect by changing the image source when the mouse enters and reverts it when the mouse leaves. It assumes a naming convention where hover images are named by appending '2' before the file extension. ```javascript $("#menu_backlog_wrapper .menu_item img").each((i, elm) => { const j_elm = $(elm); const original_src = j_elm.attr("src"); const hover_src = original_src.replace(".png", "2.png"); j_elm.hover( () => { j_elm.attr("src", hover_src); }, () => { j_elm.attr("src", original_src); }, ); }); ``` -------------------------------- ### Add Hover Effect to Menu Item Images Source: https://github.com/shikemokumk/tyranoscript/blob/master/tyrano/html/menu.html This JavaScript code snippet targets image elements within menu items in the TyranoScript interface. It attaches hover event listeners to swap the image source between a default state and a hover state (by appending '2' before the file extension). This provides visual feedback to the user when interacting with menu buttons. ```javascript /* * TyranoScript Image Hover Effect * Adds hover effects to menu item images. */ // Ensure the DOM is fully loaded before executing the script $(document).ready(function() { // Select all image elements within menu items $("#menu_menu_wrapper .menu_item img").each(function(i, elm) { const j_elm = $(elm); const original_src = j_elm.attr("src"); // Construct the hover source by replacing '.png' with '2.png' const hover_src = original_src.replace(".png", "2.png"); // Attach hover event handlers j_elm.hover( // Mouse enter: change src to hover_src function() { j_elm.attr("src", hover_src); }, // Mouse leave: revert src to original_src function() { j_elm.attr("src", original_src); } ); }); }); ``` -------------------------------- ### jQuery Image Hover Effect for TyranoScript Source: https://github.com/shikemokumk/tyranoscript/blob/master/tyrano/html/load.html Applies a hover effect to menu item images within TyranoScript. It targets images within a specific selector, finds a corresponding hover image (by replacing '.png' with '2.png'), and swaps the source on mouse enter and leave. ```javascript $("#menu_load_wrapper .menu_item img").each((i, elm) => { const j_elm = $(elm); const original_src = j_elm.attr("src"); const hover_src = original_src.replace(".png", "2.png"); j_elm.hover( () => { j_elm.attr("src", hover_src); }, () => { j_elm.attr("src", original_src); } ); }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.