Add on_settings to scripts without it
This commit is contained in:
@@ -47,6 +47,10 @@ function on_click()
|
||||
settings:show_dialog()
|
||||
end
|
||||
|
||||
function on_settings()
|
||||
settings:show_dialog()
|
||||
end
|
||||
|
||||
-- utils
|
||||
|
||||
function get_milestone_idx(passed)
|
||||
|
||||
@@ -93,6 +93,10 @@ function on_network_result_cmd(result)
|
||||
end
|
||||
end
|
||||
|
||||
function on_settings()
|
||||
settings:show_dialog()
|
||||
end
|
||||
|
||||
-- utils
|
||||
|
||||
function init_url_from_settings()
|
||||
|
||||
@@ -14,9 +14,14 @@ function on_resume()
|
||||
end
|
||||
|
||||
function on_click()
|
||||
aio:show_args_dialog()
|
||||
settings:show_dialog()
|
||||
end
|
||||
|
||||
function on_network_result(result)
|
||||
ui:show_text(result)
|
||||
end
|
||||
|
||||
function on_settings()
|
||||
settings:show_dialog()
|
||||
end
|
||||
|
||||
|
||||
@@ -31,3 +31,8 @@ function init_progressbar()
|
||||
percent = math.floor((current_time - start_period) / ((end_period - start_period) / 100))
|
||||
ui:show_progress_bar(name_period..": "..percent.."%", current_time - start_period, end_period - start_period, "#7069f0ae")
|
||||
end
|
||||
|
||||
function on_settings()
|
||||
settings:show_dialog()
|
||||
end
|
||||
|
||||
|
||||
@@ -65,5 +65,9 @@ function on_network_result(result, code)
|
||||
end
|
||||
|
||||
ui:show_buttons(names, colours)
|
||||
end
|
||||
|
||||
function on_settings()
|
||||
settings:show_dialog()
|
||||
end
|
||||
|
||||
end
|
||||
@@ -91,3 +91,8 @@ function table_to_tables(tab, num)
|
||||
|
||||
return out_tab
|
||||
end
|
||||
|
||||
function on_settings()
|
||||
settings:show_dialog()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user