Page 1 of 1

Table info shown before joining

Posted: 16 November 2020, 19:39
by MikeIsHere
Games like Tock show the table settings before you join like
2 vs 2, 5: any player pawn, Jack: usable on own starting pawn
This is shown in the element table_top_status_detailed

My game Cribbage does not show the options that can be set (game length, match length, skunk options)

What can I do / change as a developer to have these options show on table creation?

Re: Table info shown before joining

Posted: 16 November 2020, 20:14
by RicardoRix
Should really happen with all games:

SUGGESTION VOTE:
https://boardgamearena.com/bug?id=14237

Re: Table info shown before joining

Posted: 16 November 2020, 20:17
by MikeIsHere
Agreed, I was just wondering why it worked for some games.

But thank you for the link I will upvote

Re: Table info shown before joining

Posted: 16 November 2020, 20:20
by XCID
That's what tmdisplay is for in the gameoptions.inc.php

Example

Code: Select all

    100 => [
        'name'    => totranslate('Direction variant'),
        'values'  => [
            1 => [
                'name'        => totranslate('Off'),
                'description' => totranslate('Passing cards to the left only'),
            ],
            2 => [
                'name'        => totranslate('On'),
                'tmdisplay'   => totranslate('Direction variant'),
                'description' => totranslate('Passing cards to the left and then to the right each round'),
            ],
        ],
        'default' => 1,
    ],

Re: Table info shown before joining

Posted: 16 November 2020, 20:41
by MikeIsHere
thank you that help me find the documentation

http://en.doc.boardgamearena.com/Game_o ... ns.inc.php