mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Move font_ids! into mod.rs
Former-commit-id: 602ea44814a25c068e5c022cedc780e3ddc020ae
This commit is contained in:
parent
854271f321
commit
2309ce599c
@ -1,4 +1,4 @@
|
||||
use super::{font_ids::Fonts, img_ids::Imgs};
|
||||
use super::{img_ids::Imgs, Fonts};
|
||||
use conrod_core::{
|
||||
color,
|
||||
widget::{self, Button, Image, Rectangle, Scrollbar},
|
||||
|
@ -3,7 +3,7 @@ use conrod_core::{
|
||||
widget_ids, Colorable, Labelable, Positionable, Sizeable, Widget, WidgetCommon,
|
||||
};
|
||||
|
||||
use super::{font_ids::Fonts, img_ids::Imgs, small_window::SmallWindowType, Windows, TEXT_COLOR};
|
||||
use super::{img_ids::Imgs, small_window::SmallWindowType, Fonts, Windows, TEXT_COLOR};
|
||||
use crate::ui::ToggleButton;
|
||||
|
||||
widget_ids! {
|
||||
|
@ -1,4 +1,4 @@
|
||||
use super::{font_ids::Fonts, img_ids::Imgs, TEXT_COLOR, XP_COLOR};
|
||||
use super::{img_ids::Imgs, Fonts, TEXT_COLOR, XP_COLOR};
|
||||
use conrod_core::{
|
||||
color,
|
||||
widget::{self, Button, Image, Rectangle, Text},
|
||||
|
@ -1,4 +1,4 @@
|
||||
use super::{font_ids::Fonts, img_ids::Imgs, TEXT_COLOR};
|
||||
use super::{img_ids::Imgs, Fonts, TEXT_COLOR};
|
||||
use conrod_core::{
|
||||
input::Key,
|
||||
position::Dimension,
|
||||
|
@ -3,7 +3,7 @@ use conrod_core::{
|
||||
widget_ids, Labelable, Positionable, Sizeable, Widget, WidgetCommon,
|
||||
};
|
||||
|
||||
use super::{font_ids::Fonts, img_ids::Imgs, TEXT_COLOR};
|
||||
use super::{img_ids::Imgs, Fonts, TEXT_COLOR};
|
||||
|
||||
widget_ids! {
|
||||
struct Ids {
|
||||
|
@ -1,6 +0,0 @@
|
||||
font_ids! {
|
||||
pub struct Fonts {
|
||||
opensans: "/voxygen/font/OpenSans-Regular.ttf",
|
||||
metamorph: "/voxygen/font/Metamorphous-Regular.ttf",
|
||||
}
|
||||
}
|
@ -4,7 +4,7 @@ use conrod_core::{
|
||||
widget_ids, Positionable, Sizeable, Widget, WidgetCommon,
|
||||
};
|
||||
|
||||
use super::{font_ids::Fonts, img_ids::Imgs};
|
||||
use super::{img_ids::Imgs, Fonts};
|
||||
|
||||
widget_ids! {
|
||||
struct Ids {
|
||||
|
@ -4,7 +4,7 @@ use conrod_core::{
|
||||
widget_ids, Colorable, Positionable, Sizeable, Widget, WidgetCommon,
|
||||
};
|
||||
|
||||
use super::{font_ids::Fonts, img_ids::Imgs, Show, TEXT_COLOR};
|
||||
use super::{img_ids::Imgs, Fonts, Show, TEXT_COLOR};
|
||||
|
||||
widget_ids! {
|
||||
struct Ids {
|
||||
|
@ -3,7 +3,6 @@ mod buttons;
|
||||
mod character_window;
|
||||
mod chat;
|
||||
mod esc_menu;
|
||||
mod font_ids;
|
||||
mod img_ids;
|
||||
mod map;
|
||||
mod minimap;
|
||||
@ -16,7 +15,6 @@ use buttons::Buttons;
|
||||
use character_window::CharacterWindow;
|
||||
use chat::Chat;
|
||||
use esc_menu::EscMenu;
|
||||
use font_ids::Fonts;
|
||||
use img_ids::Imgs;
|
||||
use map::Map;
|
||||
use minimap::MiniMap;
|
||||
@ -83,6 +81,13 @@ widget_ids! {
|
||||
}
|
||||
}
|
||||
|
||||
font_ids! {
|
||||
pub struct Fonts {
|
||||
opensans: "/voxygen/font/OpenSans-Regular.ttf",
|
||||
metamorph: "/voxygen/font/Metamorphous-Regular.ttf",
|
||||
}
|
||||
}
|
||||
|
||||
pub enum Event {
|
||||
SendMessage(String),
|
||||
Logout,
|
||||
|
@ -1,4 +1,4 @@
|
||||
use super::{font_ids::Fonts, img_ids::Imgs, TEXT_COLOR};
|
||||
use super::{img_ids::Imgs, Fonts, TEXT_COLOR};
|
||||
use crate::{hud::Show, ui::ToggleButton};
|
||||
use conrod_core::{
|
||||
color,
|
||||
|
@ -1,4 +1,4 @@
|
||||
use super::{font_ids::Fonts, img_ids::Imgs, HP_COLOR, MANA_COLOR, TEXT_COLOR, XP_COLOR};
|
||||
use super::{img_ids::Imgs, Fonts, HP_COLOR, MANA_COLOR, TEXT_COLOR, XP_COLOR};
|
||||
use conrod_core::{
|
||||
widget::{self, Image, Rectangle, Text},
|
||||
widget_ids, Colorable, Positionable, Sizeable, Widget, WidgetCommon,
|
||||
|
@ -1,4 +1,4 @@
|
||||
use super::{font_ids::Fonts, img_ids::Imgs, Windows, TEXT_COLOR};
|
||||
use super::{img_ids::Imgs, Fonts, Windows, TEXT_COLOR};
|
||||
use crate::hud::Show;
|
||||
use conrod_core::{
|
||||
color,
|
||||
|
@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
render::Renderer,
|
||||
ui::{self, Graphic, ScaleMode, Ui,BlankGraphic, ImageGraphic, VoxelGraphic},
|
||||
ui::{self, BlankGraphic, Graphic, ImageGraphic, ScaleMode, Ui, VoxelGraphic},
|
||||
window::Window,
|
||||
};
|
||||
use common::{
|
||||
|
@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
render::Renderer,
|
||||
ui::{self, Graphic, ScaleMode, Ui, BlankGraphic, ImageGraphic, VoxelGraphic},
|
||||
ui::{self, BlankGraphic, Graphic, ImageGraphic, ScaleMode, Ui, VoxelGraphic},
|
||||
GlobalState, DEFAULT_PUBLIC_SERVER,
|
||||
};
|
||||
use common::assets;
|
||||
|
Loading…
Reference in New Issue
Block a user