mirror of
https://github.com/OpenMW/openmw.git
synced 2026-01-24 13:30:55 +00:00
Improve map extractor UI and add teleport logging
This commit is contained in:
parent
f42907a2d7
commit
18c73af04e
2 changed files with 25 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue