|
|
|
@ -141,8 +141,6 @@ local function save_settings()
@@ -141,8 +141,6 @@ local function save_settings()
|
|
|
|
|
-- Obtain the configuration editor values.. |
|
|
|
|
local font_name = imgui.GetVarValue(variables['var_FontFamily'][1]); |
|
|
|
|
local font_size = imgui.GetVarValue(variables['var_FontSize'][1]); |
|
|
|
|
local font_pos_x = imgui.GetVarValue(variables['var_FontPositionX'][1]); |
|
|
|
|
local font_pos_y = imgui.GetVarValue(variables['var_FontPositionY'][1]); |
|
|
|
|
local font_color = imgui.GetVarValue(variables['var_FontColor'][1]); |
|
|
|
|
local font_bgcolor = imgui.GetVarValue(variables['var_FontBGColor'][1]); |
|
|
|
|
local font_bgvisible= imgui.GetVarValue(variables['var_FontBGVisible'][1]); |
|
|
|
@ -150,12 +148,13 @@ local function save_settings()
@@ -150,12 +148,13 @@ local function save_settings()
|
|
|
|
|
local font_kicolor2 = imgui.GetVarValue(variables['var_KeyItemColor2'][1]); |
|
|
|
|
local use_compact = imgui.GetVarValue(variables['var_UseCompactMode'][1]); |
|
|
|
|
|
|
|
|
|
local f = AshitaCore:GetFontManager():Get('__itemwatch_display'); |
|
|
|
|
itemwatch_config.font.name = font_name; |
|
|
|
|
itemwatch_config.font.size = font_size; |
|
|
|
|
itemwatch_config.font.position = { font_pos_x, font_pos_y }; |
|
|
|
|
itemwatch_config.font.color = colortable_to_int(font_color); |
|
|
|
|
itemwatch_config.font.bgcolor = colortable_to_int(font_bgcolor); |
|
|
|
|
itemwatch_config.font.bgvisible = font_bgvisible; |
|
|
|
|
itemwatch_config.font.position = { f:GetPositionX(), f:GetPositionY() }; |
|
|
|
|
itemwatch_config.kicolor1 = colortable_to_int(font_kicolor1); |
|
|
|
|
itemwatch_config.kicolor2 = colortable_to_int(font_kicolor2); |
|
|
|
|
itemwatch_config.compact_mode = use_compact; |
|
|
|
|