editor: remove shared panel services bag

This commit is contained in:
2026-04-29 13:10:03 +08:00
parent a3a80dff8f
commit a8e1a2b097
18 changed files with 202 additions and 206 deletions

View File

@@ -9,6 +9,8 @@
namespace XCEngine::UI::Editor::App {
class EditorSceneRuntime;
class AddComponentPanel final : public EditorUtilityWindowPanel {
public:
std::string_view GetDrawListId() const override {
@@ -16,7 +18,7 @@ public:
}
void ResetInteractionState() override;
void Update(
EditorPanelServices& services,
EditorFrameServices& frameServices,
const EditorUtilityWindowHostContext& hostContext,
const std::vector<::XCEngine::UI::UIInputEvent>& inputEvents) override;
void Append(::XCEngine::UI::UIDrawList& drawList) const override;
@@ -32,7 +34,7 @@ private:
void ResetPanelState();
void RebuildEntries(const EditorSceneObjectSnapshot* gameObject);
bool TryActivateEntry(EditorPanelServices& services, std::size_t entryIndex);
bool TryActivateEntry(EditorSceneRuntime& sceneRuntime, std::size_t entryIndex);
std::size_t HitTestEntry(const ::XCEngine::UI::UIPoint& point) const;
bool m_visible = false;