fix: `replaceButton` not a button.
This commit is contained in:
parent
0a3d5216f5
commit
f4fe5406c9
|
@ -1659,6 +1659,11 @@ export class Get extends Uninstantable {
|
|||
if (obj instanceof lib.element.Dialog) return 'dialog';
|
||||
if (obj instanceof lib.element.GameEvent ||
|
||||
obj instanceof lib.element.GameEventPromise) return 'event';
|
||||
|
||||
if (typeof obj !== 'object' || obj === null) return;
|
||||
|
||||
if (lib.experimental.symbol.itemType in obj)
|
||||
return obj[lib.experimental.symbol.itemType]
|
||||
}
|
||||
static equipNum(card) {
|
||||
if (get.type(card) == 'equip') {
|
||||
|
|
1920
noname/init/index.js
1920
noname/init/index.js
File diff suppressed because it is too large
Load Diff
|
@ -1,5 +1,8 @@
|
|||
import { Uninstantable } from "../../util/index.js";
|
||||
|
||||
export class Experimental extends Uninstantable {
|
||||
|
||||
}
|
||||
import { Uninstantable } from "../../util/index.js";
|
||||
|
||||
import { ExperimentalSymbol } from "./symbol.js";
|
||||
|
||||
export class Experimental extends Uninstantable {
|
||||
static symbol = ExperimentalSymbol
|
||||
static symbols = ExperimentalSymbol
|
||||
}
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
import { Uninstantable } from "../../util/index.js";
|
||||
|
||||
export class ExperimentalSymbol extends Uninstantable {
|
||||
static itemType = Symbol('noname.experimental.itemType')
|
||||
}
|
29231
noname/ui/index.js
29231
noname/ui/index.js
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue