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