Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr.Abc committed Jul 17, 2024
1 parent cffe1b3 commit 300d4eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Build/svencoop/abcenchance/res/SchemeBase.res
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ Scheme
"TextMenu.BgColor" "0 0 0 64"
//左侧菜单栏文字颜色
"TextMenu.TextColor" "222 222 222 222"
//菜单字体
"TextMenu.Font" "Title"

//标题背景
"Vote.TitleBgColor" "0 0 0 0"
Expand Down
4 changes: 2 additions & 2 deletions Build/svencoop_hidpi/abcenchance/res/TextMenuPanel.res
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"fieldName" "Menu"
"xpos" "p0.011"
"ypos" "p0.011"
"wide" "f4"
"tall" "f4"
"wide" "123"
"tall" "257"
"visible" "1"
"enabled" "1"
"autoResize" "3"
Expand Down
1 change: 1 addition & 0 deletions src/Source/HUD/vgui/textmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ void CTextMenu::ApplySchemeSettings(vgui::IScheme* pScheme) {
BaseClass::ApplySchemeSettings(pScheme);
SetBgColor(GetSchemeColor("TextMenu.BgColor", GetSchemeColor("Panel.BgColor", pScheme), pScheme));
m_pMenu->SetFgColor(GetSchemeColor("TextMenu.TextColor", GetSchemeColor("Label.FgColor", pScheme), pScheme));
m_pMenu->SetFont(pScheme->GetFont(pScheme->GetResourceString("TextMenu.Font"), IsProportional()));
}
void CTextMenu::ShowPanel(bool state) {
if (state == IsVisible())
Expand Down

0 comments on commit 300d4eb

Please sign in to comment.