fix issues #4468 or #4699 - unpleasant scrollbars

master
Gliese852 2020-01-14 17:39:36 +03:00
parent 436db08636
commit 8063a5254b
4 changed files with 4 additions and 5 deletions

View File

@ -152,9 +152,8 @@ local function displayAutoPilotWindow()
if ui.showOptionsWindow then return end
player = Game.player
local current_view = Game.CurrentView()
ui.setNextWindowSize(Vector2(mainButtonSize.x * 6, mainButtonSize.y * 2), "Always")
ui.setNextWindowPos(Vector2(ui.screenWidth/2 + ui.reticuleCircleRadius / 4 * 3, ui.screenHeight - mainButtonSize.y * 1.5 - 8) , "Always")
ui.window("AutoPilot", {"NoTitleBar", "NoResize", "NoFocusOnAppearing", "NoBringToFrontOnFocus"},
ui.window("AutoPilot", {"NoTitleBar", "NoResize", "NoFocusOnAppearing", "NoBringToFrontOnFocus", "NoSavedSettings"},
function()
if current_view == "world" then
button_hyperspace()

View File

@ -35,7 +35,7 @@ local function displayCommsLog()
local current_view = Game.CurrentView()
if current_view == "world" then
ui.setNextWindowPos(Vector2(10, 10) , "Always")
ui.window("CommsLogButton", {"NoTitleBar", "NoResize", "NoFocusOnAppearing", "NoBringToFrontOnFocus"},
ui.window("CommsLogButton", {"NoTitleBar", "NoResize", "NoFocusOnAppearing", "NoBringToFrontOnFocus", "NoSavedSettings"},
function()
if ui.coloredSelectedIconButton(icons.comms, mainButtonSize, nil, mainButtonFramePadding, colors.buttonBlue, colors.white, 'Toggle full comms window') then
fullComms = not fullComms

View File

@ -131,7 +131,7 @@ local function displayShipFunctionWindow()
local current_view = Game.CurrentView()
local buttons = 6
ui.setNextWindowPos(Vector2(ui.screenWidth/2 - ui.reticuleCircleRadius - (mainButtonSize.x + 2 * mainButtonFramePadding) * buttons, ui.screenHeight - mainButtonSize.y * 3 - 8) , "Always")
ui.window("ShipFunctions", {"NoTitleBar", "NoResize", "NoFocusOnAppearing", "NoBringToFrontOnFocus"},
ui.window("ShipFunctions", {"NoTitleBar", "NoResize", "NoFocusOnAppearing", "NoBringToFrontOnFocus", "NoSavedSettings"},
function()
if current_view == "world" then
local v = ui.getCursorPos()

View File

@ -188,7 +188,7 @@ local function showInfoWindow()
-- do nothing at all
elseif not showWindow then
ui.setNextWindowPos(Vector2(ui.screenWidth - button_size.x * 3 - 10 , 10) , "Always")
ui.window("SystemTargetsSmall", {"NoTitleBar", "NoResize", "NoFocusOnAppearing", "NoBringToFrontOnFocus"},
ui.window("SystemTargetsSmall", {"NoTitleBar", "NoResize", "NoFocusOnAppearing", "NoBringToFrontOnFocus", "NoSavedSettings"},
function()
if ui.coloredSelectedIconButton(icons.system_overview, mainButtonSize, false, frame_padding, bg_color, fg_color, lui.TOGGLE_OVERVIEW_WINDOW) then
showWindow = true