This is a documentation for Board Game Arena: play board games online !
Гаме оптионс анд преференцес: гамеоптионс.инц.пхп
Пређи на навигацију
Пређи на претрагу
Ин тхис филе, yоу цан дефине yоур гаме оптионс (= гаме вариантс).
Ноте: Иф yоур гаме хас но вариант, yоу дон'т хаве то модифy тхис филе.
// note: game variant ID should start at 100 (ie: 100, 101, 102, ...). The maximum is 199.
100 => array(
'name' => totranslate('my game option'),
'values' => array(
// A simple value for this option:
1 => array( 'name' => totranslate('option 1') )
// A simple value for this option.
// If this value is chosen, the value of "tmdisplay" is displayed in the game lobby
2 => array( 'name' => totranslate('option 2'), 'tmdisplay' => totranslate('option 2') ),
// Another value, with other options:
// beta=true => this option is in beta version right now.
// nobeginner=true => this option is not recommended for beginners
3 => array( 'name' => totranslate('option 3'), 'beta' => true, 'nobeginner' => true ),) )
)
)
Ноте²: Алл оптионс дефинед ин тхис филе схоулд хаве а цорреспондинг "гаме стате лабелс" wитх тхе саме ИД (сее "инитГамеСтатеЛабелс" ин yоургаме.гаме.пхп)
self::initGameStateLabels ( array (
...
"my_first_game_variant" => 100,
) );