Skip to content

Commit

Permalink
Added missing protocol versions & made some style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
BenDol committed Jul 30, 2014
1 parent 153cf3e commit a52c938
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 10 deletions.
4 changes: 4 additions & 0 deletions modules/corelib/ui/uicombobox.lua
Expand Up @@ -28,6 +28,10 @@ function UIComboBox:getOption(text)
end
end

function UIComboBox:setOption(text, dontSignal)
self:setCurrentOption(text, dontSignal)
end

function UIComboBox:setCurrentOption(text, dontSignal)
if not self.options then return end
for i,v in ipairs(self.options) do
Expand Down
6 changes: 5 additions & 1 deletion modules/game_interface/gameinterface.lua
Expand Up @@ -433,7 +433,11 @@ function addMenuHook(category, name, callback, condition, shortcut)
end

function removeMenuHook(category, name)
hookedMenuOptions[category][name] = nil
if not name then
hookedMenuOptions[category] = {}
else
hookedMenuOptions[category][name] = nil
end
end

function createThingMenu(menuPosition, lookThing, useThing, creatureThing)
Expand Down
2 changes: 1 addition & 1 deletion modules/game_interface/styles/countwindow.otui
@@ -1,7 +1,7 @@
CountWindow < MainWindow
id: countWindow
!text: tr('Move Stackable Item')
size: 196 80
size: 196 90

SpinBox
id: spinBox
Expand Down
23 changes: 15 additions & 8 deletions modules/gamelib/game.lua
Expand Up @@ -48,18 +48,25 @@ end

function g_game.getSupportedClients()
return {
740, 760, 770, 772,
740, 741, 750, 760, 770, 772,
780, 781, 782, 790, 792,

800, 810, 811, 840, 842, 850,
853, 854, 860, 861, 862, 870,
800, 810, 811, 820, 821, 822,
830, 831, 840, 842, 850, 853,
854, 855, 857, 860, 861, 862,
870, 871,

910, 940, 944, 953, 954, 960, 961,
963, 970, 972, 973, 980, 981, 982,
983, 984, 985, 986,
900, 910, 920, 931, 940, 943,
944, 951, 952, 953, 954, 960,
961, 963, 970, 971, 972, 973,
980, 981, 982, 983, 984, 985,
986,

1001, 1002, 1010, 1020, 1021, 1022, 1031,
1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041
1000, 1001, 1002, 1010, 1011,
1012, 1013, 1020, 1021, 1022,
1030, 1031, 1032, 1033, 1034,
1035, 1036, 1037, 1038, 1039,
1040, 1041
}
end

Expand Down

2 comments on commit a52c938

@Tazer89
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BenDol, Would be nice if you could compile to windows version and update readme with that compile. Thanks.

@TheSumm
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the readme with the link to my thread on Otland

Please sign in to comment.