+ sort option label to sortwheel
This commit is contained in:
parent
cacf98c112
commit
9bc037f5cc
|
@ -23,12 +23,10 @@ local cursorImages = {
|
|||
local diffCursorImage = gfx.CreateSkinImage("song_select/level_cursor.png", 1)
|
||||
|
||||
local filterInfoBgImage = gfx.CreateSkinImage("song_select/filter_info_bg.png", 1)
|
||||
local sortInfoBgImage = gfx.CreateSkinImage("song_select/sort_info_bg.png", 1)
|
||||
|
||||
local searchBgImage = gfx.CreateSkinImage("song_select/search_bg.png", 1)
|
||||
|
||||
local headerTitleImage = gfx.CreateSkinImage("song_select/header/title.png", 1)
|
||||
local headerGlowTitleImage = gfx.CreateSkinImage("song_select/header/title_glow.png", 1)
|
||||
|
||||
local defaultJacketImage = gfx.CreateSkinImage("song_select/loading.png", 0)
|
||||
|
||||
local difficultyLabelImages = {
|
||||
|
@ -450,15 +448,22 @@ function drawFilterInfo(deltatime)
|
|||
|
||||
local folderLabel = game.GetSkinSetting('_songWheelActiveFolderLabel')
|
||||
local subFolderLabel = game.GetSkinSetting('_songWheelActiveSubFolderLabel')
|
||||
local sortOptionLabel = game.GetSkinSetting('_songWheelActiveSortOptionLabel')
|
||||
|
||||
gfx.FontSize(24)
|
||||
gfx.TextAlign(gfx.TEXT_ALIGN_CENTER + gfx.TEXT_ALIGN_MIDDLE)
|
||||
|
||||
|
||||
gfx.BeginPath()
|
||||
gfx.Text(folderLabel or '', 167, 131);
|
||||
|
||||
|
||||
gfx.BeginPath()
|
||||
gfx.Text(subFolderLabel or '', 195, 166);
|
||||
|
||||
gfx.BeginPath()
|
||||
gfx.ImageRect(desw - 310 - 5, 108, 310, 75, sortInfoBgImage, 1, 0)
|
||||
|
||||
gfx.BeginPath()
|
||||
gfx.Text(sortOptionLabel or '', desw-165, 130);
|
||||
end
|
||||
|
||||
function drawSearch()
|
||||
|
|
|
@ -72,6 +72,8 @@ function drawButton(i, f, x, y)
|
|||
end
|
||||
|
||||
if (i == selection) then
|
||||
game.SetSkinSetting('_songWheelActiveSortOptionLabel', label);
|
||||
|
||||
local ascLabelText = 'Ascending'
|
||||
local dscLabelText = 'Descending'
|
||||
|
||||
|
|
Loading…
Reference in New Issue