Changeset - 95e1ae426eb3
[Not reviewed]
default
0 4 0
Jason Maltzen - 5 months ago 2023-12-07 05:55:08
jason@hiddenachievement.com
Add an info box when a detected clipped reaction could be extrapolated from a white shift.
4 files changed with 21 insertions and 3 deletions:
0 comments (0 inline, 0 general)
Models/ReactionTest.cs
Show inline comments
...
 
@@ -84,2 +84,13 @@ namespace DesertPaintCodex.Models
 

	
 
        private bool _whiteShift;
 
        public bool WhiteShift
 
        {
 
            get => _whiteShift;
 
            set
 
            {
 
                _whiteShift = value;
 
                NotifyPropertyChanged(nameof(WhiteShift));
 
            }
 
        }
 

	
 
        public bool IsAllCatalysts { get; }
...
 
@@ -154,3 +165,3 @@ namespace DesertPaintCodex.Models
 

	
 
        public ReactionTest(Reagent reagent1, Reagent reagent2, Reaction? reaction, ClipType clipType, bool isStub = false)
 
        public ReactionTest(Reagent reagent1, Reagent reagent2, Reaction? reaction, ClipType clipType, bool whiteShift, bool isStub = false)
 
        {
...
 
@@ -161,2 +172,3 @@ namespace DesertPaintCodex.Models
 
            Clipped = clipType;
 
            WhiteShift = whiteShift;
 
            Reaction = reaction;
...
 
@@ -255,2 +267,3 @@ namespace DesertPaintCodex.Models
 
                            }
 
                            WhiteShift = extrapolated;
 
                        }
Models/ReactionTestService.cs
Show inline comments
...
 
@@ -36,3 +36,3 @@ namespace DesertPaintCodex.Models
 
                    
 
                    ReactionTest test = new(reagent1, reagent2, reaction, clipType)
 
                    ReactionTest test = new(reagent1, reagent2, reaction, clipType, false)
 
                    {
Util/Constants.cs
Show inline comments
...
 
@@ -23,3 +23,3 @@ namespace DesertPaintCodex.Util
 
                        new Reagent("Falcons Bait", "FalconBait", 128, 240, 224, 1), 
 
                        null, ClipType.None, true);
 
                        null, ClipType.None, false, true);
 
                }
Views/ReactionTestView.axaml
Show inline comments
...
 
@@ -136,2 +136,7 @@
 

	
 
          <views:EmbeddedWarningBox Title="🛈 EXTRAPOLATED REACTION"
 
                                    IsVisible="{Binding ReactionTest.WhiteShift}"
 
                                    Message="One component of the reaction clipped, but a value could be extrapolated from the shift in the color components.">
 
          </views:EmbeddedWarningBox>
 

	
 
            <views:EmbeddedWarningBox Title="🛇 REACTION CLIPPED"
0 comments (0 inline, 0 general)