From 2f5ca7d637bb76af7538a063b178ad968fbc3fd4 Mon Sep 17 00:00:00 2001 From: "Mr. Nice" Date: Mon, 13 May 2019 18:38:33 +0100 Subject: [PATCH] listbox background transparency --- .../Src/ModConfigMenu/Classes/MCM_OptionsScreen.uc | 1 + .../Src/ModConfigMenu/Classes/MCM_SettingsPanel.uc | 1 + .../Src/ModConfigMenu/Classes/MCM_SettingsTab.uc | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_OptionsScreen.uc b/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_OptionsScreen.uc index 5ac5d6d..9e6d34a 100755 --- a/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_OptionsScreen.uc +++ b/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_OptionsScreen.uc @@ -167,6 +167,7 @@ simulated function CreateSkeleton() TitleHeader.SetPosition(10, 10); TabsList = Spawn(class'UIList', Container).InitList('ModTabSelectList', 10, HEADER_HEIGHT + TABS_LIST_TOP_PADDING, TABLIST_WIDTH - 30, OPTIONS_HEIGHT,, true); // Mr. Nice: addBG to stop mouse scrolling "dead spots" + TabsList.BG.SetAlpha(0); TabsList.SetSelectedNavigation(); if (MouseActive) { diff --git a/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_SettingsPanel.uc b/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_SettingsPanel.uc index 2e74111..a110cc6 100755 --- a/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_SettingsPanel.uc +++ b/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_SettingsPanel.uc @@ -46,6 +46,7 @@ simulated function UIPanel InitPanel(optional name InitName, optional name InitL SettingsList = Spawn(class'UIList', self).InitList('OptionsList', 0, 0, PANEL_WIDTH, PANEL_HEIGHT - FOOTER_HEIGHT + 29,, true); // Mr. Nice: addBG to stop mouse scrolling "dead spots" SettingsList.SetSelectedNavigation(); SettingsList.OnSelectionChanged = OptionsScreen.OnSelectionChanged; + SettingsList.BG.SetAlpha(0); return self; } diff --git a/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_SettingsTab.uc b/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_SettingsTab.uc index a8ec6ac..b5bd241 100755 --- a/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_SettingsTab.uc +++ b/ModConfigMenu/ModConfigMenu/Src/ModConfigMenu/Classes/MCM_SettingsTab.uc @@ -68,6 +68,10 @@ function OnSelect() OptionsScreen.AttentionType = COAT_CATEGORIES; MouseClick = false; } + else + { + OnReceiveFocus(); // Mr. Nice: to update the appearance + } } } else if (CustomPageCallback != none)