Skip to content
Snippets Groups Projects
Commit 647f170e authored by DarkGod's avatar DarkGod
Browse files

update to dark ui

parent 80ea4f38
No related branches found
No related tags found
No related merge requests found
......@@ -137,14 +137,14 @@ function _M:generateListUi()
local zone = Textzone.new{width=self.c_desc.w, height=self.c_desc.h, text=string.toTString"Select the interface look. Metal is the default one. Simple is basic but takes less screen space.\nYou must restart the game for the change to take effect."}
list[#list+1] = { zone=zone, name=string.toTString"#GOLD##{bold}#Interface Style#WHITE##{normal}#", status=function(item)
return tostring(config.settings.tome.ui_theme2):capitalize()
return tostring(config.settings.tome.ui_theme3):capitalize()
end, fct=function(item)
local uis = {{name="Dark", ui="dark"}, {name="Metal", ui="metal"}, {name="Stone", ui="stone"}, {name="Simple", ui="simple"}}
self:triggerHook{"GameOptions:UIs", uis=uis}
Dialog:listPopup("Interface style", "Select style", uis, 300, 200, function(sel)
if not sel or not sel.ui then return end
game:saveSettings("tome.ui_theme2", ("tome.ui_theme2 = %q\n"):format(sel.ui))
config.settings.tome.ui_theme2 = sel.ui
game:saveSettings("tome.ui_theme3", ("tome.ui_theme3 = %q\n"):format(sel.ui))
config.settings.tome.ui_theme3 = sel.ui
self.c_list:drawItem(item)
end)
end,}
......
......@@ -44,7 +44,7 @@ Map.faction_danger_check = function(self, e, max) return (not max and e.rank > 3
Level.remove_old_entity_on_duplicate = true
-- Dialog UI
UIBase.ui = config.settings.tome.ui_theme2
UIBase.ui = config.settings.tome.ui_theme3
UIBase:setTextShadow(0.6)
-- Dialogs fonts
......
......@@ -55,7 +55,7 @@ if type(config.settings.tome.fullscreen_confusion) == "nil" then config.settings
if type(config.settings.tome.show_grid_lines) == "nil" then config.settings.tome.show_grid_lines = false end
if type(config.settings.tome.tinker_auto_switch) == "nil" then config.settings.tome.tinker_auto_switch = true end
if not config.settings.tome.fonts then config.settings.tome.fonts = {type="fantasy", size="normal"} end
if not config.settings.tome.ui_theme2 then config.settings.tome.ui_theme2 = "metal" end
if not config.settings.tome.ui_theme3 then config.settings.tome.ui_theme3 = "dark" end
if not config.settings.tome.uiset_mode then config.settings.tome.uiset_mode = "Minimalist" end
if not config.settings.tome.log_lines then config.settings.tome.log_lines = 5 end
if not config.settings.tome.log_fade then config.settings.tome.log_fade = 3 end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment