display game id in scores tab

Moderator: keyser

display game id in scores tab

Postby PattogoTehen » 17 Dec 2013, 18:02

Image

than anyone can see which game got casted and could download the replay
My FAF projects:
LiveStreamer Launcher, Online Replay Analyzer, Replay Syncer, Custom FAF client

Paypal: pattogotehen at outlook.com
PattogoTehen
Avatar-of-War
 
Posts: 70
Joined: 29 Aug 2013, 19:19
Has liked: 0 time
Been liked: 44 times
FAF User Name: PattogoTehen

Re: display game id in scores tab

Postby PattogoTehen » 02 Feb 2014, 16:29

in "lua/ui/game/score.lua"

in "local function CreateMapNameLine(data)"
Code: Select all
local gameidstr = ""
if HasCommandLineArg("/savereplay") then
         local url = GetCommandLineArg("/savereplay",1)[1]
         local lastpos = string.find(url,"/",20)
         gameidstr = "Game: " .. string.sub(url,20,lastpos-1) .. " "
elseif HasCommandLineArg("/replayid") then
         gameidstr = "Game: " .. GetCommandLineArg("/replayid",1)[1] .. " "
end

...

group.name = UIUtil.CreateText(group, gameidstr .. data.mapname, 10, UIUtil.bodyFont)

My FAF projects:
LiveStreamer Launcher, Online Replay Analyzer, Replay Syncer, Custom FAF client

Paypal: pattogotehen at outlook.com
PattogoTehen
Avatar-of-War
 
Posts: 70
Joined: 29 Aug 2013, 19:19
Has liked: 0 time
Been liked: 44 times
FAF User Name: PattogoTehen


Return to FAF Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest