Skip to content

Commit

Permalink
Fixed filter options in selector recipe
Browse files Browse the repository at this point in the history
Fixed filter options in recipe selector
Fixed a bug in fluid selector
  • Loading branch information
Helfima committed Aug 28, 2017
1 parent 2e9a08d commit a259254
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

{
"name": "helmod",
"version": "0.6.0",
"version": "0.6.2",
"title": "Helmod: Assistant to plan its base.",
"author": "Helfima",
"contact": "Helfima",
Expand Down
1 change: 1 addition & 0 deletions selector/AbstractSelector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ end
-- @function [parent=#AbstractSelector] afterInit
--
function AbstractSelector.methods:afterInit()
Logging:debug(self:classname(), "afterInit()")
self.disable_option = false
self.hidden_option = false
self.product_option = false
Expand Down
2 changes: 1 addition & 1 deletion selector/FluidSelector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ end
function FluidSelector.methods:buildPrototypeTooltip(prototype)
Logging:trace(self:classname(), "buildPrototypeTooltip(player, prototype):", prototype)
-- initalize tooltip
local tooltip = Player.getLocalisedName(prototype)
local tooltip = FluidPrototype.load(prototype).getLocalisedName()
return tooltip
end

Expand Down
5 changes: 3 additions & 2 deletions selector/RecipeSelector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ local firstGroup = nil
-------------------------------------------------------------------------------
-- After initialization
--
-- @function [parent=#RecipeSelector] after_init
-- @function [parent=#RecipeSelector] afterInit
--
function RecipeSelector.methods:after_init()
function RecipeSelector.methods:afterInit()
Logging:debug(self:classname(), "afterInit()")
self.disable_option = true
self.hidden_option = true
self.product_option = true
Expand Down
6 changes: 4 additions & 2 deletions selector/TechnologySelector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ TechnologySelector = setclass("HMTechnologySelector", AbstractSelector)
-------------------------------------------------------------------------------
-- After initialization
--
-- @function [parent=#TechnologySelector] after_init
-- @function [parent=#TechnologySelector] afterInit
--
function TechnologySelector.methods:after_init()
function TechnologySelector.methods:afterInit()
self.disable_option = true
self.hidden_option = true
self.product_option = true
end

-------------------------------------------------------------------------------
Expand Down

0 comments on commit a259254

Please sign in to comment.