Skip to content

Conversation

x-Crown
Copy link

@x-Crown x-Crown commented Sep 25, 2025

mta-screen_2025-09-26_02-34-39 This PR introduces an additional hover highlight effect in the MTA:SA Editor. When the player hovers over an object in the map editor:

The object becomes semi-transparent.

A 3D animated bounding box is drawn around it with rainbow cycling colors (HSV → RGB).

The effect resets automatically when the cursor leaves the object

This PR introduces an additional hover highlight effect in the MTA:SA Editor.
When the player hovers over an object in the map editor:

The object becomes semi-transparent.

A 3D animated bounding box is drawn around it with rainbow cycling colors (HSV → RGB).

The effect resets automatically when the cursor leaves the object
@x-Crown x-Crown changed the title Update main.lua Map Editor: highlight cursor Sep 25, 2025
@omar-o22
Copy link
Contributor

In my opinion, I don't think this would be good to have enabled by default.
Maybe it could be added as an option in the settings, with the default set to false.

@Fernando-A-Rocha
Copy link
Contributor

The idea is cool. You should add a Map Editor setting to disable it.
Your code looks like it was generated by AI :-) Don't write unnecessary comments

@q8X
Copy link
Contributor

q8X commented Sep 27, 2025

it should use existing functions instead of creating a new one, this can be easily implemented through editor_main/client/main.lua, editor_main/client/gridlines.lua, also it's possible to support select/remove world object mode

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.

4 participants