Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
2d0ef36
Allow editbox elements to contain tooltips and clickable regions. Fix…
gajop Sep 19, 2016
5ca74de
update README
gajop Sep 19, 2016
99a215f
update README
gajop Sep 19, 2016
5692516
update README
gajop Sep 19, 2016
fc79304
update README
gajop Sep 19, 2016
859f41c
update README
gajop Sep 19, 2016
b996bbb
Added userName chat click comboBox tooltip. This is implemented in a …
GoogleFrog Sep 20, 2016
99387e5
Updated rank icons. Replaced the too many yellows with a green.
GoogleFrog Sep 21, 2016
46c6c36
Fixed lobby ranks.
GoogleFrog Sep 21, 2016
2411707
Revert rank changes.
GoogleFrog Sep 21, 2016
18a83ca
Campaign handler: make main holder element a transparent Panel instea…
Histidine91 Sep 21, 2016
b1df4f4
Added Matchmaker stats underneath the queue description. Fixes #314.
GoogleFrog Sep 21, 2016
bd28c15
Merge branch 'master' of https://github.com/Spring-Chobby/Chobby
GoogleFrog Sep 21, 2016
adea34c
Added "Watch" submenu. Fixes #308.
GoogleFrog Sep 21, 2016
5fe17a4
Made tooltip poke off the bottom of the screen if it doesn't fit on t…
GoogleFrog Sep 21, 2016
c7dae10
Chobby now tells you when you've got the wrong engine version.
GoogleFrog Sep 21, 2016
4659c93
Added URL clicking (bit not opening).
GoogleFrog Sep 22, 2016
407aebf
Battle list adds battles which are missing upon update.
GoogleFrog Sep 22, 2016
1cf5e28
VERSION{v0a.0.9.8}
GoogleFrog Sep 22, 2016
66f2e5c
Fixed #316. Server connectivity now works. Moved login and connectivi…
GoogleFrog Sep 23, 2016
9e4d015
Fixed some chotify brokenness.
GoogleFrog Sep 23, 2016
2cc6d0b
Fixed SP battle room error when offline.
GoogleFrog Sep 24, 2016
260729a
Fix campaign handler crash on DownloadFinished()
Histidine91 Sep 24, 2016
1b656c0
Patched a leak in one of the global variables in campaign handler.
GoogleFrog Sep 24, 2016
ca0e3d3
Merge branch 'master' of https://github.com/Spring-Chobby/Chobby
GoogleFrog Sep 24, 2016
6410c41
Queue panel fix.
GoogleFrog Sep 24, 2016
8467df5
Fix oops.
GoogleFrog Sep 24, 2016
91724b6
Chili VN uses SetVisibility() instead of Show()/Hide()
Histidine91 Sep 25, 2016
0a6bebc
Comment campaign handler
Histidine91 Sep 25, 2016
52e0ef9
Fix #319. Incorrect cross-day time.
GoogleFrog Sep 25, 2016
1b9fa51
Improved battle updated related interface.
GoogleFrog Sep 25, 2016
6e95aa9
Paid some of the debt incurred by the poor structure of the battle ro…
GoogleFrog Sep 25, 2016
2d9e264
Paid more debt to battle room window.
GoogleFrog Sep 25, 2016
d9940f2
Lobby music player correctly goes idle when game starts; restarts on …
Histidine91 Sep 25, 2016
56edc96
Battle room window updates on type change. Fixes #305.
GoogleFrog Sep 25, 2016
5a47f59
Add music tracks
Histidine91 Sep 25, 2016
3ad5f3a
Queue players waiting and ingame is now stored by the lobby interface.
GoogleFrog Sep 25, 2016
b8078b5
Fixes and MM layout.
GoogleFrog Sep 25, 2016
c366ad8
Moved server port and address into lobby settings.
GoogleFrog Sep 25, 2016
63c924a
Fixed #315. Settings remember their preset.
GoogleFrog Sep 25, 2016
a901bba
Added some interface settings. Added support for number-valued settings.
GoogleFrog Sep 25, 2016
34ed85e
Merge pull request #320 from Spring-Chobby/music
GoogleFrog Sep 25, 2016
054ff1a
Simplified the music widget.
GoogleFrog Sep 25, 2016
6e625d0
Expanded the abilities of the music widget.
GoogleFrog Sep 25, 2016
50c4b67
VERSION{v0a.0.9.9}
GoogleFrog Sep 25, 2016
69314fa
Settings load their defaults directly from the file if they are missi…
GoogleFrog Sep 25, 2016
8b5a0f9
Matchmaker ban timer now updates.
GoogleFrog Sep 25, 2016
f20f864
VERSION{v0a.0.9.10}
GoogleFrog Sep 25, 2016
55dbd09
Removed incomplete menu options from non-dev SP.
GoogleFrog Sep 25, 2016
ca74321
VERSION{v0a.0.9.11}
GoogleFrog Sep 25, 2016
c404ce6
VERSION{v0a.0.9.12}
GoogleFrog Sep 25, 2016
1ac33ba
Fixed crash with nil runningSince. The runningSince value is now set …
GoogleFrog Sep 26, 2016
04ffc8a
Added echos to _PrintError due to receiving a report "Incorrect argum…
GoogleFrog Sep 26, 2016
fe2db7d
Added chat font size option.
GoogleFrog Sep 26, 2016
265723b
Fix #330. Chobby can set taskbar icon.
GoogleFrog Sep 26, 2016
07b34ef
Fix spectators receiving add team and add AI upon change to custom ty…
GoogleFrog Sep 26, 2016
7a76b70
Fixed #333. Reliably map allyTeams instead of applying a mapping to r…
GoogleFrog Sep 26, 2016
9f79ef7
Added "User Page" to dropdown menu and made "Report" active (instead …
GoogleFrog Sep 26, 2016
5a8bbcf
Fix #332. The MP menu back button now ignores match maker rooms.
GoogleFrog Sep 26, 2016
4e293b2
Moved lobby:SetIngameStatus(true) out of widget:GamePreload and into …
GoogleFrog Sep 26, 2016
a099636
Fix #324. A uniform background image is displayed for the ingame over…
GoogleFrog Sep 26, 2016
bb6f070
Fixed #336. Added modoptions to SP startscript.
GoogleFrog Sep 26, 2016
5f9d06f
Fixed font changing.
GoogleFrog Sep 26, 2016
2821c32
Added sound for queue found.
GoogleFrog Sep 26, 2016
81a5764
Queue status panel checks for maps and games before displaying Instan…
GoogleFrog Sep 26, 2016
7cdeb3f
VERSION{v0a.0.9.13}
GoogleFrog Sep 26, 2016
8e1361f
PMs notify correctly.
GoogleFrog Sep 26, 2016
7fe03f9
Fix #340. Player list names are only shortened to make room for statu…
GoogleFrog Sep 26, 2016
d106fbe
VERSION{v0a.0.9.14}
GoogleFrog Sep 26, 2016
40c03e3
VERSION{v0a.0.9.15}
GoogleFrog Sep 26, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions LuaMenu/Addons/tablefunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ function Spring.Utilities.TableEqual(table1, table2)
return true
end

-- Returns whether the first table is equal to a subset of the second
function Spring.Utilities.TableSubsetEquals(table1, table2)
if not table1 then
return true
end
if not table2 then
return false
end
for key, value in pairs(table1) do
if table2[key] ~= value then
return false
end
end
return true
end

function Spring.Utilities.TableToString(data)
local str = ""

Expand Down
66 changes: 66 additions & 0 deletions LuaMenu/Addons/timeFunctions.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@

Spring.Utilities = Spring.Utilities or {}

-------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------

function Spring.Utilities.GetTimeToPast(pastTimeString, includeSeconds)
if (not pastTimeString) or (type(pastTimeString) ~= "string") then
return "??"
end

-- Example: 2016-07-21T14:49:00.4731696Z
local pastTime = {
string.sub(pastTimeString, 18, 19),
string.sub(pastTimeString, 15, 16),
string.sub(pastTimeString, 12, 13),
string.sub(pastTimeString, 9, 10),
--string.sub(pastTimeString, 6, 7),
--string.sub(pastTimeString, 0, 4),
}

for i = 1, #pastTime do
pastTime[i] = tonumber(pastTime[i])
if not pastTime[i] then
return "??"
end
end

local currentTime = {
tonumber(os.date("!%S")),
tonumber(os.date("!%M")),
tonumber(os.date("!%H")),
tonumber(os.date("!%d")),
--tonumber(os.date("!%m")),
--tonumber(os.date("!%Y")),
}

local pastSeconds = pastTime[1] + 60*(pastTime[2] + 60*pastTime[3])
local currentSeconds = currentTime[1] + 60*(currentTime[2] + 60*currentTime[3])
if currentTime[4] ~= pastTime[4] then
-- Always assume that the past time is one day behind.
currentSeconds = currentSeconds + 86400
end

local distanceSeconds = currentSeconds - pastSeconds
local hours = math.floor(distanceSeconds/3600)
local minutes = math.floor(distanceSeconds/60)%60
local seconds = math.floor(distanceSeconds)%60

--Spring.Echo("pastTime", pastTime[1], pastTime[2], pastTime[3], pastTime[4], "pastSeconds", pastSeconds)
--Spring.Echo("currentTime", currentTime[1], currentTime[2], currentTime[3], currentTime[4], "currentSeconds", currentSeconds)
--Spring.Echo("distanceSeconds", distanceSeconds)

local timeText = ""
if hours > 0 then
timeText = timeText .. hours .. "h "
end
if hours > 0 or minutes > 0 or (not includeSeconds) then
timeText = timeText .. minutes .. "m "
end
if includeSeconds then
timeText = timeText .. seconds .. "s "
end

return timeText
end
209 changes: 144 additions & 65 deletions LuaMenu/configs/gameConfig/zk/settingsMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,75 +2,90 @@ local settings = {
{
name = "Graphics",
presets = {
Minimal = {
WaterType = "Basic",
WaterQuality = "Low",
DeferredRendering = "Off",
Shadows = "None",
ShadowDetail = "Low",
ParticleLimit = "Minimal",
TerrainDetail = "Minimal",
VegetationDetail = "Minimal",
CompatibilityMode = "On",
AntiAliasing = "Off",
ShaderDetail = "Minimal",
FancySky = "Off",
{
name = "Minimal",
settings = {
WaterType = "Basic",
WaterQuality = "Low",
DeferredRendering = "Off",
Shadows = "None",
ShadowDetail = "Low",
ParticleLimit = "Minimal",
TerrainDetail = "Minimal",
VegetationDetail = "Minimal",
CompatibilityMode = "On",
AntiAliasing = "Off",
ShaderDetail = "Minimal",
FancySky = "Off",
}
},
Low = {
WaterType = "Bumpmapped",
WaterQuality = "Low",
DeferredRendering = "Off",
Shadows = "Units Only",
ShadowDetail = "Low",
ParticleLimit = "Low",
TerrainDetail = "Low",
VegetationDetail = "Low",
CompatibilityMode = "Off",
AntiAliasing = "Off",
ShaderDetail = "Low",
FancySky = "Off",
{
name = "Low",
settings = {
WaterType = "Bumpmapped",
WaterQuality = "Low",
DeferredRendering = "Off",
Shadows = "Units Only",
ShadowDetail = "Low",
ParticleLimit = "Low",
TerrainDetail = "Low",
VegetationDetail = "Low",
CompatibilityMode = "Off",
AntiAliasing = "Off",
ShaderDetail = "Low",
FancySky = "Off",
}
},
Medium = {
WaterType = "Bumpmapped",
WaterQuality = "Medium",
DeferredRendering = "On",
Shadows = "Units Only",
ShadowDetail = "Medium",
ParticleLimit = "Medium",
TerrainDetail = "Medium",
VegetationDetail = "Medium",
CompatibilityMode = "Off",
AntiAliasing = "Off",
ShaderDetail = "Medium",
FancySky = "Off",
{
name = "Medium",
settings = {
WaterType = "Bumpmapped",
WaterQuality = "Medium",
DeferredRendering = "On",
Shadows = "Units Only",
ShadowDetail = "Medium",
ParticleLimit = "Medium",
TerrainDetail = "Medium",
VegetationDetail = "Medium",
CompatibilityMode = "Off",
AntiAliasing = "Off",
ShaderDetail = "Medium",
FancySky = "Off",
}
},
High = {
WaterType = "Bumpmapped",
WaterQuality = "High",
DeferredRendering = "On",
Shadows = "Units and Terrain",
ShadowDetail = "Medium",
ParticleLimit = "High",
TerrainDetail = "High",
VegetationDetail = "High",
CompatibilityMode = "Off",
AntiAliasing = "Low",
ShaderDetail = "High",
FancySky = "Off",
{
name = "High",
settings = {
WaterType = "Bumpmapped",
WaterQuality = "High",
DeferredRendering = "On",
Shadows = "Units and Terrain",
ShadowDetail = "Medium",
ParticleLimit = "High",
TerrainDetail = "High",
VegetationDetail = "High",
CompatibilityMode = "Off",
AntiAliasing = "Low",
ShaderDetail = "High",
FancySky = "Off",
}
},
Ultra = {
WaterType = "Bumpmapped",
WaterQuality = "High",
DeferredRendering = "On",
Shadows = "Units and Terrain",
ShadowDetail = "Ultra",
ParticleLimit = "Ultra",
TerrainDetail = "Ultra",
VegetationDetail = "Ultra",
CompatibilityMode = "Off",
AntiAliasing = "High",
ShaderDetail = "Ultra",
FancySky = "On",
{
name = "Ultra",
settings = {
WaterType = "Bumpmapped",
WaterQuality = "High",
DeferredRendering = "On",
Shadows = "Units and Terrain",
ShadowDetail = "Ultra",
ParticleLimit = "Ultra",
TerrainDetail = "Ultra",
VegetationDetail = "Ultra",
CompatibilityMode = "Off",
AntiAliasing = "High",
ShaderDetail = "Ultra",
FancySky = "On",
}
},
},

Expand Down Expand Up @@ -458,6 +473,66 @@ local settings = {
},
},
},
{
name = "Interface",
presets = {
{
name = "Default",
settings = {
MouseZoomSpeed = 25,
IconDistance = 151,
MiddlePanSpeed = 10,
CameraPanSpeed = 10,
}
},
},
settings = {
{
name = "IconDistance",
humanName = "Icon Distance",
isNumberSetting = true,
applyName = "UnitIconDist",
minValue = 0,
maxValue = 10000,
springConversion = function(value)
return value
end,
},
{
name = "MouseZoomSpeed",
humanName = "Mouse Zoom Speed",
isNumberSetting = true,
applyName = "ScrollWheelSpeed",
minValue = 1,
maxValue = 500,
springConversion = function(value)
return value*-1
end,
},
{
name = "MiddlePanSpeed",
humanName = "Middle Click Pan Speed",
isNumberSetting = true,
applyName = "MiddleClickScrollSpeed",
minValue = 0,
maxValue = 1000,
springConversion = function(value)
return value*-1/2000
end,
},
{
name = "CameraPanSpeed",
humanName = "Camera Pan Speed",
isNumberSetting = true,
applyName = "OverheadScrollSpeed",
minValue = 0,
maxValue = 1000,
springConversion = function(value)
return value
end,
},
},
},
}

local settingsDefaults = {
Expand All @@ -473,6 +548,10 @@ local settingsDefaults = {
AntiAliasing = "Low",
ShaderDetail = "High",
FancySky = "Off",
MouseZoomSpeed = 25,
IconDistance = 151,
MiddlePanSpeed = 10,
CameraPanSpeed = 10,
}

return settings, settingsDefaults
13 changes: 13 additions & 0 deletions LuaMenu/configs/gameConfig/zk/singleplayerMenu.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@

-- Only show reasonably complete things in ZK mode
if WG.Chobby.Configuration.singleplayer_mode == 2 then
return {
{
name = "skirmish",
control = WG.BattleRoomWindow.GetSingleplayerControl(),
entryCheck = WG.BattleRoomWindow.SetSingleplayerGame,
},
}
end

-- Show everything in ZK Dev mode.
return {
{
name = "quick_start",
Expand Down
Binary file added LuaMenu/configs/gameConfig/zk/taskbarLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading