mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Fixed opening view and create at same time
This commit is contained in:
@@ -675,6 +675,7 @@ PlayerSelected:on_update(
|
||||
local view_flow = frame.container.view
|
||||
local edit_flow = frame.container.edit
|
||||
local isEditing = PlayerIsEditing:get(player)
|
||||
local isCreating = PlayerIsCreating:get(player)
|
||||
|
||||
-- If the selection has an previous state re-enable the button list element
|
||||
if prev_state then
|
||||
@@ -688,6 +689,11 @@ PlayerSelected:on_update(
|
||||
-- Update the view footer
|
||||
update_task_view_footer(player, curr_state)
|
||||
|
||||
-- If a player is creating then remove the creation dialogue
|
||||
if isCreating then
|
||||
PlayerIsCreating:set(player, false)
|
||||
end
|
||||
|
||||
-- Depending on if the player is currently editing change the current task edit footer to the current task
|
||||
if isEditing then
|
||||
update_task_edit_footer(player, curr_state)
|
||||
|
||||
Reference in New Issue
Block a user