feature/background-manager #6
@@ -1,6 +1,6 @@
|
|||||||
DesitionManager.register({
|
DesitionManager.register({
|
||||||
id = "go_to_walking_to_home",
|
id = "go_to_walking_to_home",
|
||||||
label = "Go to Walking to home",
|
label = "Walking to home",
|
||||||
handle = function()
|
handle = function()
|
||||||
Util.go_to_screen_by_id("walking_to_home")
|
Util.go_to_screen_by_id("walking_to_home")
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
DesitionManager.register({
|
DesitionManager.register({
|
||||||
id = "go_to_walking_to_office",
|
id = "go_to_walking_to_office",
|
||||||
label = "Go to Walking to office",
|
label = "Walking to office",
|
||||||
handle = function()
|
handle = function()
|
||||||
Util.go_to_screen_by_id("walking_to_office")
|
Util.go_to_screen_by_id("walking_to_office")
|
||||||
end,
|
end,
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ ScreenManager.register({
|
|||||||
"go_to_toilet",
|
"go_to_toilet",
|
||||||
"go_to_walking_to_office",
|
"go_to_walking_to_office",
|
||||||
},
|
},
|
||||||
background_map_id = "bedroom",
|
background = "bedroom",
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
function GameWindow.draw()
|
function GameWindow.draw()
|
||||||
local screen = Context.screens[Context.current_screen]
|
local screen = Context.screens[Context.current_screen]
|
||||||
MapManager.draw(screen.background_map_id)
|
MapManager.draw(screen.background)
|
||||||
UI.draw_top_bar(screen.name)
|
UI.draw_top_bar(screen.name)
|
||||||
if screen and screen.decisions and #screen.decisions > 0 then
|
if screen and screen.decisions and #screen.decisions > 0 then
|
||||||
local available_desitions = {}
|
local available_desitions = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user