|
|
@@ -27,14 +27,16 @@ namespace AtomicEditor
|
|
|
|
|
|
// UIBuildSettings------------------------------------------------
|
|
|
|
|
|
-InfoModule3D::InfoModule3D(Context* context):
|
|
|
+InfoModule3D::InfoModule3D(Context* context,const String &exampleFolder, const String &exampleScreenshot):
|
|
|
UIModalOpWindow(context)
|
|
|
+ , exampleFolder_(exampleFolder)
|
|
|
+ , exampleScreenshot_(exampleScreenshot)
|
|
|
{
|
|
|
Editor* editor = GetSubsystem<Editor>();
|
|
|
Project* project = editor->GetProject();
|
|
|
|
|
|
TBUI* tbui = GetSubsystem<TBUI>();
|
|
|
- window_->SetText("3D Module Required");
|
|
|
+ window_->SetText("Atomic Game Engine Pro Required");
|
|
|
|
|
|
tbui->LoadResourceFile(window_->GetContentRoot(), "AtomicEditor/editor/ui/infomodule3d.tb.txt");
|
|
|
|
|
|
@@ -54,7 +56,14 @@ bool InfoModule3D::OnEvent(const TBWidgetEvent &ev)
|
|
|
UIModalOps* ops = GetSubsystem<UIModalOps>();
|
|
|
if (ev.target->GetID() == TBIDC("ok"))
|
|
|
{
|
|
|
+ SharedPtr<InfoModule3D> keepAlive(this);
|
|
|
ops->Hide();
|
|
|
+
|
|
|
+ if (exampleFolder_.Length())
|
|
|
+ {
|
|
|
+ ops->ShowCreateProject(exampleFolder_, exampleScreenshot_);
|
|
|
+ }
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
if (ev.target->GetID() == TBIDC("purchase"))
|
|
|
@@ -62,13 +71,12 @@ bool InfoModule3D::OnEvent(const TBWidgetEvent &ev)
|
|
|
|
|
|
//Editor* editor = GetSubsystem<Editor>();
|
|
|
FileSystem* fs = GetSubsystem<FileSystem>();
|
|
|
- fs->SystemOpen("https://store.atomicgameengine.com/store/store.php");
|
|
|
+ fs->SystemOpen("https://store.atomicgameengine.com/site");
|
|
|
ops->Hide();
|
|
|
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
}
|
|
|
|
|
|
return false;
|