going over Wraiths posts on the forum here[link text][1] and Im having some issues getting my game to compile now.
Rocket doesnt have a way to create slate.h and slate.cpp files from inside the editor, so being a new person to VS I right clicked->addNew and created both my header and cpp files.
the error Im getting is:
1>------ Build started: Project: SteamPunk, Configuration: Development_Editor x64 ------
1>EXEC : error : No PCH usage for file "C:\Game\SteamPunk\Source\SteamPunk\Resources\SteamySlateHUDWidget.cpp" . Missing #include header?
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.MakeFile.Targets(38,5): error MSB3073: The command ""C:\Program Files\Rocket\Engine\Binaries\DotNET\UnrealBuildTool.exe" SteamPunkEditor Win64 Development "C:\Game\SteamPunk\SteamPunk.uproject" -rocket" exited with code 1.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
and my code is :
// Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
#include "SteamPunk.h"
#include "SteamyHUD.h"
#include "SteamySlateHUDWidget.h"
void SteamySlateHUDWidget::Construct(const FArguments& InArgs)
{
OwnerHUD = InArgs._OwnerHUD;
ChildSlot
.VAlign(VAlign_Fill)
.HAlign(HAlign_Fill)
[
SNew(SOverlay)
+SOverlay::Slot()
.VAlign(VAlign_Top)
.HAlign(HAlign_Center)
[
SNew(STextBlock)
.ShadowColorAndOpacity(FLinearColor::Black)
.ColorAndOpacity(FLinearColor::White)
.ShadowOffset(FIntPoint(-1,1))
.Font(FSlateStyle::GetFontStyle("NormalFont"))
.Text(this, &SteamySlateHUDWidget::GetSomeString)
]
];
}
FString SteamySlateHUDWidget::GetSomeString() const
{
return FString(TEXT("Hello!"));
}
// Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Slate.h"
class SteamySlateHUDWidget : public SCompoundWidget
{
SLATE_BEGIN_ARGS(SteamySlateHUDWidget)
: _OwnerHUD()
{}
SLATE_ARGUMENT(TWeakObjectPtr, OwnerHUD)
SLATE_END_ARGS()
/** Needed for every widget */
void Construct(const FArguments& InArgs);
/** returns a string of information to display */
FString GetSomeString() const;
private:
/** Pointer to our parent HUD */
TWeakObjectPtr OwnerHUD;
};
any thoughts?