The Mudlet is build from git code 4.10-development.
Adjustable.Container displays nothing.
It is good on 4.9.0 before.
----
Change to branch release-4.10 with git checkout.
The function works.
So the bug is only in development branch.
Adjustable.Container bug on RPi4 - Mudlet 4.10-dev
Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev
We're not aware of a problem, can you post the function that breaks it?
Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev
Adjustable.Container shows nothing, the window is empty.
No error.
Code: Select all
UI.skwin = {}
local fsize = config.fsize
local skwindow = Adjustable.Container:new({
name = "SKWindow",
titleText = "Skills",
width = 850, height = 600,
color = "black",
})
skwindow:hide()
local skconsole = Geyser.MiniConsole:new({
name="SK",
width="100%", height="100%",
x = 0, y = 0,
fontSize = fsize - 1,
autoWrap = false,
scrollBar = true,
color = "black",
}, skwindow)
function UI.skwin.copy()
selectCurrentLine()
copy()
skconsole:appendBuffer()
deleteLine()
end
function UI.skwin.hide()
skwindow:hide()
end
function UI.skwin.show()
skwindow:show()
end
function UI.skwin.open()
enableTrigger("skwin")
skwindow:show()
end
function UI.skwin.close()
disableTrigger("skwin")
skwindow:hide()
end
Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev
And also some characters are not seen in the main console.
like:
你将手中地★玄武甲放进了宝石袋。
The whole line is empty.
It seems to be a rendering issue.
like:
你将手中地★玄武甲放进了宝石袋。
The whole line is empty.
It seems to be a rendering issue.
Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev
Are you able to use git bisect to find which commit changes this?
Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev
Unfortunately I cannot reproduce this on the current version.
Maybe if you post a full example? your script lacks the UI table, the "config" table and I don't know what the trigger does either. Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev
A simpler way to reproduce the issue is to create a miniconsole and try to append to the buffer.
For example:
Where you can use lua appendTest() to append the current line which doesn't seem to work in the current PTB.
For example:
Code: Select all
createMiniConsole("testConsole", 0, 400, 400, 400)
echo("testConsole","Appending\n")
function appendTest()
selectCurrentLine()
copy()
appendBuffer("testConsole")
end
appendTest()
appendTest()
echo("testConsole","Finished appending\n")
Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev
Ah. Thanks. Reproduced, working on a fix.
Re: Adjustable.Container bug on RPi4 - Mudlet 4.10-dev
Any other regressions, pass them this way while I'm at it