Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:PregameGetROCFileName

From RoR Wiki
Revision as of 19:47, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · Pregame functions
Version: WAR 1.4.8

Returns the file name of the Rules of Conduct string file.

fileName = PregameGetROCFileName()

Arguments

None.

Returns

fileName
string – Always "ROC.txt".

Details

  • The name is a fixed string in the client. The stock UI loads it as a string table from data/strings/<LANG>/pregame.
  • PregameHasROCChanged checks the same file.

Errors

None.

Example

From interfacecore/source/eularocwindow.lua:

elseif ( currentMode == MODE_ROC )
then
    LabelSetText( "EA_Window_EULAROCPopupTitleBarText", GetPregameString( StringTables.Pregame.LABEL_ROC_TITLE ) )
    LabelSetText( "EA_Window_EULAROCPopupAgreeCheckboxLabel", GetPregameString( StringTables.Pregame.LABEL_ROC_CHECKBOX ) )
    stringTableFileName = PregameGetROCFileName()
end

See also