BoC: Resetting search query when starting a new game
This commit is contained in:
1 parent
4ccb2cc14b
commit
e3c88aad24
1 file changed
+7
-1
@@ -291,10 +291,16 @@ function EID:BoCSBlockInputAction(entity, inputHook, buttonAction)
|
||||
return nil
|
||||
end
|
||||
|
||||
--- Resets the search query when entering a new level (and starting a new game)
|
||||
--- Resets the search query when entering a new level
|
||||
function EID:BoCSOnNewLevel()
|
||||
EID:BoCSSetSearchValue("")
|
||||
end
|
||||
|
||||
--- Resets the search query when starting and continuing a game
|
||||
function EID:BoCSPostGameStarted()
|
||||
EID:BoCSSetSearchValue("")
|
||||
end
|
||||
|
||||
EID:BoCSHookInput()
|
||||
EID:AddCallback(ModCallbacks.MC_POST_NEW_LEVEL, EID.BoCSOnNewLevel)
|
||||
EID:AddCallback(ModCallbacks.MC_POST_GAME_STARTED, EID.BoCSOnNewLevel)
|
||||
Reference in new issue
Block a user