diff --git a/info.json b/info.json index 51bcf9e0..1f2383be 100644 --- a/info.json +++ b/info.json @@ -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", diff --git a/selector/AbstractSelector.lua b/selector/AbstractSelector.lua index 441b1d42..fc7a71f9 100644 --- a/selector/AbstractSelector.lua +++ b/selector/AbstractSelector.lua @@ -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 diff --git a/selector/FluidSelector.lua b/selector/FluidSelector.lua index 25b8aecc..cd323efc 100644 --- a/selector/FluidSelector.lua +++ b/selector/FluidSelector.lua @@ -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 diff --git a/selector/RecipeSelector.lua b/selector/RecipeSelector.lua index bcfa0de9..78247e32 100644 --- a/selector/RecipeSelector.lua +++ b/selector/RecipeSelector.lua @@ -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 diff --git a/selector/TechnologySelector.lua b/selector/TechnologySelector.lua index 87af4640..eb7c16d3 100644 --- a/selector/TechnologySelector.lua +++ b/selector/TechnologySelector.lua @@ -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 -------------------------------------------------------------------------------