Hide item image box when editing house lists
This commit is contained in:
parent
7cc368305f
commit
7cfa9c38e0
|
@ -35,6 +35,10 @@ function onGameEditText(id, itemId, maxLength, text, writer, time)
|
||||||
|
|
||||||
local textScroll = textWindow:getChildById('textScroll')
|
local textScroll = textWindow:getChildById('textScroll')
|
||||||
|
|
||||||
|
if textItem:isHidden() then
|
||||||
|
textItem:show()
|
||||||
|
end
|
||||||
|
|
||||||
textItem:setItemId(itemId)
|
textItem:setItemId(itemId)
|
||||||
textEdit:setMaxLength(maxLength)
|
textEdit:setMaxLength(maxLength)
|
||||||
textEdit:setText(text)
|
textEdit:setText(text)
|
||||||
|
@ -107,6 +111,11 @@ function onGameEditList(id, doorId, text)
|
||||||
local okButton = textWindow:getChildById('okButton')
|
local okButton = textWindow:getChildById('okButton')
|
||||||
local cancelButton = textWindow:getChildById('cancelButton')
|
local cancelButton = textWindow:getChildById('cancelButton')
|
||||||
|
|
||||||
|
local textItem = textWindow:getChildById('textItem')
|
||||||
|
if textItem and not textItem:isHidden() then
|
||||||
|
textItem:hide()
|
||||||
|
end
|
||||||
|
|
||||||
textEdit:setMaxLength(8192)
|
textEdit:setMaxLength(8192)
|
||||||
textEdit:setText(text)
|
textEdit:setText(text)
|
||||||
textEdit:setEditable(true)
|
textEdit:setEditable(true)
|
||||||
|
|
Loading…
Reference in New Issue