diff --git a/program/MapWindow.cs b/program/MapWindow.cs index dc2f049..87b255c 100644 --- a/program/MapWindow.cs +++ b/program/MapWindow.cs @@ -115,6 +115,7 @@ [UI] private Label HeartWaveHeader = null; [UI] private Label BreathWaveHeader = null; [UI] private Button MapExplainButton = null; + [UI] private CheckButton HideMapCheck = null; private readonly Language _lang; // private readonly SoundLooper _sound = new SoundLooper(); @@ -171,7 +172,7 @@ private bool _keysHooked; private bool ShowBody { get { return _tShowBody == null || _tShowBody.Active; } } - private bool ShowMap { get { return _tShowMap == null || _tShowMap.Active; } } + private bool ShowMap { get { return (_tShowMap == null || _tShowMap.Active) && !(HideMapCheck != null && HideMapCheck.Active); } } private bool ShowCircles { get { return (_tShowCircles == null || _tShowCircles.Active) && !HideCircleCheck.Active; } } private bool ShowGuides { get { return _tGuides != null && _tGuides.Active; } } @@ -211,7 +212,7 @@ MapArea, MapTitleLabel, MapCaseLabel, MapBackButton, BodySkeletonRadio, BodyJacketRadio, JacketSizeCombo, JacketSizeLabel, ViewFrontRadio, ViewBackRadio, ViewRightRadio, ViewLeftRadio, - HideCircleCheck, BlackAudioCheck, SoundTestButton + HideCircleCheck, BlackAudioCheck, SoundTestButton, HideMapCheck }; foreach (var w in mapWidgets) if (w != null) w.StyleContext.AddClass("mappage"); @@ -238,6 +239,7 @@ SetName(HideCircleCheck, "HideCircleCheck"); SetName(BlackAudioCheck, "BlackAudioCheck"); SetName(SoundTestButton, "SoundTestButton"); + SetName(HideMapCheck, "HideMapCheck"); // Register() assigns Name itself and pulls the label from the CSVs. _lang.Register("MapBackButton", MapBackButton); @@ -260,6 +262,8 @@ HookView(ViewLeftRadio, "left"); HideCircleCheck.Toggled += (s, e) => MapArea.QueueDraw(); + if (HideMapCheck != null) + HideMapCheck.Toggled += (s, e) => MapArea.QueueDraw(); if (BlackAudioCheck != null) BlackAudioCheck.Toggled += (s, e) => { diff --git a/program/homepageallv8.glade b/program/homepageallv8.glade index 1883e97..9d904b7 100644 --- a/program/homepageallv8.glade +++ b/program/homepageallv8.glade @@ -726,6 +726,20 @@ + + 音量マップを隠す + True + True + False + True + + + False + True + 5 + + + 黒画素でも再生 True @@ -737,7 +751,7 @@ False True - 5 + 6 @@ -750,7 +764,7 @@ False True - 6 + 7 @@ -764,7 +778,7 @@ True True - 7 + 8