Skip to content

Commit

Permalink
Redesign/unify mainmenu settings interface
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenwardy committed May 1, 2023
1 parent a421a1d commit d35672e
Show file tree
Hide file tree
Showing 12 changed files with 1,820 additions and 1,535 deletions.
5 changes: 5 additions & 0 deletions builtin/fstk/tabview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ local function add_tab(self,tab)
event_handler = tab.cbf_events,
get_formspec = tab.cbf_formspec,
tabsize = tab.tabsize,
formspec_version = tab.formspec_version,
on_change = tab.on_change,
tabdata = {},
}
Expand Down Expand Up @@ -69,6 +70,10 @@ local function get_formspec(self)
local tsize = tab.tabsize or {width=self.width, height=self.height}
prepend = string.format("size[%f,%f,%s]", tsize.width, tsize.height,
dump(self.fixed_size))

if tab.formspec_version then
prepend = ("formspec_version[%d]"):format(tab.formspec_version) .. prepend
end
end

local formspec = (prepend or "") .. self:tab_header() .. content
Expand Down
Loading

0 comments on commit d35672e

Please sign in to comment.