diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2020-11-14 08:26:49 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2020-11-14 08:26:49 +0300 |
commit | 6d661821b522c6c8cc2c5b645693e8dd3dab76b4 (patch) | |
tree | ab5b947f47baf1a9c51bf84f6e365461c86d6215 /UVtools.Core/FileFormats/PhotonSFile.cs | |
parent | 3455f09c24daa26c12346a7e0cd451e6d947e8a7 (diff) |
v1.3.0v1.3.0
* (Add) Changelog description to the new version update dialog
* (Add) Tool - Infill: Proper configurable infills
* (Add) Pixel area as "px²" to the layer bounds and ROI at layer bottom information bar
* (Add) Pixel dimming: Alternate pattern every x layers
* (Add) Pixel dimming: Lattice infill
* (Add) Solidify: Required minimum/maximum area to solidify found areas (Default values will produce the old behaviour)
* (Add) Issues: Allow to hide and ignore selected issues
* (Add) Issue - Touch boundary: Allow to configure Left, Top, Right, Bottom margins in pixels, defaults to 5px (#94)
* (Add) UVJ: Allow convert to another formats (#96)
* (Add) Setters to some internal Core properties for more abstraction
* (Improvement) Issue - Touch boundary: Only check boundary pixels if layer bounds overlap the set margins, otherwise, it will not waste cycles on check individual rows of pixels when not need to
* (Change) Place .ctb extension show first than .cbddlp due more popular this days
* (Change) Pixel dimming: Text "Borders" to "Walls"
* (Change) Issues: Remove "Remove" text from button, keep only the icon to free up space
* (Change) Ungroup extensions on "covert to" menu (#97)
* (Fix) Issues: Detect button has a incorrect "save" icon
* (Fix) SL1: Increase NumSlow property limit
* (Fix) UVJ: not decoding nor showing preview images
* (Fix) "Convert to" menu shows same options than previous loaded file when current file dont support convertions (#96)
* (Fix) Hides "Convert to" menu when unable to convert to another format (#96)
* (Fix) Program crash when demo file is disabled and tries to load a file in
* (Fix) Rare crash on startup when mouse dont move in startup period and user types a key in meanwhile
* (Fix) On a slow startup on progress window it will show "Decoded layers" as default text, changed to "Initializing"
Diffstat (limited to 'UVtools.Core/FileFormats/PhotonSFile.cs')
-rw-r--r-- | UVtools.Core/FileFormats/PhotonSFile.cs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/UVtools.Core/FileFormats/PhotonSFile.cs b/UVtools.Core/FileFormats/PhotonSFile.cs index 1d092ef..f4a671a 100644 --- a/UVtools.Core/FileFormats/PhotonSFile.cs +++ b/UVtools.Core/FileFormats/PhotonSFile.cs @@ -162,7 +162,7 @@ namespace UVtools.Core.FileFormats public override FileFormatType FileType => FileFormatType.Binary; public override FileExtension[] FileExtensions { get; } = { - new FileExtension("photons", "Chitubox PhotonS Files"), + new FileExtension("photons", "Chitubox PhotonS"), }; public override Type[] ConvertToFormats { get; } = @@ -340,13 +340,17 @@ namespace UVtools.Core.FileFormats } } - public override float PrintTime => 0; - public override float UsedMaterial => (float) HeaderSettings.Volume; - - public override float MaterialCost => 0; + public override float UsedMaterial + { + get => (float) HeaderSettings.Volume; + set + { + HeaderSettings.Volume = Math.Round(value, 2); + RaisePropertyChanged(); + } + } - public override string MaterialName => "Unknown"; public override string MachineName => "Anycubic Photon S"; public override object[] Configs => new object[] { HeaderSettings }; |