Skip to content

Commit

Permalink
Add tooltip for logistic group caption
Browse files Browse the repository at this point in the history
Helps when the name is too long and gets truncated.
  • Loading branch information
Sharparam committed Nov 7, 2024
1 parent cb99da5 commit 1a63a00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scripts/gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ local function update_cs_signals(state)
state.cs_signals_group_checkbox.state = section.active
local caption = create_logistic_section_caption(section)
state.cs_signals_group_checkbox.caption = caption
state.cs_signals_group_checkbox.tooltip = caption
end
for name, data in pairs(config.cs_signals) do
local value = state.combinator:get_cs_value(name)
Expand Down Expand Up @@ -2121,6 +2122,7 @@ local function create_window(player, combinator)
type = "checkbox",
name = "cs_signals_group_checkbox",
caption = cs_caption,
tooltip = cs_caption,
style = "caption_checkbox",
style_mods = {
horizontally_squashable = true
Expand Down

0 comments on commit 1a63a00

Please sign in to comment.