Skip to content

Commit

Permalink
modules organization
Browse files Browse the repository at this point in the history
  • Loading branch information
mehah committed Nov 16, 2023
1 parent 53fab37 commit 45d79a5
Show file tree
Hide file tree
Showing 276 changed files with 17 additions and 56,895 deletions.
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ local function loadModules()

-- mods 1000-9999
g_modules.autoLoadModules(9999)
g_modules.ensureModuleLoaded('client_mods')

if not g_game.isEnabledBotProtection() then
g_modules.ensureModuleLoaded('game_bot')
end

local script = '/' .. g_app.getCompactName() .. 'rc.lua'

Expand Down
10 changes: 5 additions & 5 deletions modules/client_options/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local defaultOptions = {
showLevelsInConsole = true,
showPrivateMessagesInConsole = true,
showPrivateMessagesOnScreen = true,
showLeftPanel = false,
showLeftPanel = true,
showRightExtraPanel = false,
openMaximized = false,
backgroundFrameRate = 201,
Expand Down Expand Up @@ -96,11 +96,11 @@ function init()
optionsTabBar:addTab(tr('Audio'), soundPanel, '/images/optionstab/audio')

optionsButton = modules.client_topmenu.addLeftButton('optionsButton', tr('Options'), '/images/topbuttons/options',
toggle)
toggle)
audioButton = modules.client_topmenu.addLeftButton('audioButton', tr('Audio'), '/images/topbuttons/audio',
function()
toggleOption('enableAudio')
end)
function()
toggleOption('enableAudio')
end)

addEvent(function()
setup()
Expand Down
160 changes: 0 additions & 160 deletions modules/client_profiles/profiles.lua

This file was deleted.

11 changes: 0 additions & 11 deletions modules/client_profiles/profiles.otmod

This file was deleted.

166 changes: 0 additions & 166 deletions modules/client_textedit/textedit.lua

This file was deleted.

9 changes: 0 additions & 9 deletions modules/client_textedit/textedit.otmod

This file was deleted.

Loading

0 comments on commit 45d79a5

Please sign in to comment.