Skip to content

Commit

Permalink
Merge pull request Astrabit-ST#154 from somedevfox/rew
Browse files Browse the repository at this point in the history
Unify user interface crates
  • Loading branch information
melody-rs authored Aug 22, 2024
2 parents 2165b80 + fc49395 commit 9a76303
Show file tree
Hide file tree
Showing 65 changed files with 915 additions and 1,200 deletions.
108 changes: 8 additions & 100 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,13 @@ js-sys = "0.3"
lexical-sort = "0.3.1"

luminol-audio = { version = "0.4.0", path = "crates/audio/" }
luminol-components = { version = "0.4.0", path = "crates/components/" }
luminol-config = { version = "0.4.0", path = "crates/config/" }
luminol-core = { version = "0.4.0", path = "crates/core/" }
luminol-data = { version = "0.4.0", path = "crates/data/" }
luminol-filesystem = { version = "0.4.0", path = "crates/filesystem/" }
luminol-graphics = { version = "0.4.0", path = "crates/graphics/" }
luminol-macros = { version = "0.4.0", path = "crates/macros/" }
luminol-proc-macros = { version = "0.4.0", path = "crates/proc-macros/" }
luminol-modals = { version = "0.4.0", path = "crates/modals/" }
luminol-term = { version = "0.4.0", path = "crates/term/" }
luminol-ui = { version = "0.4.0", path = "crates/ui/" }
luminol-result = { version = "0.4.0", path = "crates/result" }
Expand Down
55 changes: 0 additions & 55 deletions crates/components/Cargo.toml

This file was deleted.

36 changes: 0 additions & 36 deletions crates/modals/Cargo.toml

This file was deleted.

17 changes: 15 additions & 2 deletions crates/ui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ luminol-config.workspace = true
luminol-data.workspace = true
luminol-graphics.workspace = true
luminol-filesystem.workspace = true
luminol-components.workspace = true
luminol-modals.workspace = true
luminol-macros.workspace = true
luminol-egui-wgpu.workspace = true

egui.workspace = true
egui-modal.workspace = true
Expand Down Expand Up @@ -54,6 +53,8 @@ zip = { version = "0.6.6", default-features = false, features = ["deflate"] }
parking_lot.workspace = true
once_cell.workspace = true
qp-trie.workspace = true
indextree = "4.6.0"
lexical-sort.workspace = true

itertools.workspace = true

Expand All @@ -65,5 +66,17 @@ murmur3.workspace = true
indexmap = "2.2.6"
alox-48.workspace = true

fuzzy-matcher = "0.3.7"

glam.workspace = true

oneshot.workspace = true

image.workspace = true

syntect = { version = "5.1.0", default-features = false, features = [
"default-fancy",
] }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
luminol-term = { version = "0.4.0", path = "../term/" }
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// terms of the Steamworks API by Valve Corporation, the licensors of this
// Program grant you additional permission to convey the resulting work.

use crate::UiExt;
use super::UiExt;

/// A component that shows many copies of a layout and only allows one of them to be expanded at a
/// time.
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// terms of the Steamworks API by Valve Corporation, the licensors of this
// Program grant you additional permission to convey the resulting work.

use crate::UiExt;
use super::UiExt;
use itertools::Itertools;

pub struct DatabaseViewResponse<R> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// terms of the Steamworks API by Valve Corporation, the licensors of this
// Program grant you additional permission to convey the resulting work.

use crate::UiExt;
use super::UiExt;
use itertools::Itertools;

pub struct FileSystemView<T> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// terms of the Steamworks API by Valve Corporation, the licensors of this
// Program grant you additional permission to convey the resulting work.

use crate::UiExt;
use super::UiExt;
use itertools::Itertools;

#[derive(Default, Clone)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl MapView {
ui: &mut egui::Ui,
update_state: &luminol_core::UpdateState<'_>,
map: &luminol_data::rpg::Map,
tilepicker: &crate::Tilepicker,
tilepicker: &super::Tilepicker,
dragging_event: bool,
drawing_shape: bool,
drawing_shape_pos: Option<egui::Pos2>,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// terms of the Steamworks API by Valve Corporation, the licensors of this
// Program grant you additional permission to convey the resulting work.

use crate::UiExt;
use super::UiExt;

pub struct SoundTab {
/// The source for this tab.
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion crates/ui/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@
// it with Steamworks API by Valve Corporation, containing parts covered by
// terms of the Steamworks API by Valve Corporation, the licensors of this
// Program grant you additional permission to convey the resulting work.
#![cfg_attr(target_arch = "wasm32", allow(clippy::arc_with_non_send_sync))]

pub type UpdateState<'res> = luminol_core::UpdateState<'res>;

pub mod components;
pub mod modals;
pub mod tabs;

pub mod windows;

macro_rules! tab_enum {
Expand Down
Loading

0 comments on commit 9a76303

Please sign in to comment.