Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes to Flixel's Debug Pointer and Mover tools #2964

Merged
merged 5 commits into from
Nov 16, 2023

Conversation

Geokureli
Copy link
Member

@Geokureli Geokureli commented Nov 14, 2023

How the Debug Pointer Tool worked before this change:

  • Click to select all FlxSprites under mouse
  • Click, drag and release to select all FlxSprites touching the rect
  • Hold SHIFT to select MOVER tool, SHIFT+drag to move selected FlxSprites
  • CTRL/CONTROL(on Mac) + click to toggle selection of all FlxSprites under mouse. That is all objects previously selected will be deselected, and vice versa
  • CTRL/CONTROL(on Mac) + drag rect to toggle selection of all FlxSprites inside rect
  • Note that the tooltip for the Mover tool shows "Mover(Shift)" when hovered

How it works after this change

  • Note: The previous version only checked for FlxSprites, and can now select FlxObjects
  • Click to select top-most* FlxObject touching the mouse
  • Click, drag and release to select all FlxObject touching the rect
  • Hold CTRL/CMD to select MOVER tool, CTRL/CMD+drag to move selected FlxSprites
  • SHIFT + click to toggle the top-most* FlxObject from the current selection
  • SHIFT + click, drag and release to ADD all FlxObjects in the rect to the current selection
  • ALT/OPTION + click to toggle the top-most* FlxObject from the current selection (same as SHIFT + Click)
  • ALT/OPTION + click, drag and release to REMOVE all FlxObjects in the rect from the current selection
  • Note that the tooltip for the Mover tool shows "Mover(Ctrl)" when hovered when using a windows keyboard and "Mover(⌘)" when using a Mac keyboard

* The "top-most" object is the one who's draw function would be called last when the FlxState is drawn. this may not be the object rendered on top of all others, if sprites are drawn to different cameras. this may be fixed in the future but it's not a huge deal right now.

Notes: "Option" or "⌥" is the Mac keyboard equivalent to "Alt" and "Command", "Cmd" or "⌘" is the Mac keyboard equivalent to "Ctrl", not to be confused with Mac's "Control" or "⌃" key

@Geokureli Geokureli changed the title Debug tools Changes to Flixel's Debug Pointer and Mover tools Nov 14, 2023
@Geokureli Geokureli merged commit cc5eaa3 into HaxeFlixel:dev Nov 16, 2023
11 of 16 checks passed
Geokureli added a commit that referenced this pull request Nov 21, 2023
@Geokureli Geokureli added this to the 5.6.0 milestone Jan 4, 2024
@Geokureli Geokureli deleted the debug-tools branch January 5, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant