mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 19:44:54 +02:00
Add live_textures_reload command
This commit is contained in:
@@ -11,7 +11,7 @@ function setMusic(filename)
|
||||
end
|
||||
|
||||
function reloadScripts()
|
||||
g_textures.clearTexturesCache()
|
||||
g_textures.clearCache()
|
||||
g_modules.reloadModules()
|
||||
|
||||
local script = '/' .. g_app.getCompactName() .. 'rc'
|
||||
|
@@ -15,6 +15,10 @@ function show_map()
|
||||
modules.game_interface.getMapPanel():show()
|
||||
end
|
||||
|
||||
function live_textures_reload()
|
||||
g_textures.liveReload()
|
||||
end
|
||||
|
||||
function auto_reload_module(name)
|
||||
local function reloadEvent()
|
||||
reloadModule(name)
|
||||
|
Reference in New Issue
Block a user