выгрузка в эксель, еще куски плагина отку да то
This commit is contained in:
@@ -3,25 +3,13 @@
|
||||
|
||||
#include "Onejsky4UGameModeBase.h"
|
||||
|
||||
#include "GenericPlatform/GenericWindow.h"
|
||||
#include "Engine/Engine.h"
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#include <Windows.h>
|
||||
#pragma comment(lib,"User32.lib")
|
||||
//#include "Winuser.h"
|
||||
|
||||
|
||||
void AOnejsky4UGameModeBase::BeginPlay() {
|
||||
UE_LOG(LogTemp, Warning, TEXT("Hello nigga"));
|
||||
// set the settings in the gesture configuration
|
||||
GESTURECONFIG gc[] = { 0,0,GC_ALLGESTURES };
|
||||
void* ParentWindowHandle = GEngine->GameViewport->GetWindow()->GetNativeWindow()->GetOSWindowHandle();
|
||||
/*HWND mywin;
|
||||
mywin = reinterpret_cast<HWND&>(ParentWindowHandle);
|
||||
//HWND mywin1 = *mywin;
|
||||
UINT uiGcs = 1;
|
||||
BOOL bResult = SetGestureConfig(mywin, 0, uiGcs, gc, sizeof(GESTURECONFIG));*/
|
||||
|
||||
void AOnejsky4UGameModeBase::CreateTxt(FString Path, FString FileName, FString text)
|
||||
{
|
||||
if (Path == "") {
|
||||
Path = FPaths::ProjectSavedDir();
|
||||
}
|
||||
FString fullpath(Path+FileName);
|
||||
FFileHelper::SaveStringToFile(text, *fullpath, FFileHelper::EEncodingOptions::ForceUTF8);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -4,10 +4,12 @@
|
||||
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "Misc/FileHelper.h"
|
||||
#include "GameFramework/GameModeBase.h"
|
||||
#include "Onejsky4UGameModeBase.generated.h"
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -16,10 +18,10 @@ class ONEJSKY4U_API AOnejsky4UGameModeBase : public AGameModeBase
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
protected:
|
||||
virtual void BeginPlay() override;
|
||||
|
||||
/*public:
|
||||
virtual void* GetOSWindowHandle() const;*/
|
||||
//void doit();
|
||||
};
|
||||
|
||||
public:
|
||||
UFUNCTION(BlueprintCallable, Category = "TextMaker")
|
||||
static void CreateTxt(FString Path, FString FileName, FString text);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user