mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-07-19 03:41:47 +08:00
Compare commits
4 Commits
2fed2b1d7e
...
55c7afd66a
Author | SHA1 | Date | |
---|---|---|---|
55c7afd66a | |||
fd8b6451e2 | |||
e17bc2c3d2 | |||
db4935373a |
@ -21,7 +21,6 @@ import {
|
|||||||
} from 'vue';
|
} from 'vue';
|
||||||
import { logger } from '@motajs/common';
|
import { logger } from '@motajs/common';
|
||||||
import { isNil } from 'lodash-es';
|
import { isNil } from 'lodash-es';
|
||||||
import { SetupComponentOptions } from './types';
|
|
||||||
import EventEmitter from 'eventemitter3';
|
import EventEmitter from 'eventemitter3';
|
||||||
import {
|
import {
|
||||||
ITextContentConfig,
|
ITextContentConfig,
|
||||||
@ -31,6 +30,7 @@ import {
|
|||||||
WordBreak,
|
WordBreak,
|
||||||
TextAlign
|
TextAlign
|
||||||
} from './textboxTyper';
|
} from './textboxTyper';
|
||||||
|
import { SetupComponentOptions } from '@motajs/system-ui';
|
||||||
|
|
||||||
export interface TextContentProps
|
export interface TextContentProps
|
||||||
extends DefaultProps,
|
extends DefaultProps,
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
import { DefaultProps, ElementLocator, Font } from '@motajs/render';
|
import { DefaultProps, ElementLocator, Font } from '@motajs/render';
|
||||||
import { logger } from '@motajs/common';
|
import { logger } from '@motajs/common';
|
||||||
import { computed, defineComponent, onUnmounted, ref } from 'vue';
|
import { computed, defineComponent, onUnmounted, ref } from 'vue';
|
||||||
import { SetupComponentOptions } from './types';
|
|
||||||
import { transitioned } from '../use';
|
import { transitioned } from '../use';
|
||||||
import { hyper } from 'mutate-animate';
|
import { hyper } from 'mutate-animate';
|
||||||
import { debounce } from 'lodash-es';
|
import { debounce } from 'lodash-es';
|
||||||
import { texture } from '../elements';
|
import { texture } from '../elements';
|
||||||
|
import { SetupComponentOptions } from '@motajs/system-ui';
|
||||||
|
|
||||||
export interface TipProps extends DefaultProps {
|
export interface TipProps extends DefaultProps {
|
||||||
loc: ElementLocator;
|
loc: ElementLocator;
|
||||||
|
@ -19,6 +19,7 @@ import { generateKeyboardEvent } from '@motajs/system-action';
|
|||||||
import { getVitualKeyOnce } from '@motajs/legacy-ui';
|
import { getVitualKeyOnce } from '@motajs/legacy-ui';
|
||||||
import { getAllSavesData, getSaveData, syncFromServer } from '../../utils';
|
import { getAllSavesData, getSaveData, syncFromServer } from '../../utils';
|
||||||
import { getInput } from '../components/input';
|
import { getInput } from '../components/input';
|
||||||
|
import { openStatistics } from './statistics';
|
||||||
|
|
||||||
export interface SettingsProps extends Partial<ChoicesProps>, UIComponentProps {
|
export interface SettingsProps extends Partial<ChoicesProps>, UIComponentProps {
|
||||||
loc: ElementLocator;
|
loc: ElementLocator;
|
||||||
@ -211,7 +212,7 @@ export const GameInfo = defineComponent<SettingsProps>(props => {
|
|||||||
const choose = async (key: ChoiceKey) => {
|
const choose = async (key: ChoiceKey) => {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case GameInfoChoice.Statistics: {
|
case GameInfoChoice.Statistics: {
|
||||||
// todo
|
openStatistics(props.controller);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case GameInfoChoice.Project: {
|
case GameInfoChoice.Project: {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { GameUI } from '@motajs/system-ui';
|
import { GameUI, SetupComponentOptions } from '@motajs/system-ui';
|
||||||
import { computed, defineComponent, ref, watch } from 'vue';
|
import { computed, defineComponent, ref, watch } from 'vue';
|
||||||
import { SetupComponentOptions, TextContent } from '../components';
|
import { TextContent } from '../components';
|
||||||
import {
|
import {
|
||||||
DefaultProps,
|
DefaultProps,
|
||||||
ElementLocator,
|
ElementLocator,
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import { DefaultProps, ElementLocator, Font } from '@motajs/render';
|
import { DefaultProps, ElementLocator, Font } from '@motajs/render';
|
||||||
import { computed, defineComponent, ref } from 'vue';
|
import { computed, defineComponent, ref } from 'vue';
|
||||||
import { SetupComponentOptions } from '../components';
|
|
||||||
import {
|
import {
|
||||||
DanmakuIcon,
|
DanmakuIcon,
|
||||||
DoubleArrow,
|
DoubleArrow,
|
||||||
@ -21,6 +20,7 @@ import { linear } from 'mutate-animate';
|
|||||||
import { KeyCode } from '@motajs/client-base';
|
import { KeyCode } from '@motajs/client-base';
|
||||||
import { Progress } from '../components/misc';
|
import { Progress } from '../components/misc';
|
||||||
import { generateBinary } from '@motajs/legacy-common';
|
import { generateBinary } from '@motajs/legacy-common';
|
||||||
|
import { SetupComponentOptions } from '@motajs/system-ui';
|
||||||
|
|
||||||
interface ToolbarProps extends DefaultProps {
|
interface ToolbarProps extends DefaultProps {
|
||||||
loc?: ElementLocator;
|
loc?: ElementLocator;
|
||||||
@ -82,7 +82,7 @@ export const PlayingToolbar = defineComponent<
|
|||||||
const iconFont = new Font('Verdana', 12);
|
const iconFont = new Font('Verdana', 12);
|
||||||
|
|
||||||
const book = () => core.openBook(true);
|
const book = () => core.openBook(true);
|
||||||
const tool = () => core.openEquipbox(true);
|
const tool = () => core.openToolbox(true);
|
||||||
const fly = () => core.useFly(true);
|
const fly = () => core.useFly(true);
|
||||||
const save = () => core.save(true);
|
const save = () => core.save(true);
|
||||||
const load = () => core.load(true);
|
const load = () => core.load(true);
|
||||||
|
@ -74,6 +74,9 @@ let clientRegistered = false;
|
|||||||
let dataRegistered = false;
|
let dataRegistered = false;
|
||||||
|
|
||||||
function checkRegistered() {
|
function checkRegistered() {
|
||||||
|
if (main.replayChecking || main.mode === 'editor') {
|
||||||
|
clientRegistered = true;
|
||||||
|
}
|
||||||
if (clientRegistered && dataRegistered) {
|
if (clientRegistered && dataRegistered) {
|
||||||
loading.emit('registered');
|
loading.emit('registered');
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,5 @@ export function create() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createModule() {
|
function createModule() {
|
||||||
LegacyPluginData.create();
|
LegacyPluginData.createLegacy();
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@ import { createHook } from './hook';
|
|||||||
import { initReplay } from './replay';
|
import { initReplay } from './replay';
|
||||||
import { initUI } from './ui';
|
import { initUI } from './ui';
|
||||||
|
|
||||||
export function create() {
|
export function createLegacy() {
|
||||||
initFallback();
|
initFallback();
|
||||||
loading.once('coreInit', () => {
|
loading.once('coreInit', () => {
|
||||||
initFiveLayer();
|
initFiveLayer();
|
||||||
|
@ -384,10 +384,10 @@
|
|||||||
</span>
|
</span>
|
||||||
<br />
|
<br />
|
||||||
<span style="font-size: 12px">
|
<span style="font-size: 12px">
|
||||||
<input type="radio" id="layerMod2" name="layerMod" value="bgmap" />背景层
|
<input type="radio" id="layerMod2" name="layerMod" value="bgmap" />背
|
||||||
<input type="radio" id="layerMod" name="layerMod" value="map" checked="checked"
|
<input type="radio" id="layerMod" name="layerMod" value="map" checked="checked"
|
||||||
style="margin-left: 5px" />事件层
|
style="margin-left: 5px" />事
|
||||||
<input type="radio" id="layerMod3" name="layerMod" value="fgmap" style="margin-left: 5px" />前景层
|
<input type="radio" id="layerMod3" name="layerMod" value="fgmap" style="margin-left: 5px" />前
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
<div id="viewportButtons" style="margin-bottom: 7px">
|
<div id="viewportButtons" style="margin-bottom: 7px">
|
||||||
@ -512,7 +512,7 @@
|
|||||||
editor.mode_listen();
|
editor.mode_listen();
|
||||||
editor.mobile_listen();
|
editor.mobile_listen();
|
||||||
});
|
});
|
||||||
//main.listen();
|
//main.listen();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- hightlight textarea -->
|
<!-- hightlight textarea -->
|
||||||
|
Loading…
Reference in New Issue
Block a user