1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-03 16:55:53 +00:00
Commit Graph

2 Commits

Author SHA1 Message Date
Malcolm Anderson
a48353b1c6 Stop drawing of MarginContainer margins if not in tree
Use `is_visible_in_tree()` as per KoBeWi's suggestion
2025-11-13 16:35:13 -08:00
Malcolm Anderson
36c7bbb47a Visualize MarginContainer margins when selected
This time as an EditorPlugin!

Improve rendering of inner area of MarginContainer

Decrease thickness and opacity of lines, and render margins as a rectangle rather than lines extending to the edges of the bounding box

Apply suggestions from code review

Co-authored-by: Tomasz Chabora <kobewi4e@gmail.com>

Use `get_margin_size`, change color of viz border, and trigger redraw on MarginContainer's draw signal
2025-10-03 11:42:05 -07:00