Skip to content

[DebugMod] Actor select via NPC Menu highlights them in world (and vice versa)#133

Merged
OrfeasZ merged 11 commits into
OrfeasZ:masterfrom
HRSoftware:dev
Jan 10, 2025
Merged

[DebugMod] Actor select via NPC Menu highlights them in world (and vice versa)#133
OrfeasZ merged 11 commits into
OrfeasZ:masterfrom
HRSoftware:dev

Conversation

@HRSoftware

Copy link
Copy Markdown
Contributor

NPC Menu and world are now in sync when the user selects a character via the NPC menu, or by selecting them in the world.

Other improvements:

  • Actor details filled out for the currently selected Actor/NPC
  • NPC search filter is now case-insensitive - makes for easier use
  • General refactor (whitespace, make less C-style, renamed variables, const things etc)
  • New "FindSubString" function that takes two strings, and returns a bool
  • Fixed crash when opening the Scene menu or the Props menu
  • Removed second call to EntityMenu.DrawUI
  • General refactor (whitespace, make less C-style, renamed variables, const things etc)

* NPC name filter works better
* Clicking on an NPC in the list, will show their bound boxes in the world
* Modernised some code (make it less C-like)
* Added nullptr checks
* New substring searching function that take a string
* Refactored code
* Better handling on int and chars
* Fixed crash when clicking Scene Menu
@Tosox

Tosox commented Nov 16, 2024

Copy link
Copy Markdown
Contributor

Hey, while you are already at editing the Debug mod, do you think you could also implement a fix for #117 in your PR? Someone already proposed some code changes there which look good to me: #117 (comment)

@HRSoftware

Copy link
Copy Markdown
Contributor Author

Hey, while you are already at editing the Debug mod, do you think you could also implement a fix for #117 in your PR? Someone already proposed some code changes there which look good to me: #117 (comment)

Yeah sure thing

* An selected entity will now be deslected if selected again
* Const some vars
* Made some function static

@OrfeasZ OrfeasZ left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple of minor notes. Otherwise looks good!

Comment thread Mods/DebugMod/Src/DebugMod.cpp Outdated
Comment thread Mods/DebugMod/Src/DebugMod.cpp
@Tosox

Tosox commented Nov 17, 2024

Copy link
Copy Markdown
Contributor

Hey, while you are already at editing the Debug mod, do you think you could also implement a fix for #117 in your PR? Someone already proposed some code changes there which look good to me: #117 (comment)

Yeah sure thing

Thanks :)

* Remove redundant exception handling
@HRSoftware HRSoftware changed the title Actor select via NPC Menu highlights them in world (and vice versa) [DebugMod] Actor select via NPC Menu highlights them in world (and vice versa) Nov 18, 2024
@HRSoftware
HRSoftware requested a review from OrfeasZ November 22, 2024 20:40
@OrfeasZ

OrfeasZ commented Jan 1, 2025

Copy link
Copy Markdown
Owner

@HRSoftware I see you've merged master into this. Is this ready to be merged back?

@HRSoftware

Copy link
Copy Markdown
Contributor Author

@HRSoftware I see you've merged master into this. Is this ready to be merged back?

Not yet - I need to remove some stray changes. Will update when I get round to doing that :)

* Whitespace
* Renamed variables
* const'd function
* Renamed var
* Changed var type
# Conflicts:
#	ZHMModSDK/Include/Glacier/ZActor.h
@HRSoftware

Copy link
Copy Markdown
Contributor Author

@OrfeasZ - I'm done for this PR (bar any additional changes you or others want) - good to re-review/approve :)

@OrfeasZ

OrfeasZ commented Jan 10, 2025

Copy link
Copy Markdown
Owner

LGTM!

@OrfeasZ
OrfeasZ merged commit 3877d52 into OrfeasZ:master Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants