chore: use the new asteroids name

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-09-16 04:47:03 +02:00
parent daec8ce722
commit 9422eec188
10 changed files with 58 additions and 77 deletions

View File

@@ -18,4 +18,4 @@ tokio = { workspace = true }
serde = { workspace = true }
stardust-xr-fusion = { workspace = true }
stardust-xr-molecules = { workspace = true }
asteroids = { workspace = true }
stardust-xr-asteroids = { workspace = true }

View File

@@ -1,16 +1,15 @@
use asteroids::elements::{
Grabbable, Lines, Model, ModelPart, PointerMode, Text, line_from_points,
};
use asteroids::{CustomElement, Element, Reify, Transformable};
use glam::{Quat, Vec3};
use mint::{Quaternion, Vector3};
use protostar::application::Application;
use protostar::xdg::{DesktopFile, Icon, IconType};
use serde::{Deserialize, Serialize};
use stardust_xr_fusion::drawable::{Line, LinePoint, TextBounds, TextFit};
use stardust_xr_asteroids::elements::{
Grabbable, Lines, Model, ModelPart, PointerMode, Text, line_from_points,
};
use stardust_xr_asteroids::{CustomElement, Element, Reify, Transformable};
use stardust_xr_fusion::drawable::{TextBounds, TextFit};
use stardust_xr_fusion::node::NodeError;
use stardust_xr_fusion::values::ResourceID;
use stardust_xr_fusion::values::color::rgba_linear;
use stardust_xr_fusion::{
drawable::{MaterialParameter, XAlign, YAlign},
fields::{CylinderShape, Shape},
@@ -153,8 +152,8 @@ impl Reify for App {
anchor_align_x: XAlign::Center,
anchor_align_y: YAlign::Bottom,
})
.text_align_x(XAlign::Center)
.text_align_y(YAlign::Bottom)
.align_x(XAlign::Center)
.align_y(YAlign::Bottom)
.pos([0.0, -APP_SIZE * 0.35, 0.002])
.build(),
),

View File

@@ -1,4 +1,4 @@
use asteroids::{CustomElement, ValidState};
use stardust_xr_asteroids::{CustomElement, ValidState};
use protostar::application::Application;
use stardust_xr_fusion::{
node::{NodeError, NodeType},
@@ -23,8 +23,8 @@ impl<State: ValidState> CustomElement<State> for AppLauncher<State> {
fn create_inner(
&self,
_asteroids_context: &asteroids::Context,
info: asteroids::CreateInnerInfo,
_asteroids_context: &stardust_xr_asteroids::Context,
info: stardust_xr_asteroids::CreateInnerInfo,
_resource: &mut Self::Resource,
) -> Result<Self::Inner, Self::Error> {
let spatial = Spatial::create(

View File

@@ -1,4 +1,4 @@
use asteroids::{ClientState, CustomElement, Element, Migrate, Reify, client, elements::Spatial};
use stardust_xr_asteroids::{ClientState, CustomElement, Element, Migrate, Reify, client, elements::Spatial};
use clap::Parser;
use protostar::xdg::DesktopFile;
use serde::{Deserialize, Serialize};