Task now ask Interface to update task status instead of just doing it themselves whenever they want, stubbed apply_patch method, moved unpacking into its own method

This commit is contained in:
2021-11-26 15:21:22 -06:00
parent 6c18e16357
commit 2a65761b8d
3 changed files with 41 additions and 14 deletions

View File

@@ -2,6 +2,7 @@ class W3DHub
class States
class Interface < CyberarmEngine::GuiState
attr_reader :main_thread_queue
attr_accessor :interface_task_update_pending
def setup
window.show_cursor = true
@@ -10,6 +11,8 @@ class W3DHub
@service_status = @options[:service_status]
@applications = @options[:applications]
@interface_task_update_pending = nil
@page = nil
@pages = {}
@@ -141,6 +144,8 @@ class W3DHub
while(block = @main_thread_queue.shift)
block&.call
end
update_interface_task_status(@interface_task_update_pending) if @interface_task_update_pending
end
def button_down(id)