Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
MakinoharaShoko committed Nov 14, 2023
2 parents 11a40e3 + b752e91 commit 622e9dd
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 14 deletions.
2 changes: 1 addition & 1 deletion packages/origine2/src/config/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ export interface Info {
}

export const __INFO: Info = {
version: '4.4.6.3',
version: '4.4.6.4',
buildTime: '2023-10-28T09:57:19.863Z', // 编译时会通过 version-sync.js 自动更新
};
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export default function EditorSideBar() {
const prevX = document.body.style.getPropertyValue("--sidebar-width");
prevXvalue = parseInt(prevX.substring(0, prevX.length - 2), 10);
isMouseDown = true;
document.getElementById("gamePreviewIframe")!.style.zIndex = '-1';
const previewFrame = document.getElementById("gamePreviewIframe");
if(previewFrame)
previewFrame.style.zIndex = '-1';
};

const handleDrag = (event: MouseEvent) => {
Expand All @@ -61,7 +63,9 @@ export default function EditorSideBar() {
localStorage.setItem('sidebar-width', prevXvalue.toString());
},10);
isMouseDown = false;
document.getElementById("gamePreviewIframe")!.style.zIndex = '0';
const previewFrame = document.getElementById("gamePreviewIframe");
if(previewFrame)
previewFrame.style.zIndex = '0';
};

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ export default function GraphicalEditor(props: IGraphicalEditorProps) {
const sentenceConfig = sentenceEditorConfig.find((e) => e.type === sentence.command) ?? sentenceEditorDefault;
const SentenceEditor = sentenceConfig.component;
return <Draggable key={sentence.content + sentence.commandRaw + i}
draggableId={sentence.content + sentence.commandRaw + i} index={i}>
draggableId={sentence.content + sentence.commandRaw + i} index={i}>
{(provided, snapshot) => (
<div className={styles.sentenceEditorWrapper} key={sentence.commandRaw + sentence.content + i}
<div className={styles.sentenceEditorWrapper} key={sentence.commandRaw + sentence.content + i + 'inner'}
ref={provided.innerRef}
{...provided.draggableProps}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function ChangeCallScene(props: ISentenceEditorProps) {
}} extName={[".txt"]} />
</>
</CommonOptions>
<CommonOptions key="1" title={t('options.call.title')}>
<CommonOptions key="2" title={t('options.call.title')}>
<TerreToggle title="" onChange={(newValue) => {
isCallScene.set(newValue);
submit();
Expand Down

Large diffs are not rendered by default.

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

Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<title>WebGAL</title>
<meta name="viewport"
content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"/>
<script type="module" crossorigin src="./assets/index-adb30695.js"></script>
<script type="module" crossorigin src="./assets/index-85ab9814.js"></script>
<link rel="stylesheet" href="./assets/index-51db1e72.css">
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion packages/terre2/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ async function bootstrap() {
}

bootstrap().then(() => {
console.log(`WebGAL Terre 4.4.6.3 starting at ${process.cwd()}`);
console.log(`WebGAL Terre 4.4.6.4 starting at ${process.cwd()}`);
if ((process?.env?.NODE_ENV ?? '') !== 'development')
_open('http://localhost:3001');
});

0 comments on commit 622e9dd

Please sign in to comment.