This commit is contained in:
IDONTSUDO 2024-07-25 11:50:43 +03:00
parent 9120729d41
commit 6003cfde04
9 changed files with 29 additions and 184 deletions

View file

@ -64,7 +64,7 @@ export const MainPage = (props: IMainPageProps) => {
{ name: "Сборки", path: AssemblesScreenPath, icon: "Assembly" },
{ name: "Датасеты", path: DatasetsScreenPath, icon: "Datasets" },
{ name: "Сцена", path: SceneManagerPath, icon: "Scene" },
{ name: "Навыки", path: SkillScreenPath, icon: "Layers" },
{ name: "модели", path: SkillScreenPath, icon: "Layers" },
{ name: "Поведение", path: BehaviorTreeBuilderPath, icon: "Rocket" },
{ name: "Симуляция", path: SimulationScreenPath, icon: "Simulation" },
{ name: "Оценка", path: EstimateScreenPath, icon: "Grade" },

View file

@ -97,7 +97,7 @@ export const BehaviorTreeBuilderScreen = observer(() => {
>
<div>
<div style={{ height: 58, alignContent: "center" }}>
<CoreText text="Навыки" type={CoreTextType.medium} />
<CoreText text="модели" type={CoreTextType.medium} />
</div>
{store.skillTemplates ? <SkillTree skills={store.skillTree} dragEnd={store.dragEnd} /> : null}
</div>

View file

@ -193,14 +193,17 @@ export class SceneMangerStore extends UiDrawerFormState<SceneViewModel, HttpErro
hiddenMenu = () => (this.isSceneMenuShow = false);
init = async () => {};
init = async () => {
this.storeMode
.isEqualR(StoreMode.allScenes)
.map(() => this.mapOk("scenes", this.sceneHttpRepository.getAllScenes()));
};
initParam = (id: string | undefined) => {
if (id) {
this.activeSceneId = id;
this.storeMode = StoreMode.sceneInstance;
} else {
this.storeMode = StoreMode.allScenes;
this.mapOk("scenes", this.sceneHttpRepository.getAllScenes());
}
};
errorHandingStrategy = (error: HttpError) =>

View file

@ -27,7 +27,7 @@ export const SkillScreen = observer(() => {
return (
<>
<MainPage
page={"Навыки"}
page={"модели"}
panelChildren={
<div style={{ justifyContent: "center", display: "flex", padding: 10 }}>
{skills.map((el) => (