diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index 04207efb..cdab27c3 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -478,15 +478,15 @@ function onCreatureSpeak(name, level, speaktype, message, channelId, creaturePos end end -local function onOpenChannel(channelId, channelName) +function onOpenChannel(channelId, channelName) addChannel(channelName, channelId) end -local function onOpenPrivateChannel(receiver) +function onOpenPrivateChannel(receiver) addPrivateChannel(receiver) end -local function onOpenOwnPrivateChannel(channelId, channelName) +function onOpenOwnPrivateChannel(channelId, channelName) local privateTab = getTab(channelName) if privateTab == nil then addChannel(channelName, channelId) @@ -494,7 +494,7 @@ local function onOpenOwnPrivateChannel(channelId, channelName) ownPrivateName = channelName end -local function onCloseChannel(channelId) +function onCloseChannel(channelId) local channel = channels[channelId] if channel then local tab = getTab(channel) @@ -507,7 +507,7 @@ local function onCloseChannel(channelId) end end -local function doChannelListSubmit() +function doChannelListSubmit() local channelListPanel = channelsWindow:getChildById('channelList') local openPrivateChannelWith = channelsWindow:getChildById('openPrivateChannelWith'):getText() if openPrivateChannelWith ~= '' then @@ -525,7 +525,7 @@ local function doChannelListSubmit() channelsWindow:destroy() end -local function onChannelList(channelList) +function onChannelList(channelList) if channelsWindow then channelsWindow:destroy() end channelsWindow = g_ui.displayUI('channelswindow.otui') local channelListPanel = channelsWindow:getChildById('channelList') @@ -549,7 +549,7 @@ local function onChannelList(channelList) end end -local function onGameStart() +function onGameStart() -- open last channels local player = g_game.getLocalPlayer() if(player) then diff --git a/modules/game_containers/containers.lua b/modules/game_containers/containers.lua index b24d8070..aa1b3a89 100644 --- a/modules/game_containers/containers.lua +++ b/modules/game_containers/containers.lua @@ -90,22 +90,22 @@ local function onContainerOpen(container, previousContainer) container.itemsPanel = containerPanel end -local function onContainerClose(container) +function onContainerClose(container) if container.window then container.window:destroy() end end -local function onContainerAddItem(container, slot, item) +function onContainerAddItem(container, slot, item) if not container.window then return end refreshContainerItems(container) end -local function onContainerUpdateItem(container, slot, item, oldItem) +function onContainerUpdateItem(container, slot, item, oldItem) if not container.window then return end local itemWidget = container.itemsPanel:getChildById('item' .. slot) itemWidget:setItem(item) end -local function onContainerRemoveItem(container, slot, item) +function onContainerRemoveItem(container, slot, item) if not container.window then return end refreshContainerItems(container) end diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index 84e98bf4..f5c7c6c6 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -505,7 +505,7 @@ function getBottomPanel() return gameBottomPanel end -local function onLeftPanelVisibilityChange(leftPanel, visible) +function onLeftPanelVisibilityChange(leftPanel, visible) if not visible then local children = leftPanel:getChildren() for i=1,#children do