onMouseOver/ja

From RPTools Wiki
Revision as of 22:00, 16 February 2024 by Fourwoods (talk | contribs) (Created page with "{{Languages|onMouseOver}} '''• バージョン1.15.0より導入''' <div style="color:gray">This event is triggered whenever the cursor moves over a token on the token layer.</div> このイベントは、カーソルがトークンレイヤーにあるトークン上に移動する度に発生する。 <div style="color:gray">Returns a string list that contains {{code|token ID}}, {{code|X}}, {{code|Y}}, {{code|Shift Key Down State}}, {{code|Control Key Down State}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Languages:  English  • 日本語

• バージョン1.15.0より導入

This event is triggered whenever the cursor moves over a token on the token layer.

このイベントは、カーソルがトークンレイヤーにあるトークン上に移動する度に発生する。

Returns a string list that contains token ID, X, Y, Shift Key Down State, Control Key Down State

トークンIDXYシフトキー押下状態コントロールキー押下状態を含む文字列リストを返す。

準備

A special macro that can be created on library tokens to have macro code automatically execute when the cursor moves over OR off of a token on the token layer.

トークンレイヤーにあるトークン上にカーソルが移動したとき、或いは、トークンから離れたときに自動的に実行されるマクロコードを持つ、ライブラリートークン上に作成可能な特殊マクロだ。

This special macro is ideally suited for setting parameters specific to the token you have moved over.

この特殊マクロは、カーソルをかざしたトークンに固有のパラメーターを設定するのに理想的である。

When an onMouseOver macro is executed automatically, it is considered a Trusted Macro. If you wish to use trusted functions within onMouseOver and execute it manually (e.g. while developing macros), you will have to make sure that it follows all of the rules of Trusted Macros.

onMouseOver マクロが自動的に実行された場合、それは信頼済みマクロとみなされる。onMouseOver 内で信頼済み関数を使用し、手動で実行する事を望むのであれば(マクロの開発中など)、それが信頼済みマクロの規則に全て従わなければならない。

onMouseOver マクロの作り方

You can create an onMouseOver macro on any library token; simply create a macro that is specifically named onMouseOver.

任意のライブラリートークンonMouseOver マクロを作成できる; 単に固有のマクロ名称である onMouseOver を名付けてマクロを作成するだけだ。

The library token must have "Owner: All Players" unchecked, otherwise onMouseOver is not executed. To avoid permission issues with called functions, the onMouseOver macro should have "Options: Allow Players to Edit Macro" unchecked.

このライブラリートークンは『所有権:全プレイヤー』のチェックを外さなければならず、そうしなければ onMouseOver は実行されない。関数呼び出しに伴う権限の問題を避けるため、onMouseOver の『オプション:プレイヤーマクロ編集の許可』のチェックは外しておくべきだろう。

You can use macro.args to retrieve string list.

文字列リストを取り出すために macro.args を使用できる。