Skip to content

Commit 176c05e

Browse files
committed
Tweaked energy grid cable setting text so it can be found by searching 'wire' and 'energy'.
Put energy grid cables in simple settings while they have some linux issues.
1 parent 13a36a3 commit 176c05e

2 files changed

Lines changed: 20 additions & 7 deletions

File tree

LuaUI/Widgets/gfx_overdrive_cables_menu.lua

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
function widget:GetInfo()
1717
return {
18-
name = "Overdrive Cables Settings",
18+
name = "Energy Grid Wire Settings",
1919
desc = "Settings menu entry for the overdrive cable visualization.",
2020
author = "Licho",
2121
date = "2026",
@@ -40,18 +40,17 @@ local function readCurrentGhosts()
4040
return (Spring.GetConfigInt(GHOSTS_KEY, 1) or 1) ~= 0
4141
end
4242

43-
options_path = 'Settings/Graphics/Overdrive Cables'
43+
options_path = 'Settings/Graphics/Energy Grid Cables'
4444
options_order = { 'cabletree_detail', 'cabletree_ghosts' }
4545

4646
options = {
4747
cabletree_detail = {
48-
name = 'Overdrive cable visualization',
49-
desc = 'Off: no cables drawn. Static: gray pipes only (cheapest). Full: animated bubbles indicating flow (default).',
48+
name = 'Energy grid cables',
5049
type = 'radioButton',
5150
items = {
52-
{ key = 'full', name = 'Full (animated bubbles)', desc = 'Default. Bubbles indicate flow direction and rate.' },
53-
{ key = 'noflow', name = 'Static (no flow animation)', desc = 'Cheaper: gray pipes only, no per-tick flow reads or shader bubble pass.' },
54-
{ key = 'off', name = 'Off (no cables)', desc = 'Hide the overdrive grid entirely.' },
51+
{ key = 'full', name = 'Full (animated flows)', desc = 'Show overdrive energy flowing through the grid (default).' },
52+
{ key = 'noflow', name = 'Static (no flows)', desc = 'Cheaper: gray pipes only, no per-tick flow reads or shader bubble pass.' },
53+
{ key = 'off', name = 'Off (no cables)', desc = 'Hide the cables/wires entirely.' },
5554
},
5655
value = 'full',
5756
OnChange = function(self)

LuaUI/Widgets/gui_simple_settings.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ local optionGenerationTable = {
131131
type = "number",
132132
path = "Settings/Graphics",
133133
},
134+
{
135+
optionWidget = "Energy Grid Wire Settings",
136+
optionPath = "Settings/Graphics/Energy Grid Cables",
137+
optionName = "cabletree_detail",
138+
name = "Energy grid cables",
139+
items = {
140+
{ key = 'full', name = 'Full (animated flows)', desc = 'Show overdrive energy flowing through the grid (default).' },
141+
{ key = 'noflow', name = 'Static (no flows)', desc = 'Cheaper: gray pipes only, no per-tick flow reads or shader bubble pass.' },
142+
{ key = 'off', name = 'Off (no cables)', desc = 'Hide the cables/wires entirely.' },
143+
},
144+
value = 'full',
145+
type = 'radioButton',
146+
path = "Settings/Graphics",
147+
},
134148
{
135149
optionName = "moreOptions",
136150
name = "More Options",

0 commit comments

Comments
 (0)