scenes
This commit is contained in:
parent
9120729d41
commit
6003cfde04
9 changed files with 29 additions and 184 deletions
|
@ -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" },
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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) =>
|
||||
|
|
|
@ -27,7 +27,7 @@ export const SkillScreen = observer(() => {
|
|||
return (
|
||||
<>
|
||||
<MainPage
|
||||
page={"Навыки"}
|
||||
page={"модели"}
|
||||
panelChildren={
|
||||
<div style={{ justifyContent: "center", display: "flex", padding: 10 }}>
|
||||
{skills.map((el) => (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue