mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Add 'UpdateArgs import to 'buttons' file
This commit is contained in:
parent
323e3166f5
commit
e62d903041
@ -12,7 +12,7 @@ use crate::{
|
|||||||
use client::Client;
|
use client::Client;
|
||||||
use common::comp::{SkillSet, Stats};
|
use common::comp::{SkillSet, Stats};
|
||||||
use conrod_core::{
|
use conrod_core::{
|
||||||
widget::{self, Button, Image, Text},
|
widget::{self, Button, Image, Text, UpdateArgs},
|
||||||
widget_ids, Color, Colorable, Positionable, Sizeable, UiCell, Widget, WidgetCommon,
|
widget_ids, Color, Colorable, Positionable, Sizeable, UiCell, Widget, WidgetCommon,
|
||||||
};
|
};
|
||||||
use i18n::Localization;
|
use i18n::Localization;
|
||||||
@ -124,9 +124,9 @@ impl<'a> Widget for Buttons<'a> {
|
|||||||
|
|
||||||
fn style(&self) -> Self::Style {}
|
fn style(&self) -> Self::Style {}
|
||||||
|
|
||||||
fn update(self, args: widget::UpdateArgs<Self>) -> Self::Event {
|
fn update(self, args: UpdateArgs<Self>) -> Self::Event {
|
||||||
common_base::prof_span!("Buttons::update");
|
common_base::prof_span!("Buttons::update");
|
||||||
let widget::UpdateArgs { state, ui, .. } = args;
|
let UpdateArgs { state, ui, .. } = args;
|
||||||
let localized_strings = self.localized_strings;
|
let localized_strings = self.localized_strings;
|
||||||
|
|
||||||
let button_tooltip = Tooltip::new({
|
let button_tooltip = Tooltip::new({
|
||||||
|
Loading…
Reference in New Issue
Block a user