1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-24 19:00:55 +00:00

Merge pull request #5 from Diject/ui_logging

Change map extractor UI and add teleport logging
This commit is contained in:
Diject 2026-01-02 15:24:12 +03:00 committed by GitHub
commit b3392ebca5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 25 additions and 2 deletions

View file

@ -88,6 +88,7 @@ local function processAndTeleport(skipExtraction)
line3 = string.format("Estimated time left: %d:%02d:%02.0f", hours, minutes, seconds),
})
print(string.format('Teleporting to cell #%d: "%s"', i, customCellId))
pl:teleport(cell, pos)
break

View file

@ -37,9 +37,8 @@ local content = ui.content{
}
local layout = {
local textLayout = {
type = ui.TYPE.Container,
layer = "builtin:map_extractor",
props = {
anchor = util.vector2(0.5, 0.5),
relativePosition = util.vector2(0.5, 0.5),
@ -57,6 +56,29 @@ local layout = {
}
local layout = {
type = ui.TYPE.Widget,
layer = "builtin:map_extractor",
props = {
anchor = util.vector2(0.5, 0.5),
relativePosition = util.vector2(0.5, 0.5),
size = screenSize,
},
content = ui.content{
{
type = ui.TYPE.Image,
props = {
resource = ui.texture{ path = "white" },
relativeSize = util.vector2(1, 1),
color = util.color.rgb(0, 0, 0),
alpha = 0.9,
}
},
textLayout,
},
}
local menu = ui.create(layout)