[Plugin] Baz Simple Mouse Cursor/Settings

This allows you to quickly setup a mouse cursor and have it interact with Game Objects (GO) and visual scripts (VS) from AGMaker.

agm.windows.editor.x86_64_YpxMP8wPlq

How to install:

  1. Download the plugin and unzip
  2. Take the addons folder and copy it into your project (if you already have an addons folder it will only add the needed folder and won’t overwrite anything)
  3. Add BindObjects node to the player and add the baz_mouse_cursor GO to it’s data

v1.1:
baz_mouse_settings_v1.1.zip (27.2 KB)
→ Buttons covered by another object now respond to hover and click again
→ Cursor now always draws above menus, UI, and screen shaders (CRT, blur, etc) so it stays crisp
→ Cursor now stays a constant on screen size regardless of camera zoom
→ Hidden objects (or ones with a hidden parent) are no longer picked up as hover targets
→ No more crashes when changing scenes/portals while dragging an object
→ Added Mouse Priority so when two interactive objects overlap, the higher priority wins (defaults to 0)
→ Fixed a loading bug from inconsistent folder path capitalization (also fixes export and Mac/Linux)

v1.0:
baz_mouse_settings.zip (22.9 KB)

Video showing steps:

How to make a GO pickable (meaning you click on it, can drag it around, and drop it):

  1. Go the desired GO scene
  2. Add a BazMouseSettings node
  3. Set the SwitchSettings to use
  4. Choose Pickable from the Mouse Action Type

Video showing steps:

How to make a GO clickable (meaning you click on it and can get a custom reaction through visual script):

  1. Go to Project → Project Settings → Input Map and create an input for the left mouse click
  2. Go the desired GO scene
  3. Create a switch that will turn on when clicked (for use in VS)
  4. Add a BazMouseSettings node
  5. Set the SwitchSettings node
  6. Make sure Clickable is selected from the Mouse Action Type
  7. Type in the name of the switch you created in #2

Video showing steps 2-7:

Now in the VS of the GO you can customize whatever reaction you want using both the input for left mouse click and switch as the condition:

How to customize cursor:

  1. Go to the baz_mouse_cursor.tscn
  2. Click on the AnimationPlayer
  3. Find the animations and their respective keyframes and change them out as you please

Video showing steps:

「いいね!」 1

v1.1に更新:
→ 他のオブジェクトに覆われていたボタンが、再びホバーとクリックに反応するようになりました
→ カーソルが常にメニュー、UI、画面シェーダー(CRT、ぼかしなど)の上に描画されるようになったため、鮮明な状態が保たれます
→ カメラのズームに関係なく、カーソルのサイズが画面サイズに対して一定に保たれるようになりました
→ 非表示のオブジェクト(または親が非表示のオブジェクト)は、ホバー対象として検出されなくなりました
→ オブジェクトをドラッグ中にシーンやポータルを変更しても、クラッシュしなくなりました
→ マウス優先度を追加しました。2つのインタラクティブなオブジェクトが重なっている場合、優先度が高い方が勝つようになります(デフォルトは0)
→ フォルダパスの大文字と小文字の不一致による読み込みバグを修正しました(エクスポートとMac/Linuxの問題も同時に修正)

「いいね!」 1