Added missing protocol versions & made some style fixes.

master
BenDol 10 years ago
parent 153cf3e859
commit a52c938fef

@ -28,6 +28,10 @@ function UIComboBox:getOption(text)
end end
end end
function UIComboBox:setOption(text, dontSignal)
self:setCurrentOption(text, dontSignal)
end
function UIComboBox:setCurrentOption(text, dontSignal) function UIComboBox:setCurrentOption(text, dontSignal)
if not self.options then return end if not self.options then return end
for i,v in ipairs(self.options) do for i,v in ipairs(self.options) do

@ -433,7 +433,11 @@ function addMenuHook(category, name, callback, condition, shortcut)
end end
function removeMenuHook(category, name) function removeMenuHook(category, name)
hookedMenuOptions[category][name] = nil if not name then
hookedMenuOptions[category] = {}
else
hookedMenuOptions[category][name] = nil
end
end end
function createThingMenu(menuPosition, lookThing, useThing, creatureThing) function createThingMenu(menuPosition, lookThing, useThing, creatureThing)

@ -1,7 +1,7 @@
CountWindow < MainWindow CountWindow < MainWindow
id: countWindow id: countWindow
!text: tr('Move Stackable Item') !text: tr('Move Stackable Item')
size: 196 80 size: 196 90
SpinBox SpinBox
id: spinBox id: spinBox

@ -48,18 +48,25 @@ end
function g_game.getSupportedClients() function g_game.getSupportedClients()
return { return {
740, 760, 770, 772, 740, 741, 750, 760, 770, 772,
780, 781, 782, 790, 792, 780, 781, 782, 790, 792,
800, 810, 811, 840, 842, 850, 800, 810, 811, 820, 821, 822,
853, 854, 860, 861, 862, 870, 830, 831, 840, 842, 850, 853,
854, 855, 857, 860, 861, 862,
870, 871,
910, 940, 944, 953, 954, 960, 961, 900, 910, 920, 931, 940, 943,
963, 970, 972, 973, 980, 981, 982, 944, 951, 952, 953, 954, 960,
983, 984, 985, 986, 961, 963, 970, 971, 972, 973,
980, 981, 982, 983, 984, 985,
986,
1001, 1002, 1010, 1020, 1021, 1022, 1031, 1000, 1001, 1002, 1010, 1011,
1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041 1012, 1013, 1020, 1021, 1022,
1030, 1031, 1032, 1033, 1034,
1035, 1036, 1037, 1038, 1039,
1040, 1041
} }
end end

Loading…
Cancel
Save