+ 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 diffCursorImage = gfx.CreateSkinImage("song_select/level_cursor.png", 1)
|
||||||
|
|
||||||
local filterInfoBgImage = gfx.CreateSkinImage("song_select/filter_info_bg.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 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 defaultJacketImage = gfx.CreateSkinImage("song_select/loading.png", 0)
|
||||||
|
|
||||||
local difficultyLabelImages = {
|
local difficultyLabelImages = {
|
||||||
|
@ -450,6 +448,7 @@ function drawFilterInfo(deltatime)
|
||||||
|
|
||||||
local folderLabel = game.GetSkinSetting('_songWheelActiveFolderLabel')
|
local folderLabel = game.GetSkinSetting('_songWheelActiveFolderLabel')
|
||||||
local subFolderLabel = game.GetSkinSetting('_songWheelActiveSubFolderLabel')
|
local subFolderLabel = game.GetSkinSetting('_songWheelActiveSubFolderLabel')
|
||||||
|
local sortOptionLabel = game.GetSkinSetting('_songWheelActiveSortOptionLabel')
|
||||||
|
|
||||||
gfx.FontSize(24)
|
gfx.FontSize(24)
|
||||||
gfx.TextAlign(gfx.TEXT_ALIGN_CENTER + gfx.TEXT_ALIGN_MIDDLE)
|
gfx.TextAlign(gfx.TEXT_ALIGN_CENTER + gfx.TEXT_ALIGN_MIDDLE)
|
||||||
|
@ -459,6 +458,12 @@ function drawFilterInfo(deltatime)
|
||||||
|
|
||||||
gfx.BeginPath()
|
gfx.BeginPath()
|
||||||
gfx.Text(subFolderLabel or '', 195, 166);
|
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
|
end
|
||||||
|
|
||||||
function drawSearch()
|
function drawSearch()
|
||||||
|
|
|
@ -72,6 +72,8 @@ function drawButton(i, f, x, y)
|
||||||
end
|
end
|
||||||
|
|
||||||
if (i == selection) then
|
if (i == selection) then
|
||||||
|
game.SetSkinSetting('_songWheelActiveSortOptionLabel', label);
|
||||||
|
|
||||||
local ascLabelText = 'Ascending'
|
local ascLabelText = 'Ascending'
|
||||||
local dscLabelText = 'Descending'
|
local dscLabelText = 'Descending'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue