Add new methods declarations
This commit is contained in:
@@ -46,13 +46,19 @@ SDK::APawn* GetPawnFromWorld(SDK::UWorld* world = nullptr);
|
||||
*/
|
||||
void ReactivateDevConsole(std::shared_ptr<spdlog::logger> logger);
|
||||
|
||||
void ApplyOffsetsSmart(SDK::UWidget* Widget, float Left, float Right, int MaxDepth);
|
||||
|
||||
/**
|
||||
* @brief Apply offsets recursively to UVCanvasPanelSlot.
|
||||
* @param widget UUserWidget* pointer.
|
||||
* @param left offset.
|
||||
* @param right offset.
|
||||
* @param ExcludeObjects excluded objects in depth check
|
||||
* @param ExcludeClass excluded class widgets in depth check
|
||||
*/
|
||||
void ApplyOffsetsRecursive(SDK::UWidget* widget, float left, float right = 0, int MaxDepth = INT_MAX);
|
||||
void ApplyOffsetsRecursive(SDK::UWidget* widget, float left, float right = 0,
|
||||
const std::vector<SDK::UObject*>& ExcludeObjects = {},
|
||||
const std::vector<std::string>& ExcludeClass = {}, int MaxDepth = INT_MAX);
|
||||
|
||||
/**
|
||||
* @brief Apply offsets recursively to Overlay.
|
||||
@@ -62,7 +68,7 @@ void ApplyOffsetsRecursive(SDK::UWidget* widget, float left, float right = 0, in
|
||||
* @param ExcludeNames excluded class widgets in depth check
|
||||
* @param MaxDepth Max depth to go through root component
|
||||
*/
|
||||
void ApplyOverlayOffsetRecursive(SDK::UWidget* Widget, float Offset, SDK::EHorizontalAlignment alignment,
|
||||
void ApplyOverlayOffsetRecursive(SDK::UWidget* Widget, float left, float right, SDK::EHorizontalAlignment alignment,
|
||||
const std::vector<std::string>& ExcludeNames = {}, int MaxDepth = INT_MAX);
|
||||
|
||||
void FindAndApplyCanvasRecursive(SDK::UWidget* widget, float offset, int MaxDepth = INT_MAX, int currentDepth = 0);
|
||||
@@ -84,4 +90,16 @@ void TrackWidgetDestruct(SDK::UUserWidget* widget);
|
||||
* @param logger the log object.
|
||||
*/
|
||||
void DumpUIAnalysis(std::shared_ptr<spdlog::logger> logger);
|
||||
void ClearWidgetTracking();
|
||||
|
||||
/**
|
||||
* @brief Clear previously tracked widgets
|
||||
*/
|
||||
void ClearWidgetTracking();
|
||||
|
||||
/**
|
||||
* @brief Dump all widgets
|
||||
* @param Widget a UWidget instance to browse
|
||||
* @param Depth the depth to start from
|
||||
* @param MaxDepth the maximal depth to reach
|
||||
*/
|
||||
void DumpWidgetRecursive(SDK::UWidget* Widget, int Depth = 0, int MaxDepth = 2);
|
||||
Reference in New Issue
Block a user