fix: flow-guidens regler viser hver sin hjælpetekst (1.62.363)
This commit is contained in:
@@ -234,12 +234,20 @@ end
|
||||
|
||||
-- ---- rækker ----
|
||||
|
||||
-- Hjælpetekst pr. række (in-game 19/10: alle valgrækker viste varepolitikkens tekst, fordi de er kloner af varerækken)
|
||||
ADFlowGuide.TOOLTIPS = {
|
||||
policy = "spu_policy_tooltip", ingredientMode = "spu_ingredientMode_tooltip", sellAtPercent = "spu_sellAt_tooltip",
|
||||
storeAbovePercent = "spu_storeAbove_tooltip", sellAbovePercent = "spu_sellAbove_tooltip", minSourcePercent = "spu_minSource_tooltip",
|
||||
collectRound = "spu_collectRound_tooltip", loops = "spu_loops_tooltip", returnBelowPercent = "spu_returnBelow_tooltip",
|
||||
waitPoolGroup = "spu_waitPool_tooltip",
|
||||
}
|
||||
|
||||
local function choice(id, title, options, value, item)
|
||||
return {type = "choice", id = id, title = title, options = options, value = value, item = item}
|
||||
return {type = "choice", id = id, title = title, options = options, value = value, item = item, tooltip = ADFlowGuide.TOOLTIPS[id]}
|
||||
end
|
||||
|
||||
local function toggle(id, title, value)
|
||||
return {type = "toggle", id = id, title = title, off = L("ui_no"), on = L("ui_yes"), value = value == true}
|
||||
return {type = "toggle", id = id, title = title, off = L("ui_no"), on = L("ui_yes"), value = value == true, tooltip = ADFlowGuide.TOOLTIPS[id]}
|
||||
end
|
||||
|
||||
local function check(id, item, text, value)
|
||||
|
||||
Reference in New Issue
Block a user