マガジンのカバー画像

ティラノスクリプト記事まとめ

42
ティラノスクリプトの記事をまとめています。
運営しているクリエイター

2024年5月の記事一覧

【ティラノスクリプト】現在のラベル名を取得するサンプル

ティラノスクリプトで現在のラベル名を取得するサンプルです。 【first.ks】[iscript]sf.findCurrentLabel = function(index) { let currentLabel = null; const targets = TYRANO.kag.stat.map_label; $.each(targets, function(label, target) { if (index >= target.inde

【ティラノスクリプト】メッセージウィンドウの画像を縮小して表示するサンプル

今回は、2000×400のサイズの画像を1000×200のサイズに縮小して表示します。 【メッセージウィンドウの画像】2000×400のサイズの画像 【通常時】【縮小時】tyrano.css等に下記のコードを追記します。 .message_outer { background-size: contain;} 【参考】メッセージウィンドウの設定;メッセージウィンドウの設定[position layer="message0" left=160 top=500 width

【ティラノスクリプト】プレイヤーの名前を表示するテキストの色を指定するサンプル

*start[cm ][clearfix][start_keyconfig][bg storage="room.jpg" time="100"];メニューボタンの表示@showmenubutton;メッセージウィンドウの設定[position layer="message0" left=160 top=500 width=1000 height=200 page=fore visible=true];文字が表示される領域を調整[position layer=message0