Compare commits

..

No commits in common. "aa64bf4c7e9f0847a37059ecb3bf3a2a798b07d3" and "d8534a08eb82522bc781a446644b28cbf4c32b9e" have entirely different histories.

3 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,18 @@
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(),
}
}

View File

@ -0,0 +1,10 @@
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
#[typeshare]
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct LibraryView;
pub fn library_view() -> LibraryView {
LibraryView
}

View File

@ -4,6 +4,12 @@ pub use elements::{action::Action, game_preview::GamePreviewElement, menu::Menu}
mod playing_field; mod playing_field;
pub use playing_field::{playing_field, PlayingFieldView}; 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; mod home;
pub use home::{home, HomeView, HotseatPlayerElement, PlayerElement}; pub use home::{home, HomeView, HotseatPlayerElement, PlayerElement};