diff --git a/config.json b/config.json index a5c176d..66a127e 100644 --- a/config.json +++ b/config.json @@ -88,7 +88,7 @@ "_help_left": "Lower `stddev` makes it prefer closer moves." }, "P+Tenuki": { - "pick_override": 0.90, + "pick_override": 0.9, "stddev": 7.5, "pick_n": 20, "pick_frac": 0.4, @@ -174,13 +174,13 @@ 0.67, 0.9, 0.18, - 1 + 0.0 ], [ 0.117, 0.588, 0, - 1 + 0.0 ] ], "line_color": [ diff --git a/gui/popups.py b/gui/popups.py index 0541e96..ccc0f9e 100644 --- a/gui/popups.py +++ b/gui/popups.py @@ -244,13 +244,13 @@ class ConfigTeacherPopup(QuickConfigGui): thrbox.add_widget(ScaledLightLabel(text="Point loss greater than", bold=True)) thrbox.add_widget(ScaledLightLabel(text="Gives this many undos", bold=True)) thrbox.add_widget(ScaledLightLabel(text="Color (fixed)", bold=True)) - thrbox.add_widget(ScaledLightLabel(text="Visibility (0=hidden)", bold=True)) + thrbox.add_widget(ScaledLightLabel(text="Show dots", bold=True)) for i, (thr, undos, color) in enumerate(zip(thresholds, undos, colors)): thrbox.add_widget(LabelledFloatInput(text=str(thr), input_property=f"eval_thresholds::{i}")) thrbox.add_widget(LabelledFloatInput(text=str(undos), input_property=f"num_undo_prompts::{i}")) thrbox.add_widget(BackgroundLabel(background=color[:3])) - thrbox.add_widget(LabelledFloatInput(text=str(color[3]), input_property=f"alpha::{i}")) + thrbox.add_widget(LabelledCheckBox(text=str(color[3]==1), input_property=f"alpha::{i}")) self.add_widget(thrbox) @@ -281,6 +281,7 @@ class ConfigTeacherPopup(QuickConfigGui): self.settings[k1][i] = v self.katrain.log(f"Updating setting {k1}[{i}] = {v}", OUTPUT_DEBUG) else: + v = 1.0 if v else 0.0 if self.ui_settings["eval_colors"][i][3] != v: self.katrain.log(f"Updating alpha {i} = {v}", OUTPUT_DEBUG) self.ui_settings["eval_colors"][i][3] = v