Compare commits
2 Commits
d8534a08eb
...
aa64bf4c7e
Author | SHA1 | Date |
---|---|---|
Savanni D'Gerinel | aa64bf4c7e | |
Savanni D'Gerinel | f75e0d4d65 |
|
@ -1,18 +0,0 @@
|
|||
use crate::ui::{home, library_view, HomeView, LibraryView};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use typeshare::typeshare;
|
||||
|
||||
#[typeshare]
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct LaunchScreenView {
|
||||
home: HomeView,
|
||||
library: LibraryView,
|
||||
}
|
||||
|
||||
// This will be called when the Kifu application starts.
|
||||
pub fn launch_screen_view() -> LaunchScreenView {
|
||||
LaunchScreenView {
|
||||
home: home(vec![].into_iter()),
|
||||
library: library_view(),
|
||||
}
|
||||
}
|
|
@ -1,10 +0,0 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
use typeshare::typeshare;
|
||||
|
||||
#[typeshare]
|
||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||
pub struct LibraryView;
|
||||
|
||||
pub fn library_view() -> LibraryView {
|
||||
LibraryView
|
||||
}
|
|
@ -4,12 +4,6 @@ pub use elements::{action::Action, game_preview::GamePreviewElement, menu::Menu}
|
|||
mod playing_field;
|
||||
pub use playing_field::{playing_field, PlayingFieldView};
|
||||
|
||||
mod launch_screen;
|
||||
pub use launch_screen::{launch_screen_view, LaunchScreenView};
|
||||
|
||||
mod library_view;
|
||||
pub use library_view::{library_view, LibraryView};
|
||||
|
||||
mod home;
|
||||
pub use home::{home, HomeView, HotseatPlayerElement, PlayerElement};
|
||||
|
||||
|
|
Loading…
Reference in New Issue