mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-13 09:44:30 +08:00
优化怪物手册,状态栏初步
This commit is contained in:
1 parent
ed4b0fe730
commit
0ecdcbdf34
22 files changed
+153
-30
No files matched your search
Vendored
+6
@@ -97,6 +97,8 @@ type MaterialImages = {
|
||||
* 额外素材
|
||||
*/
|
||||
tilesets: Record<string, HTMLImageElement>;
|
||||
|
||||
hero: HTMLImageElement;
|
||||
};
|
||||
|
||||
interface Material {
|
||||
@@ -1448,3 +1450,7 @@ declare const maps_90f36752_8815_4be8_b32b_d7fad1d0542e: {
|
||||
* 插件信息
|
||||
*/
|
||||
declare const plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1: PluginDeclaration;
|
||||
|
||||
interface Window {
|
||||
core: CoreMixin;
|
||||
}
|
||||
Vendored
+3
@@ -30,6 +30,9 @@ type DetailedEnemy<I extends EnemyIds = EnemyIds> = {
|
||||
toShowColor: Color[];
|
||||
specialColor: Color[];
|
||||
damageColor: Color;
|
||||
criticalDamage: number;
|
||||
critical: number;
|
||||
defDamage: number;
|
||||
} & Enemy<I>;
|
||||
|
||||
type Enemy<I extends EnemyIds = EnemyIds> = {
|
||||
|
||||
Vendored
+1
-1
@@ -299,7 +299,7 @@ interface Events extends EventData {
|
||||
* 恢复一个事件
|
||||
* @param data 事件信息
|
||||
*/
|
||||
recoverEvents(data?: any): void;
|
||||
recoverEvents(data?: any): boolean;
|
||||
|
||||
/**
|
||||
* 检测自动事件
|
||||
|
||||
Vendored
+6
@@ -66,6 +66,12 @@ interface Icons {
|
||||
* @param id 图块数字或id
|
||||
*/
|
||||
getTilesetOffset(id: string | number): IconOffsetInfo | null;
|
||||
|
||||
/**
|
||||
* 获取动画帧数
|
||||
* @param cls 类型
|
||||
*/
|
||||
getAnimateFrames<T extends Cls>(cls: T): FrameOf<T>;
|
||||
}
|
||||
|
||||
declare const icons: new () => Icons;
|
||||
Vendored
+3
@@ -44,6 +44,9 @@ interface PluginDeclaration extends PluginUtils {
|
||||
/** 装备栏是否打开 */
|
||||
readonly equipOpened: Ref<boolean>;
|
||||
|
||||
/** 状态栏信息,取反后刷新状态栏 */
|
||||
readonly statusBarStatus: Ref<boolean>;
|
||||
|
||||
/** ui栈 */
|
||||
readonly uiStack: Ref<Component[]>;
|
||||
|
||||
|
||||
Vendored
+3
-2
@@ -10,12 +10,12 @@ type Cls =
|
||||
| 'terrains'
|
||||
| 'enemy48'
|
||||
| 'npc48'
|
||||
| 'tilesets';
|
||||
| 'tileset';
|
||||
|
||||
/**
|
||||
* 所有的可动画图块类型
|
||||
*/
|
||||
type AnimatableCls = Exclude<Cls, 'items' | 'terrains' | 'tilesets'>;
|
||||
type AnimatableCls = Exclude<Cls, 'items' | 'terrains' | 'tileset'>;
|
||||
|
||||
/**
|
||||
* 道具类型
|
||||
@@ -85,6 +85,7 @@ interface FrameNumbers {
|
||||
terrains: 1;
|
||||
enemy48: 4;
|
||||
npc48: 4;
|
||||
tileset: 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+1
-1
@@ -592,7 +592,7 @@ interface Ui {
|
||||
*/
|
||||
drawIcon(
|
||||
name: CtxRefer,
|
||||
id: AllIds,
|
||||
id: AllIds | 'hero',
|
||||
x: number,
|
||||
y: number,
|
||||
w?: number,
|
||||
|
||||
Vendored
+1
-1
@@ -249,7 +249,7 @@ interface Utils {
|
||||
* @param onMap 显示的字符数
|
||||
* @returns 格式化结果
|
||||
*/
|
||||
formatBigNumber(x: number, onMap?: number): string;
|
||||
formatBigNumber(x: number | string, onMap?: number): string;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
|
||||
Reference in new issue
Block a user