implement skin config for search controls window
This commit is contained in:
parent
59cf769508
commit
4cabc5990f
|
@ -56,6 +56,12 @@
|
|||
"type": "bool",
|
||||
"default": false
|
||||
},
|
||||
|
||||
"gameplay_showSearchControls": {
|
||||
"label": "Show song select controls when searching",
|
||||
"type": "bool",
|
||||
"default": true
|
||||
},
|
||||
|
||||
"separator_f": {},
|
||||
"Debug": { "type": "label" },
|
||||
|
|
|
@ -35,6 +35,8 @@ local searchInfoPanelImage = gfx.CreateSkinImage("song_select/search_info_panel.
|
|||
|
||||
local defaultJacketImage = gfx.CreateSkinImage("song_select/loading.png", 0)
|
||||
|
||||
|
||||
|
||||
local difficultyLabelImages = {
|
||||
gfx.CreateSkinImage("song_select/plate/difficulty_labels/novice.png", 1),
|
||||
gfx.CreateSkinImage("song_select/plate/difficulty_labels/advanced.png", 1),
|
||||
|
@ -699,15 +701,17 @@ function drawSearch()
|
|||
|
||||
-- Draw search info panel
|
||||
gfx.BeginPath();
|
||||
local infoResize = 0.855;
|
||||
local sw, sh = gfx.ImageSize(searchInfoPanelImage)
|
||||
sw = sw * infoResize;
|
||||
sh = sh * infoResize;
|
||||
local infoXPos = 0;
|
||||
local infoYStartPos = desh - sh - 772 + 242;
|
||||
|
||||
local infoYPos = infoYStartPos + transitionSearchInfoOffsetY;
|
||||
gfx.ImageRect(infoXPos, infoYPos, sw, sh, searchInfoPanelImage, transitionSearchBackgroundInfoAlpha, 0)
|
||||
local infoResize = 0.855;
|
||||
local sw, sh = gfx.ImageSize(searchInfoPanelImage)
|
||||
sw = sw * infoResize;
|
||||
sh = sh * infoResize;
|
||||
local infoXPos = 0;
|
||||
local infoYStartPos = desh - sh - 772 + 242;
|
||||
local infoYPos = infoYStartPos + transitionSearchInfoOffsetY;
|
||||
|
||||
if (game.GetSkinSetting('gameplay_showSearchControls')) then
|
||||
gfx.ImageRect(infoXPos, infoYPos, sw, sh, searchInfoPanelImage, transitionSearchBackgroundInfoAlpha, 0)
|
||||
end
|
||||
|
||||
-- Draw Search is Active text
|
||||
gfx.BeginPath();
|
||||
|
|
Loading…
Reference in New Issue