mirror of
				https://github.com/unanmed/HumanBreak.git
				synced 2025-11-04 07:02:58 +08:00 
			
		
		
		
	fix: 作者
This commit is contained in:
		
							parent
							
								
									216e8119c4
								
							
						
					
					
						commit
						f5df2c1416
					
				@ -165,6 +165,7 @@
 | 
			
		||||
    <script src='libs/thirdparty/localforage.min.js'></script>
 | 
			
		||||
    <script src='libs/thirdparty/zip.min.js'></script>
 | 
			
		||||
    <script src="libs/thirdparty/lodash.min.js"></script>
 | 
			
		||||
    <script id='dataScript' src='project/data.js'></script>
 | 
			
		||||
    <script id='mainScript' src='main.js'></script>
 | 
			
		||||
    <script src="/src/main.ts" type="module"></script>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -124,7 +124,7 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d =
 | 
			
		||||
			"武器",
 | 
			
		||||
			"盾牌"
 | 
			
		||||
		],
 | 
			
		||||
		"startBgm": null,
 | 
			
		||||
		"startBgm": "bgm.mp3",
 | 
			
		||||
		"styles": {
 | 
			
		||||
			"startBackground": "project/images/bg.jpg",
 | 
			
		||||
			"startVerticalBackground": "project/images/bg.jpg",
 | 
			
		||||
 | 
			
		||||
@ -314,7 +314,7 @@ export class SettingDisplayer extends EventEmitter<SettingDisplayerEvent> {
 | 
			
		||||
 | 
			
		||||
export const mainSetting = new MotaSetting();
 | 
			
		||||
// 添加不参与全局存储的设置
 | 
			
		||||
MotaSetting.noStorage.push('action.autoSkill', 'screen.fullscreen');
 | 
			
		||||
MotaSetting.noStorage.push('screen.fullscreen');
 | 
			
		||||
 | 
			
		||||
const storage = new GameStorage(GameStorage.fromAuthor('AncTe', 'setting'));
 | 
			
		||||
 | 
			
		||||
@ -402,9 +402,7 @@ mainSetting
 | 
			
		||||
        '显示设置',
 | 
			
		||||
        new MotaSetting()
 | 
			
		||||
            .register('fullscreen', '全屏游戏', false, COM.Boolean)
 | 
			
		||||
            .register('halo', '光环显示', true, COM.Boolean)
 | 
			
		||||
            .register('itemDetail', '宝石血瓶显伤', true, COM.Boolean)
 | 
			
		||||
            .register('heroDetail', '勇士显伤', false, COM.Boolean)
 | 
			
		||||
            .register('transition', '界面动画', false, COM.Boolean)
 | 
			
		||||
            .register('antiAlias', '抗锯齿', false, COM.Boolean)
 | 
			
		||||
            .register('fontSize', '字体大小', 16, COM.Number, [8, 28, 1])
 | 
			
		||||
@ -417,7 +415,6 @@ mainSetting
 | 
			
		||||
        'action',
 | 
			
		||||
        '操作设置',
 | 
			
		||||
        new MotaSetting()
 | 
			
		||||
            .register('autoSkill', '自动切换技能', true, COM.Boolean)
 | 
			
		||||
            .register('fixed', '定点查看', true, COM.Boolean)
 | 
			
		||||
            .register('hotkey', '快捷键', false, COM.HotkeySetting)
 | 
			
		||||
            .setDisplayFunc('hotkey', () => '')
 | 
			
		||||
@ -436,16 +433,12 @@ mainSetting
 | 
			
		||||
    .register(
 | 
			
		||||
        'utils',
 | 
			
		||||
        '系统设置',
 | 
			
		||||
        new MotaSetting()
 | 
			
		||||
            .register('betterLoad', '优化加载', true, COM.Boolean)
 | 
			
		||||
            .register('autoScale', '自动放缩', true, COM.Boolean)
 | 
			
		||||
        new MotaSetting().register('autoScale', '自动放缩', true, COM.Boolean)
 | 
			
		||||
    )
 | 
			
		||||
    .register(
 | 
			
		||||
        'fx',
 | 
			
		||||
        '特效设置',
 | 
			
		||||
        new MotaSetting()
 | 
			
		||||
            .register('paraLight', '野外阴影', true, COM.Boolean)
 | 
			
		||||
            .register('frag', '打怪特效', true, COM.Boolean)
 | 
			
		||||
        new MotaSetting().register('frag', '打怪特效', true, COM.Boolean)
 | 
			
		||||
    )
 | 
			
		||||
    .register(
 | 
			
		||||
        'ui',
 | 
			
		||||
 | 
			
		||||
@ -87,7 +87,7 @@ export class GameStorage<T extends object = any> {
 | 
			
		||||
     * @param key 存储名称
 | 
			
		||||
     */
 | 
			
		||||
    static fromAuthor(_: any, key: string) {
 | 
			
		||||
        return `${core.firstData.author}@${key}`;
 | 
			
		||||
        return `${data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d.firstData.author}@${key}`;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,6 @@
 | 
			
		||||
            "是否全屏进行游戏,全屏后按ESC退出全屏,开启后将不能通过按ESC开启系统设置菜单,",
 | 
			
		||||
            "请按下方的按钮打开。进入或退出全屏后请存读档一下,以解决一部分绘制问题。"
 | 
			
		||||
        ],
 | 
			
		||||
        "halo": ["开启后,会在地图上显示范围光环。"],
 | 
			
		||||
        "itemDetail": ["是否在地图上显示宝石血瓶装备等增加的属性值"],
 | 
			
		||||
        "transition": [
 | 
			
		||||
            "是否展示当一个ui界面,如怪物手册等的打开与关闭时的动画。当此项开启时,",
 | 
			
		||||
@ -19,10 +18,6 @@
 | 
			
		||||
        "criticalGem": ["临界是否显示为在当前地图要吃的宝石数"]
 | 
			
		||||
    },
 | 
			
		||||
    "action": {
 | 
			
		||||
        "autoSkill": [
 | 
			
		||||
            "开启后,打怪物的时候会自动选择伤害最低的技能。同时显伤也会显示此状态下的伤害,",
 | 
			
		||||
            "临界也会考虑技能在内"
 | 
			
		||||
        ],
 | 
			
		||||
        "fixed": [
 | 
			
		||||
            "开启后,当鼠标移动到怪物上时,会以盒子的形式展示该点的怪物信息。手机端此功能无效。",
 | 
			
		||||
            "<br>",
 | 
			
		||||
@ -36,15 +31,6 @@
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "utils": {
 | 
			
		||||
        "betterLoad": [
 | 
			
		||||
            "<span style=\"color: yellow; font-weight: 700\">试验性功能</span>",
 | 
			
		||||
            "<br>",
 | 
			
		||||
            "开启后游戏将对加载进行优化,缩短进入游戏时的加载时长,而在游戏中对资源进行部分性按需加载,从而对加载进行优化。",
 | 
			
		||||
            "该设置不会影响你的正常游戏,但如果网络环境较差,可能会导致部分楼层转换时间明显变长。",
 | 
			
		||||
            "<br>",
 | 
			
		||||
            "<br>",
 | 
			
		||||
            "注:修改后刷新页面起效。"
 | 
			
		||||
        ],
 | 
			
		||||
        "autoScale": [
 | 
			
		||||
            "开启后,每次进入游戏时会自动缩放游戏画面至合适值。该项只对电脑端有效。",
 | 
			
		||||
            "<br>",
 | 
			
		||||
@ -57,9 +43,6 @@
 | 
			
		||||
        ]
 | 
			
		||||
    },
 | 
			
		||||
    "fx": {
 | 
			
		||||
        "paraLight": [
 | 
			
		||||
            "是否开启野外的平行光阴影,在野外将会显示平行光阴影,模拟太阳光,拥有不错的视觉效果"
 | 
			
		||||
        ],
 | 
			
		||||
        "frag": ["开启后,在打败怪物后会触发怪物碎裂特效。"]
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -6,10 +6,10 @@
 | 
			
		||||
            @click="keyboard.emitKey(key, i)"
 | 
			
		||||
            :active="checkAssist(assist, key.key)"
 | 
			
		||||
            :style="{
 | 
			
		||||
                left: `${key.x}px`,
 | 
			
		||||
                top: `${key.y}px`,
 | 
			
		||||
                width: `${key.width}px`,
 | 
			
		||||
                height: `${key.height}px`
 | 
			
		||||
                left: `${key.x * scale}px`,
 | 
			
		||||
                top: `${key.y * scale}px`,
 | 
			
		||||
                width: `${key.width * scale}px`,
 | 
			
		||||
                height: `${key.height * scale}px`
 | 
			
		||||
            }"
 | 
			
		||||
        >
 | 
			
		||||
            <span
 | 
			
		||||
@ -24,6 +24,7 @@
 | 
			
		||||
import { checkAssist } from '@/core/main/custom/hotkey';
 | 
			
		||||
import { Keyboard } from '@/core/main/custom/keyboard';
 | 
			
		||||
import { KeyboardEmits } from '@/core/main/custom/keyboard';
 | 
			
		||||
import { mainSetting } from '@/core/main/setting';
 | 
			
		||||
import { KeyCodeUtils } from '@/plugin/keyCodes';
 | 
			
		||||
import { nextTick, onUnmounted, ref } from 'vue';
 | 
			
		||||
 | 
			
		||||
@ -31,8 +32,10 @@ const props = defineProps<{
 | 
			
		||||
    keyboard: Keyboard;
 | 
			
		||||
}>();
 | 
			
		||||
 | 
			
		||||
const scale = mainSetting.getValue('screen.keyScale', 100) / 100;
 | 
			
		||||
 | 
			
		||||
const assist = ref(props.keyboard.assist);
 | 
			
		||||
const fontSize = `${props.keyboard.fontSize}px`;
 | 
			
		||||
const fontSize = `${props.keyboard.fontSize * scale}px`;
 | 
			
		||||
 | 
			
		||||
const [width, height] = (() => {
 | 
			
		||||
    const key = props.keyboard;
 | 
			
		||||
 | 
			
		||||
@ -321,7 +321,7 @@ onUnmounted(() => {
 | 
			
		||||
        z-index: 1;
 | 
			
		||||
        flex-direction: column;
 | 
			
		||||
        transition: height 0.2s ease;
 | 
			
		||||
        width: 20%;
 | 
			
		||||
        width: 25%;
 | 
			
		||||
 | 
			
		||||
        .start-button {
 | 
			
		||||
            position: relative;
 | 
			
		||||
@ -376,7 +376,6 @@ onUnmounted(() => {
 | 
			
		||||
                rgb(255, 255, 255),
 | 
			
		||||
                rgb(255, 251, 0)
 | 
			
		||||
            );
 | 
			
		||||
            margin-bottom: 2%;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        #back {
 | 
			
		||||
@ -385,7 +384,6 @@ onUnmounted(() => {
 | 
			
		||||
                rgb(255, 255, 255),
 | 
			
		||||
                rgb(132, 132, 132)
 | 
			
		||||
            );
 | 
			
		||||
            margin-bottom: 2%;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -394,22 +392,22 @@ onUnmounted(() => {
 | 
			
		||||
        display: flex;
 | 
			
		||||
        align-items: center;
 | 
			
		||||
        flex-direction: row-reverse;
 | 
			
		||||
        justify-content: flex-start;
 | 
			
		||||
        justify-content: space-around;
 | 
			
		||||
        right: 5%;
 | 
			
		||||
        bottom: 10%;
 | 
			
		||||
        font-size: 1.3em;
 | 
			
		||||
        z-index: 1;
 | 
			
		||||
        width: 50%;
 | 
			
		||||
        width: 12%;
 | 
			
		||||
        background-color: #0008;
 | 
			
		||||
        border-radius: 10px;
 | 
			
		||||
 | 
			
		||||
        .setting-buttons {
 | 
			
		||||
            margin-left: 4%;
 | 
			
		||||
            color: white;
 | 
			
		||||
            transition: color 0.2s linear;
 | 
			
		||||
            cursor: pointer;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        .setting-buttons2 {
 | 
			
		||||
            margin-left: 4%;
 | 
			
		||||
            position: relative;
 | 
			
		||||
            top: 1px;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user