Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:PregameGetROCFileName

From RoR Wiki

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