onUiChangedState
Definition
-- @/lua/ge/extensions/util/richPresence.lua:348
local function onUiChangedState(toState, fromState)
-- log("I","onUiChangedState", "from="..dumps(fromState))
-- log("I","onUiChangedState", "to="..dumps(toState))
local state = 0 --invalid
if string.startswith(toState,"menu.") then
state = 3 --menu
if Steam then
Steam.timelineSetStateDescription("Menu",0)
end
elseif toState == "loading" then
state = 4 --loadingscreen
if Steam then
Steam.timelineSetStateDescription("Loading screen",0)
end
elseif string.startswith(toState,"scenario-") then
state = 2 --stagging
else
state = 1 --playing
end
if Steam then
Steam.timelineSetGameMode(state)
end
end
Callers
@/lua/ge/extensions/scenario/quickRace.lua
local function onUiChangedState (curUIState, prevUIState)
if curUIState == 'menu' and prevUIState == 'menu.quickraceOverview' then
@/lua/ge/extensions/campaign/exploration.lua
local function onUiChangedState (curUIState, prevUIState)
local state = M.state
@/lua/ge/extensions/gameplay/statistic.lua
local function onUiChangedState(toState, fromState)
-- log("E","onUiChangedState", dumps(toState))
@/lua/ge/extensions/core/settings/graphic.lua
local function onUiChangedState(toState, fromState)
if toState == 'menu.options.graphics' then
@/lua/ge/extensions/core/gamestate.lua
local function onUiChangedState(toState, fromState)
if stateStartsWithPausedPrefix(toState) then
@/lua/ge/extensions/core/quickAccess.lua
local function onUiChangedState(toState)
currentUiState = toState
@/lua/ge/extensions/flowgraph/nodes/ui/setUILayout.lua
function C:onUiChangedState(cur, prev)
if self.active then
@/lua/ge/extensions/career/modules/vehicleShopping.lua
local function onUiChangedState(toState)
currentUiState = toState
@/lua/ge/extensions/core/sounds.lua
local function onUiChangedState(toState, fromState)
if not missionMarkerInteraction then