mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 09:09:25 +01:00
Honor template and layout destinations, preserve the active layout mode, and update the template library after a successful write. Keep Log copy and selection, rotated fill feedback, and image-view restoration consistent with the visible session. Refresh lighting when an imported environment changes or disappears. Share image resampling by resolution, skip unused headless uploads, bound tile conversion batches, and avoid cloning trace scenes per row slice. Keep the new display and shortcut types in dedicated files.
20 lines
462 B
Rust
20 lines
462 B
Rust
/// Severity recorded when a session message is issued
|
|
#[derive(Clone, Copy, Debug, Default, PartialEq, Eq)]
|
|
pub enum LogLevel {
|
|
#[default]
|
|
Info,
|
|
Warning,
|
|
Error,
|
|
}
|
|
|
|
impl LogLevel {
|
|
/// The level as the upper-case tag of the exported log file
|
|
pub fn as_str(self) -> &'static str {
|
|
match self {
|
|
LogLevel::Info => "INFO",
|
|
LogLevel::Warning => "WARN",
|
|
LogLevel::Error => "ERROR",
|
|
}
|
|
}
|
|
}
|