fix Draw (redraw)
This commit is contained in:
@@ -146,12 +146,14 @@ impl<State> UiRsc for DefaultRsc<State> {
|
||||
&mut self.ui
|
||||
}
|
||||
|
||||
fn on_draw(&mut self, active: &ActiveData) {
|
||||
fn on_draw(&mut self, active: &ActiveData, redrawn: bool) {
|
||||
self.events.draw(active);
|
||||
self.widget_events.push(WidgetEvent {
|
||||
id: active.id,
|
||||
ty: WidgetEventType::Draw,
|
||||
});
|
||||
if !redrawn {
|
||||
self.widget_events.push(WidgetEvent {
|
||||
id: active.id,
|
||||
ty: WidgetEventType::Draw,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
fn on_undraw(&mut self, active: &ActiveData) {
|
||||
|
||||
Reference in New Issue
Block a user