Compare commits
2 Commits
master
...
Alpha0.1.5
Author | SHA1 | Date | |
---|---|---|---|
396b128a2c | |||
298688269c |
@ -9,7 +9,7 @@ import { ContactAssimilate } from "@Behavior/ContactAssimilate";
|
|||||||
import { DelayAssimilate } from "@Behavior/DelayAssimilate";
|
import { DelayAssimilate } from "@Behavior/DelayAssimilate";
|
||||||
|
|
||||||
const AllBehaviors: IAnyBehaviorRecorder[] = [
|
const AllBehaviors: IAnyBehaviorRecorder[] = [
|
||||||
new BehaviorRecorder(Template),
|
// new BehaviorRecorder(Template),
|
||||||
new BehaviorRecorder(PhysicsDynamics),
|
new BehaviorRecorder(PhysicsDynamics),
|
||||||
new BehaviorRecorder(Brownian),
|
new BehaviorRecorder(Brownian),
|
||||||
new BehaviorRecorder(BoundaryConstraint),
|
new BehaviorRecorder(BoundaryConstraint),
|
||||||
|
@ -99,7 +99,7 @@ class CommandBar extends Component<IMixinSettingProps & IMixinStatusProps, IComm
|
|||||||
})}
|
})}
|
||||||
|
|
||||||
{getRenderButton({
|
{getRenderButton({
|
||||||
iconName: "WebAppBuilderFragmentCreate",
|
iconName: "WebAppBuilderFragment",
|
||||||
i18NKey: "Command.Bar.Add.Group.Info",
|
i18NKey: "Command.Bar.Add.Group.Info",
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.status ? this.props.status.newGroup() : undefined;
|
this.props.status ? this.props.status.newGroup() : undefined;
|
||||||
@ -107,7 +107,7 @@ class CommandBar extends Component<IMixinSettingProps & IMixinStatusProps, IComm
|
|||||||
})}
|
})}
|
||||||
|
|
||||||
{getRenderButton({
|
{getRenderButton({
|
||||||
iconName: "ProductVariant",
|
iconName: "CubeShape",
|
||||||
i18NKey: "Command.Bar.Add.Range.Info",
|
i18NKey: "Command.Bar.Add.Range.Info",
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.status ? this.props.status.newRange() : undefined;
|
this.props.status ? this.props.status.newRange() : undefined;
|
||||||
@ -130,16 +130,16 @@ class CommandBar extends Component<IMixinSettingProps & IMixinStatusProps, IComm
|
|||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
|
|
||||||
{getRenderButton({ iconName: "Camera", i18NKey: "Command.Bar.Camera.Info" })}
|
{/* {getRenderButton({ iconName: "Camera", i18NKey: "Command.Bar.Camera.Info" })} */}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{getRenderButton({
|
{/* {getRenderButton({
|
||||||
iconName: "Settings",
|
iconName: "Settings",
|
||||||
i18NKey: "Command.Bar.Setting.Info",
|
i18NKey: "Command.Bar.Setting.Info",
|
||||||
click: () => {
|
click: () => {
|
||||||
this.props.status?.popup.showPopup(SettingPopup, {});
|
this.props.status?.popup.showPopup(SettingPopup, {});
|
||||||
}
|
}
|
||||||
})}
|
})} */}
|
||||||
</div>
|
</div>
|
||||||
</Theme>
|
</Theme>
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ class Setting extends Emitter<ISettingEvents> {
|
|||||||
/**
|
/**
|
||||||
* 语言
|
* 语言
|
||||||
*/
|
*/
|
||||||
public language: Language = "EN_US";
|
public language: Language = "ZH_CN";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 布局
|
* 布局
|
||||||
|
@ -19,7 +19,7 @@ class Actuator extends Emitter<IActuatorEvent> {
|
|||||||
/**
|
/**
|
||||||
* 模拟帧率
|
* 模拟帧率
|
||||||
*/
|
*/
|
||||||
public fps: number = 36;
|
public fps: number = 42;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 仿真是否进行
|
* 仿真是否进行
|
||||||
|
@ -13,6 +13,7 @@ import { HeaderBar } from "@Component/HeaderBar/HeaderBar";
|
|||||||
import { Popup } from "@Component/Popup/Popup";
|
import { Popup } from "@Component/Popup/Popup";
|
||||||
import { Entry } from "../Entry/Entry";
|
import { Entry } from "../Entry/Entry";
|
||||||
import { Group } from "@Model/Group";
|
import { Group } from "@Model/Group";
|
||||||
|
import DEMO from "../demo";
|
||||||
import "./SimulatorDesktop.scss";
|
import "./SimulatorDesktop.scss";
|
||||||
|
|
||||||
initializeIcons("./font-icon/");
|
initializeIcons("./font-icon/");
|
||||||
@ -55,6 +56,10 @@ class SimulatorDesktop extends Component {
|
|||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.status.archive.load(this.status.model, DEMO);
|
||||||
|
}, 200);
|
||||||
|
|
||||||
(window as any).LT = {
|
(window as any).LT = {
|
||||||
status: this.status,
|
status: this.status,
|
||||||
setting: this.setting
|
setting: this.setting
|
||||||
|
@ -13,6 +13,7 @@ import { HeaderBar } from "@Component/HeaderBar/HeaderBar";
|
|||||||
import { Popup } from "@Component/Popup/Popup";
|
import { Popup } from "@Component/Popup/Popup";
|
||||||
import { Entry } from "../Entry/Entry";
|
import { Entry } from "../Entry/Entry";
|
||||||
import { Group } from "@Model/Group";
|
import { Group } from "@Model/Group";
|
||||||
|
import DEMO from "../demo";
|
||||||
import "./SimulatorWeb.scss";
|
import "./SimulatorWeb.scss";
|
||||||
|
|
||||||
initializeIcons("https://img.mrkbear.com/fabric-cdn-prod_20210407.001/");
|
initializeIcons("https://img.mrkbear.com/fabric-cdn-prod_20210407.001/");
|
||||||
@ -154,6 +155,10 @@ class SimulatorWeb extends Component {
|
|||||||
}, 200)
|
}, 200)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
this.status.archive.load(this.status.model, DEMO);
|
||||||
|
}, 200);
|
||||||
|
|
||||||
(window as any).LT = {
|
(window as any).LT = {
|
||||||
status: this.status,
|
status: this.status,
|
||||||
setting: this.setting
|
setting: this.setting
|
||||||
|
1
source/Page/demo.ts
Normal file
1
source/Page/demo.ts
Normal file
File diff suppressed because one or more lines are too long
@ -44,7 +44,7 @@ class ObjectCommand extends Component<IMixinStatusProps> {
|
|||||||
this.props.status ? this.props.status.newGroup() : undefined;
|
this.props.status ? this.props.status.newGroup() : undefined;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon iconName="WebAppBuilderFragmentCreate"></Icon>
|
<Icon iconName="WebAppBuilderFragment"></Icon>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="command-item"
|
className="command-item"
|
||||||
@ -52,7 +52,7 @@ class ObjectCommand extends Component<IMixinStatusProps> {
|
|||||||
this.props.status ? this.props.status.newRange() : undefined;
|
this.props.status ? this.props.status.newRange() : undefined;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Icon iconName="ProductVariant"></Icon>
|
<Icon iconName="CubeShape"></Icon>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
className="command-item red"
|
className="command-item red"
|
||||||
|
Loading…
Reference in New Issue
Block a user