refactored directory structure

This commit is contained in:
Hersi 2022-04-05 17:17:25 +02:00
parent b62dc2764a
commit c366753c36
15 changed files with 6 additions and 118 deletions

View File

@ -29,21 +29,15 @@ function VersionInfoPage:new(o)
}
local logStr = ReadGameFile("log_usc-game.exe.txt")
local gameVersion = getGameLogValue("Version", logStr)
local gameCommit = getGameLogValue("Git commit", logStr)
local GLVersion = getGameLogValue("OpenGL Version", logStr)
local GLSLVersion = getGameLogValue("OpenGL Shading Language Version", logStr)
local GLRenderer = getGameLogValue("OpenGL Renderer", logStr)
local GLVendor = getGameLogValue("OpenGL Vendor", logStr)
o:addField(ServiceField:new{label = "SKIN ID CODE", value = Version.getLongVersion()})
o:addField(UpdateField:new{label = "USC VERSION", value = gameVersion})
o:addField(UpdateField:new{label = "USC VERSION", value = getGameLogValue("Version", logStr)})
o:addField(ServiceField:new{label = "USC BRANCH", value = GameConfig["UpdateChannel"]})
o:addField(ServiceField:new{label = "USC GIT COMMIT", value = gameCommit})
o:addField(ServiceField:new{label = "GL VERSION", value = GLVersion})
o:addField(ServiceField:new{label = "GLSL VERSION", value = GLSLVersion})
o:addField(ServiceField:new{label = "GL RENDERER", value = GLRenderer})
o:addField(ServiceField:new{label = "GL VENDOR", value = GLVendor})
o:addField(ServiceField:new{label = "USC GIT COMMIT", value = getGameLogValue("Git commit", logStr)})
o:addField(ServiceField:new{label = "GL VERSION", value = getGameLogValue("OpenGL Version", logStr)})
o:addField(ServiceField:new{label = "GLSL VERSION", value = getGameLogValue("OpenGL Shading Language Version", logStr)})
o:addField(ServiceField:new{label = "GL RENDERER", value = getGameLogValue("OpenGL Renderer", logStr)})
o:addField(ServiceField:new{label = "GL VENDOR", value = getGameLogValue("OpenGL Vendor", logStr)})
o.selectedIndex = 2
o.content[2]:focus()

View File

@ -71,112 +71,6 @@ local function drawText(x, y, text, color, fontSize)
end
local rootMenu = {
{
label = "INPUT CHECK",
children = {
{label = "START BUTTON", value = "OFF"},
{label = "A BUTTON", value = "OFF"},
{label = "B BUTTON", value = "OFF"},
{label = "C BUTTON", value = "OFF"},
{label = "D BUTTON", value = "OFF"},
{label = "FX L BUTTON", value = "OFF"},
{label = "FX R BUTTON", value = "OFF"},
{
label = "VOL L",
value = 0,
render = function (deltaTime)
drawSlider(64, 0, 128, 24, game.GetKnob(0))
end
},
{
label = "VOL R",
value = 0,
render = function (deltaTime)
drawSlider(64, 0, 128, 24, game.GetKnob(1))
end
}
}
},
{
label = "SCREEN CHECK",
children = {
render = function (deltaTime)
end
}
},
{
label = "COLOR CHECK",
children = {
{
label = "RED",
render = function (deltaTime)
end
},
{
label = "YELLOW",
render = function (deltaTime)
end
},
{
label = "GREEN",
render = function (deltaTime)
end
},
{
label = "CYAN",
render = function (deltaTime)
end
},
{
label = "BLUE",
render = function (deltaTime)
end
},
{
label = "MAGENTA",
render = function (deltaTime)
end
},
{
label = "WHITE",
render = function (deltaTime)
end
},
},
},
{
label = "VERSION INFORMATION",
children = {
{label = "USC BRANCH"},
{label = "USC VERSION"},
{
label = "UPDATE",
render = function (deltaTime)
if updateVersion then
local color = {255, 0, 0}
updateTimer = updateTimer + deltaTime
if (updateTimer % updateFlickerTime) < (updateFlickerTime / 2) then
color = {255, 255, 0}
end
drawText(0, 0, "*UPDATE AVAILABLE (" .. updateVersion .. ")*", color)
end
end,
handler = function ()
if updateUrl then
Menu.Update()
end
end
},
}
},
{label = "IDOLS", children = {{label = "GRACEv6"}, {label = "NEARNOAHv6"}, {label = "IDKv6"}}},
{
label = "LASER COLORS",