Fixed #265 OC needs restart on chunkloading
This upgrade might break OC1.6 support
This commit is contained in:
parent
859c01ca02
commit
0180bdd40b
2 changed files with 3 additions and 41 deletions
|
@ -37,25 +37,6 @@ local styles = {
|
|||
success = { front = colors.white , back = colors.lime },
|
||||
}
|
||||
|
||||
local local_env = {-- mostly for OC
|
||||
data = data,
|
||||
data_shouldUpdateName = data_shouldUpdateName,
|
||||
data_name = data_name,
|
||||
data_handlers = data_handlers,
|
||||
device_handlers = device_handlers,
|
||||
event_handlers = event_handlers,
|
||||
monitors = monitors,
|
||||
monitor_textScale = monitor_textScale,
|
||||
monitor_colorFront = monitor_colorFront,
|
||||
monitor_colorBackground = monitor_colorBackground,
|
||||
page_handlers = page_handlers,
|
||||
page_endText = page_endText,
|
||||
page_callbackDisplay = page_callbackDisplay,
|
||||
page_callbackKey = page_callbackKey,
|
||||
event_refreshPeriod_s = event_refreshPeriod_s,
|
||||
ship = ship,
|
||||
styles = styles }
|
||||
|
||||
----------- Terminal & monitor support
|
||||
|
||||
local function setMonitorColorFrontBack(colorFront, colorBackground)
|
||||
|
@ -1067,7 +1048,7 @@ local function run()
|
|||
local refresh = true
|
||||
local ignoreNextChar = false
|
||||
|
||||
function selectPage(index)
|
||||
local function selectPage(index)
|
||||
if page_handlers[index] ~= nil then
|
||||
page_callbackDisplay = page_handlers[index].display
|
||||
page_callbackKey = page_handlers[index].key
|
||||
|
|
|
@ -65,25 +65,6 @@ local styles = {
|
|||
success = { front = colors.white , back = colors.lime },
|
||||
}
|
||||
|
||||
local local_env = {-- mostly for OC
|
||||
data = data,
|
||||
data_shouldUpdateName = data_shouldUpdateName,
|
||||
data_name = data_name,
|
||||
data_handlers = data_handlers,
|
||||
device_handlers = device_handlers,
|
||||
event_handlers = event_handlers,
|
||||
monitors = monitors,
|
||||
monitor_textScale = monitor_textScale,
|
||||
monitor_colorFront = monitor_colorFront,
|
||||
monitor_colorBackground = monitor_colorBackground,
|
||||
page_handlers = page_handlers,
|
||||
page_endText = page_endText,
|
||||
page_callbackDisplay = page_callbackDisplay,
|
||||
page_callbackKey = page_callbackKey,
|
||||
event_refreshPeriod_s = event_refreshPeriod_s,
|
||||
ship = ship,
|
||||
styles = styles }
|
||||
|
||||
----------- Terminal & monitor support
|
||||
|
||||
local function setMonitorColorFrontBack(colorFront, colorBackground)
|
||||
|
@ -1037,7 +1018,7 @@ local function run()
|
|||
local refresh = true
|
||||
local ignoreNextChar = false
|
||||
|
||||
function selectPage(index)
|
||||
local function selectPage(index)
|
||||
if page_handlers[index] ~= nil then
|
||||
page_callbackDisplay = page_handlers[index].display
|
||||
page_callbackKey = page_handlers[index].key
|
||||
|
@ -1227,4 +1208,4 @@ w = {
|
|||
close = close,
|
||||
}
|
||||
|
||||
return w, local_env
|
||||
return w
|
Loading…
Reference in a new issue