1
This commit is contained in:
@@ -122,13 +122,19 @@ class Lenheart_EachC extends LenheartNewUI_Windows {
|
||||
function InitNpcButton() {
|
||||
Childrens = [];
|
||||
if (NPC_ButtonMap.rawin(NPC_Index)) {
|
||||
NPC_ButtonMap[NPC_Index](this);
|
||||
foreach(Func in NPC_ButtonMap[NPC_Index]) {
|
||||
Func(this);
|
||||
}
|
||||
}
|
||||
this.Visible = true;
|
||||
}
|
||||
|
||||
function AddEachForNpc(Index, Func) {
|
||||
NPC_ButtonMap.rawset(Index, Func);
|
||||
if (NPC_ButtonMap.rawin(Index)) {
|
||||
NPC_ButtonMap[Index].append(Func);
|
||||
return;
|
||||
}
|
||||
NPC_ButtonMap.rawset(Index, [Func]);
|
||||
}
|
||||
|
||||
function RemoveEachForNpc(Index) {
|
||||
|
||||
Reference in New Issue
Block a user