|
- // Copyright Epic Games, Inc. All Rights Reserved.
- #pragma once
- #include "CoreMinimal.h"
- #include "Modules/ModuleManager.h"
- #include "Materials/MaterialExpressionMakeMaterialAttributes.h"
- class FToolBarBuilder;
- class FMenuBuilder;
- class FLigaPowerToolsModule : public IModuleInterface
- {
- public:
- /** IModuleInterface implementation */
- virtual void StartupModule() override;
- virtual void ShutdownModule() override;
-
- /** This function will be bound to Command (by default it will bring up plugin window) */
- void PluginButtonClicked();
- TSharedPtr<IDetailsView> ConfigPanel;
- FString InContent(const FString& RelativePath, const ANSICHAR* Extension);
- bool GetFloatByName(UObject* Target, FName VarName, float& outFloat);
- bool SetFloatByName(UObject* Target, FName VarName, float NewValue, float& outFloat);
- AActor* FFindActor(FString ActorName);
- UObject* DuplicateAsset(const FString& BaseAssetPath, const FString& BaseAssetName, UObject* ObjectToDuplicate);
- TArray<FString> TS;
- TArray<FString> TS_wind;
- void GetWeatherAccum();
- void GetWeatherWindDri();
- void SetTheFloatValue(float value);
- float GetStructAttr(UObject* ObjectWithVector, FName structname, FName prosFullName);
- float SetStructAttr(UObject* ObjectWithVector, FName structname, FName prosFullName, float NewValue);
- FVector SetVectorStructAttr(UObject* ObjectWithVector, FName structname, FName prosFullName, FVector NewValue);
- bool bIsFollow = true;
- void MyOnCheckStateChanged(ECheckBoxState emState);
- private:
- FReply addImage();
- FReply GetWindPower();
- FReply SpawnAObj();
- FReply AddmainObj();
- FReply SelMainObj();
- AActor* actorget;
- //AActor* weatherget;
- //AActor* rainget;
- //AActor* snowget;
- void AddWetherObj(TCHAR* objname,bool IsSel);
- void MyHandleOnValueChanged(float InValue);
- void RegisterMenus();
- void AddLigasEditorMenu(FMenuBarBuilder& MenuBarBuilder);
- void AddLigasMainMenuExtension(FMenuBuilder& MenuBuilder);
- TSharedPtr<FExtender> MainMenuExtender;
- TSharedRef<class SDockTab> OnSpawnPluginTab(const class FSpawnTabArgs& SpawnTabArgs);
- void OnFinishedChangingProperties(const FPropertyChangedEvent& PropertyChangedEvent);
- void str_replace(FString& SrcString, FString& sss, FString& srp);
- private:
- TSharedPtr<class FUICommandList> PluginCommands;
- FReply AddSnowGraph();
- FReply AddRainObj();
- FReply AddSnowObj();
- FReply AddHaliObj();
- FReply AddDustObj();
- FReply AddSandStormObj();
- FReply AddOcclusionObj();
- FExpressionInput* CheckTheMaterialAttr(EMaterialProperty index, UMaterialExpressionMakeMaterialAttributes* MMAttr);
-
- };
复制代码
|
|