This commit is contained in:
yuni 2024-04-14 21:52:18 +02:00
parent ac1d1d9bca
commit a2b348fc59
2 changed files with 6 additions and 6 deletions

View file

@ -682,7 +682,7 @@ fn spawn_entities(
actor.insert(PointLightBundle {
point_light: PointLight {
intensity: state.light_brightness,
color: color,
color,
range: 100.0,
radius: 100.0,
..default()

View file

@ -119,15 +119,15 @@ impl Log {
self.add(message, "".to_string(), LogLevel::Notice);
}
pub fn add(&mut self, message: String, sender: String, level: LogLevel) {
pub fn add(&mut self, text: String, sender: String, level: LogLevel) {
if self.logs.len() == LOG_MAX {
self.logs.pop_front();
}
if let Ok(epoch) = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH) {
self.logs.push_back(Message {
text: message,
sender: sender,
level: level,
text,
sender,
level,
time: epoch.as_secs(),
});
self.needs_rerendering = true;
@ -377,7 +377,7 @@ fn setup(
left: Val::Vw(50.0),
..default()
},
visibility: visibility,
visibility,
background_color: Color::rgb(0.4, 0.4, 0.6).into(),
..default()
},