This commit is contained in:
@@ -5,11 +5,11 @@ ConfigurationWindow = {
|
||||
|
||||
function ConfigurationWindow.init()
|
||||
ConfigurationWindow.controls = {
|
||||
UI.create_desition_item(
|
||||
UI.create_decision_item(
|
||||
"Save",
|
||||
function() Config.save() end
|
||||
),
|
||||
UI.create_desition_item(
|
||||
UI.create_decision_item(
|
||||
"Restore Defaults",
|
||||
function() Config.restore_defaults() end
|
||||
),
|
||||
@@ -40,7 +40,7 @@ function ConfigurationWindow.draw()
|
||||
Print.text(label_text, x_start, current_y, color)
|
||||
Print.text(value_text, value_x, current_y, color)
|
||||
end
|
||||
elseif control.type == "desition_item" then
|
||||
elseif control.type == "decision_item" then
|
||||
local label_text = control.label
|
||||
if i == ConfigurationWindow.selected_control then
|
||||
color = Config.colors.item
|
||||
@@ -82,9 +82,9 @@ function ConfigurationWindow.update()
|
||||
elseif btnp(3) then local new_value = math.min(control.max, current_value + control.step)
|
||||
control.set(new_value)
|
||||
end
|
||||
elseif control.type == "desition_item" then
|
||||
elseif control.type == "decision_item" then
|
||||
if Input.menu_confirm() then
|
||||
control.desition()
|
||||
control.decision()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user