Move font_ids! into mod.rs

Former-commit-id: 602ea44814a25c068e5c022cedc780e3ddc020ae
This commit is contained in:
timokoesters 2019-05-08 22:25:15 +02:00
parent 854271f321
commit 2309ce599c
14 changed files with 19 additions and 20 deletions

View File

@ -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},

View File

@ -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! {

View File

@ -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},

View File

@ -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,

View File

@ -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 {

View File

@ -1,6 +0,0 @@
font_ids! {
pub struct Fonts {
opensans: "/voxygen/font/OpenSans-Regular.ttf",
metamorph: "/voxygen/font/Metamorphous-Regular.ttf",
}
}

View File

@ -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 {

View File

@ -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 {

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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,

View File

@ -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::{

View File

@ -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;