diff --git a/BUGS b/BUGS index aebdcf17..fe26ed7d 100644 --- a/BUGS +++ b/BUGS @@ -2,7 +2,6 @@ modules recursivity makes client crash, it should generate a warning == P1 BUGS (affects game play) -private channels are not closed when switching characters sometimes minimap desync Z pos follow and autowalk doesn't cancel when walking via hotkeys diff --git a/TODO b/TODO index 2eb52bfe..d517ed7e 100644 --- a/TODO +++ b/TODO @@ -34,7 +34,6 @@ allow multiple Map and Game instances ? == MINOR FEATURES display exit box when exiting from game -case insensitive npctrade load modules from zip packages move up/down in lineedits select characters in lineedits diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index 7f0545ed..c0ddccad 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -80,7 +80,6 @@ function applyMessagePrefixies(name, level, message) return message end - -- hooked events local function onCreatureSpeak(name, level, speaktype, message, channelId, creaturePos) local defaultMessage = speaktype < 3 and true or false @@ -107,12 +106,13 @@ local function onCreatureSpeak(name, level, speaktype, message, channelId, creat end local function onOpenChannel(channelId, channelName) - Console.addChannel(tr(channelName), channelId) + Console.addChannel(channelName, channelId) end local function onOpenPrivateChannel(receiver) local privateTab = Console.getTab(receiver) if privateTab == nil then + channels[receiver] = receiver Console.addTab(receiver, true) end end @@ -120,6 +120,7 @@ end local function onOpenOwnPrivateChannel(channelId, channelName) local privateTab = Console.getTab(channelName) if privateTab == nil then + --channels[channelId] = channelName (this should be tested) Console.addChannel(channelName, channelId, true) end ownPrivateName = channelName diff --git a/modules/game_npctrade/npctrade.lua b/modules/game_npctrade/npctrade.lua index 64cb3fc0..d44c8322 100644 --- a/modules/game_npctrade/npctrade.lua +++ b/modules/game_npctrade/npctrade.lua @@ -170,7 +170,7 @@ local function refreshPlayerGoods() capacityLabel:setText(string.format('%.2f', playerFreeCapacity) .. ' ' .. WEIGHT_UNIT) local currentTradeType = getCurrentTradeType() - local searchFilter = searchText:getText() + local searchFilter = searchText:getText():lower() local foundSelectedItem = false local items = itemsPanel:getChildCount() @@ -181,7 +181,7 @@ local function refreshPlayerGoods() local canTrade = canTradeItem(item) itemWidget:setEnabled(canTrade) - local searchCondition = (searchFilter == '') or (searchFilter ~= '' and string.find(item.name, searchFilter) ~= nil) + local searchCondition = (searchFilter == '') or (searchFilter ~= '' and string.find(item.name:lower(), searchFilter) ~= nil) local showAllItemsCondition = (currentTradeType == BUY) or (showAllItems:isChecked()) or (currentTradeType == SELL and not showAllItems:isChecked() and canTrade) itemWidget:setVisible(searchCondition and showAllItemsCondition) diff --git a/modules/game_npctrade/npctrade.otui b/modules/game_npctrade/npctrade.otui index 1c8ae6d6..6e7135c5 100644 --- a/modules/game_npctrade/npctrade.otui +++ b/modules/game_npctrade/npctrade.otui @@ -6,7 +6,7 @@ NPCOfferLabel < Label NPCItemBox < UICheckBox border-width: 1 - border-color: #000000 + border-color: #000000 color: #aaaaaa text-align: center text-offset: 0 20 @@ -88,7 +88,7 @@ MainWindow type: grid cell-size: 160 90 flow: true - auto-spacing: true + auto-spacing: true FlatPanel id: setupPanel