|
@@ -46,6 +46,8 @@ UIBuildSettings::UIBuildSettings(Context* context):
|
|
|
platformSelect_->SetSource(&platformSource_);
|
|
platformSelect_->SetSource(&platformSource_);
|
|
|
LayoutParams lp;
|
|
LayoutParams lp;
|
|
|
lp.min_h = 370;
|
|
lp.min_h = 370;
|
|
|
|
|
+ lp.max_h = 370;
|
|
|
|
|
+ lp.min_w = 160;
|
|
|
platformSelect_->SetLayoutParams(lp);
|
|
platformSelect_->SetLayoutParams(lp);
|
|
|
platformSelect_->SetGravity(WIDGET_GRAVITY_ALL);
|
|
platformSelect_->SetGravity(WIDGET_GRAVITY_ALL);
|
|
|
|
|
|
|
@@ -78,6 +80,8 @@ UIBuildSettings::UIBuildSettings(Context* context):
|
|
|
platformIndicator_ = delegate_->GetWidgetByIDAndType<TBSkinImage>(TBIDC("current_platform_indicator"));
|
|
platformIndicator_ = delegate_->GetWidgetByIDAndType<TBSkinImage>(TBIDC("current_platform_indicator"));
|
|
|
assert(platformIndicator_);
|
|
assert(platformIndicator_);
|
|
|
|
|
|
|
|
|
|
+ RefreshSettings();
|
|
|
|
|
+
|
|
|
Editor* editor = GetSubsystem<Editor>();
|
|
Editor* editor = GetSubsystem<Editor>();
|
|
|
AEEditorPlatform platform = editor->GetCurrentPlatform();
|
|
AEEditorPlatform platform = editor->GetCurrentPlatform();
|
|
|
UpdateCurrentPlatform(platform);
|
|
UpdateCurrentPlatform(platform);
|
|
@@ -238,6 +242,15 @@ void UIBuildSettings::RequestPlatformChange(TBID id)
|
|
|
editor->RequestPlatformChange(platform);
|
|
editor->RequestPlatformChange(platform);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void UIBuildSettings::RefreshSettings()
|
|
|
|
|
+{
|
|
|
|
|
+ androidSettings_->Refresh();
|
|
|
|
|
+ iosSettings_->Refresh();
|
|
|
|
|
+ macSettings_->Refresh();
|
|
|
|
|
+ windowsSettings_->Refresh();
|
|
|
|
|
+ webSettings_->Refresh();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
void UIBuildSettings::StoreSettings()
|
|
void UIBuildSettings::StoreSettings()
|
|
|
{
|
|
{
|
|
|
androidSettings_->StoreSettings();
|
|
androidSettings_->StoreSettings();
|
|
@@ -309,8 +322,15 @@ bool UIBuildSettings::OnEvent(const TBWidgetEvent &ev)
|
|
|
ops->Hide();
|
|
ops->Hide();
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (ev.target->GetID() == TBIDC("cancel"))
|
|
|
|
|
|
|
+ else if (ev.target->GetID() == TBIDC("build"))
|
|
|
|
|
+ {
|
|
|
|
|
+ StoreSettings();
|
|
|
|
|
+ SharedPtr<UIBuildSettings> keepAlive(this);
|
|
|
|
|
+ ops->Hide();
|
|
|
|
|
+ ops->ShowBuild();
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (ev.target->GetID() == TBIDC("cancel"))
|
|
|
{
|
|
{
|
|
|
ops->Hide();
|
|
ops->Hide();
|
|
|
return true;
|
|
return true;
|