| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- // Copyright (c) 2014-2015, THUNDERBEAST GAMES LLC All rights reserved
- // Please see LICENSE.md in repository root for license information
- // https://github.com/AtomicGameEngine/AtomicGameEngine
- // BEGIN LICENSE MANAGEMENT
- #include "AtomicEditor.h"
- #include <TurboBadger/tb_window.h>
- #include <TurboBadger/tb_select.h>
- #include <TurboBadger/tb_editfield.h>
- #include <Atomic/Core/Context.h>
- #include <Atomic/UI/UI.h>
- #include "../Resources/AEResourceOps.h"
- #include "../AEPreferences.h"
- #include "../AEEditor.h"
- #include "../AEEvents.h"
- #include "../Project/AEProject.h"
- #include "../Project/ProjectUtils.h"
- #include "UIActivationSuccess.h"
- #include "AELicenseSystem.h"
- namespace AtomicEditor
- {
- // UIBuildSettings------------------------------------------------
- UIActivationSuccess::UIActivationSuccess(Context* context):
- UIModalOpWindow(context)
- {
- UI* tbui = GetSubsystem<UI>();
- window_->SetText("Product Activation Successful");
- tbui->LoadResourceFile(window_->GetContentRoot(), "AtomicEditor/editor/ui/activationsuccess.tb.txt");
- window_->ResizeToFitContent();
- Center();
- }
- UIActivationSuccess::~UIActivationSuccess()
- {
- }
- bool UIActivationSuccess::OnEvent(const TBWidgetEvent &ev)
- {
- UIModalOps* ops = GetSubsystem<UIModalOps>();
- if (ev.type == EVENT_TYPE_CLICK)
- {
- if (ev.target->GetID() == TBIDC("ok"))
- {
- /*
- LicenseSystem* licenseSystem = GetSubsystem<LicenseSystem>();
- if (licenseSystem->IsStarterLicense())
- {
- SharedPtr<UIActivationSuccess> keepAlive(this);
- UIModalOps* ops = GetSubsystem<UIModalOps>();
- ops->Hide();
- ops->ShowPlatformsInfo();
- return true;
- }
- */
- ops->Hide();
- return true;
- }
- }
- return false;
- }
- }
- // END LICENSE MANAGEMENT
|