summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-13 14:48:33 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-13 14:48:33 +0200
commitce70c844d1512e713224ea1ad6fe1e86c012085b (patch)
tree1b9d6680eacf1157081f11b54769a647b09c1285
parent1bdda9a92255d7c333b2ee621179d178b355e11a (diff)
parent82600944bde132c6240a6c05840b18828848ce24 (diff)
Merge pull request #4649 from volzhs/issue-3653
Add SpinBox to Lossy Quality on Image Groups
-rw-r--r--tools/editor/project_export.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/editor/project_export.cpp b/tools/editor/project_export.cpp
index eff4d3da1b..adb15c1f00 100644
--- a/tools/editor/project_export.cpp
+++ b/tools/editor/project_export.cpp
@@ -1310,11 +1310,18 @@ ProjectExportDialog::ProjectExportDialog(EditorNode *p_editor) {
group_lossy_quality = memnew( HSlider );
group_lossy_quality->set_min(0.1);
group_lossy_quality->set_max(1.0);
- group_lossy_quality->set_step(0.1);
+ group_lossy_quality->set_step(0.01);
group_lossy_quality->set_val(0.7);
- group_options->add_margin_child(TTR("Lossy Quality:"),group_lossy_quality);
group_lossy_quality->connect("value_changed",this,"_quality_edited");
+ HBoxContainer *gqhb = memnew( HBoxContainer );
+ SpinBox *gqspin = memnew( SpinBox );
+ group_lossy_quality->share(gqspin);
+ group_lossy_quality->set_h_size_flags(SIZE_EXPAND_FILL);
+ gqhb->add_child(group_lossy_quality);
+ gqhb->add_child(gqspin);
+ group_options->add_margin_child(TTR("Lossy Quality:"),gqhb);
+
group_atlas = memnew(CheckButton);
group_atlas->set_pressed(true);
group_options->add_margin_child(TTR("Atlas:"),group_atlas);