Added option to change the vertical offset for bar text.
Added option to change the horizontal offset for the left bar text.
This commit is contained in:
@@ -1917,6 +1917,19 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_SIZE"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_SIZE_DESC"],
|
||||
},
|
||||
{--text yoffset
|
||||
type = "range",
|
||||
get = function() return currentInstance.row_info.text_yoffset end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "SetBarTextSettings", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, value)
|
||||
afterUpdate()
|
||||
end,
|
||||
min = -10,
|
||||
max = 10,
|
||||
step = 1,
|
||||
name = "Text Y Offset", -- Loc ["STRING_OPTIONS_TEXT_YOFFSET"]
|
||||
desc = "Change the vertical offset for both left and right texts.", -- Loc ["STRING_OPTIONS_TEXT_YOFFSET_DESC"]
|
||||
},
|
||||
{--text font 3
|
||||
type = "select",
|
||||
get = function() return currentInstance.row_info.font_face end,
|
||||
@@ -2004,6 +2017,19 @@ do
|
||||
name = Loc ["STRING_OPTIONS_TEXT_LTRANSLIT"],
|
||||
desc = Loc ["STRING_OPTIONS_TEXT_LTRANSLIT_DESC"],
|
||||
},
|
||||
{--text offset
|
||||
type = "range",
|
||||
get = function() return currentInstance.row_info.textL_offset end,
|
||||
set = function(self, fixedparam, value)
|
||||
editInstanceSetting(currentInstance, "SetBarTextSettings", nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, value)
|
||||
afterUpdate()
|
||||
end,
|
||||
min = -10,
|
||||
max = 50,
|
||||
step = 1,
|
||||
name = "Offset", -- Loc ["STRING_OPTIONS_TEXT_LOFFSET"]
|
||||
desc = "Change the horizontal offset.", -- Loc ["STRING_OPTIONS_TEXT_LOFFSET_DESC"]
|
||||
},
|
||||
|
||||
{type = "blank"}, --13
|
||||
|
||||
|
||||
Reference in New Issue
Block a user