remove whitespaces
This commit is contained in:
@@ -782,9 +782,7 @@ function Player.update()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function GameWindow.update()
|
function GameWindow.update()
|
||||||
|
|
||||||
Player.update() -- Call the encapsulated player update logic
|
Player.update() -- Call the encapsulated player update logic
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function GameWindow.set_state(new_state)
|
function GameWindow.set_state(new_state)
|
||||||
@@ -792,8 +790,6 @@ function GameWindow.set_state(new_state)
|
|||||||
-- Add any state-specific initialization/cleanup here later if needed
|
-- Add any state-specific initialization/cleanup here later if needed
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function PopupWindow.set_dialog_node(node_key)
|
function PopupWindow.set_dialog_node(node_key)
|
||||||
local npc = Context.dialog.active_entity
|
local npc = Context.dialog.active_entity
|
||||||
local node = npc.dialog[node_key]
|
local node = npc.dialog[node_key]
|
||||||
@@ -894,8 +890,8 @@ local STATE_HANDLERS = {
|
|||||||
end,
|
end,
|
||||||
[WINDOW_POPUP] = function()
|
[WINDOW_POPUP] = function()
|
||||||
GameWindow.draw() -- Draw game behind dialog
|
GameWindow.draw() -- Draw game behind dialog
|
||||||
PopupWindow.draw()
|
|
||||||
PopupWindow.update()
|
PopupWindow.update()
|
||||||
|
PopupWindow.draw()
|
||||||
end,
|
end,
|
||||||
[WINDOW_INVENTORY] = function()
|
[WINDOW_INVENTORY] = function()
|
||||||
InventoryWindow.update()
|
InventoryWindow.update()
|
||||||
|
|||||||
Reference in New Issue
Block a user