diegortw
Member
- Joined
- Oct 10, 2014
- Messages
- 68
- Reaction score
- 8
Hi guys, I need your help
I'm trying to add a checkbox to game options...
healthinfo.lua has a function:
Then I added:
The hide function works but the show function doesn't
(Sorry for my english )
I'm trying to add a checkbox to game options...
healthinfo.lua has a function:
Code:
function hideExperience()
local removeHeight = experienceBar:getMarginRect().height
experienceBar:setOn(false)
healthInfoWindow:setHeight(math.max(healthInfoWindow.minimizedHeight, healthInfoWindow:getHeight() - removeHeight))
end
Then I added:
Code:
function showExperience()
experienceBar:setOn(true)
local addHeight = experienceBar:getMarginRect().height
healthInfoWindow:setHeight(math.max(healthInfoWindow.minimizedHeight, healthInfoWindow:getHeight() + addHeight))
end
The hide function works but the show function doesn't
(Sorry for my english )