General 8.3 Update

- ToC Bump.
- Fixed the '_bit_band' bug.
- Framwork update from 161 to 164.
This commit is contained in:
Tercio Jose
2020-01-16 13:40:14 -03:00
parent 88ec99df16
commit baf7d2f3b2
6 changed files with 156 additions and 20 deletions
+12
View File
@@ -286,6 +286,17 @@ local DFSliderMetaFunctions = _G [DF.GlobalWidgetControlNames ["slider"]]
end
end
-- clear focus
function DFSliderMetaFunctions:ClearFocus()
local editbox = DFSliderMetaFunctions.editbox_typevalue
if editbox and self.typing_value then
editbox:ClearFocus()
editbox:Hide()
editbox:GetParent().MyObject.typing_value = false
editbox:GetParent().MyObject.value = self.typing_value_started
end
end
-- enabled
function DFSliderMetaFunctions:IsEnabled()
return not _rawget (self, "lockdown")
@@ -312,6 +323,7 @@ local DFSliderMetaFunctions = _G [DF.GlobalWidgetControlNames ["slider"]]
function DFSliderMetaFunctions:Disable()
self:ClearFocus()
self.slider:Disable()
self.slider.amt:Hide()
self:SetAlpha (.4)