New Game Log Verbosity setting
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
6 posts
• Page 1 of 1
New Game Log Verbosity setting
by spr » 13 Jul 2013, 02:29
Hi,
I have added (r22564) a new Game Log Verbosity setting that will let you change how much info is displayed in the Game Log. It is next to the Dev Mode setting. Possible levels are -
Please note, this setting does not affect the underlying log only what is displayed - you will still get the same list of log events you get currently if you copy to clipboard at the end of a game.
This also uses a new FComboPanel class that can be used to display a theme-aware combobox with a caption.
Cheers,
Steve.
I have added (r22564) a new Game Log Verbosity setting that will let you change how much info is displayed in the Game Log. It is next to the Dev Mode setting. Possible levels are -
- Code: Select all
GAME_OUTCOME,
MATCH_RESULTS,
TURN,
MULLIGAN,
ANTE,
PLAYER_CONROL,
COMBAT,
EFFECT_REPLACED,
LAND,
STACK_RESOLVE,
STACK_ADD,
DAMAGE,
MANA,
PHASE
Please note, this setting does not affect the underlying log only what is displayed - you will still get the same list of log events you get currently if you copy to clipboard at the end of a game.
This also uses a new FComboPanel class that can be used to display a theme-aware combobox with a caption.
Cheers,
Steve.
Re: New Game Log Verbosity setting
by Max mtg » 13 Jul 2013, 02:31
Oh, themed comboboxes are great!
Could you apply some to quest start dialog?
Could you apply some to quest start dialog?
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: New Game Log Verbosity setting
by spr » 13 Jul 2013, 02:56
Sure thing. TBH I have not seen too many combos around - it seems to be mainly lists, in the settings anyway. I will keep an eye out and update as I find them.Max mtg wrote:...Could you apply some to quest start dialog?
Cheers,
Steve.
Re: New Game Log Verbosity setting
by Max mtg » 13 Jul 2013, 03:38
There aren't many around the game interface.
deckChooser might be another frame to use comboboxes (instead of 5 radio buttons). Still I am not sure if that would make the control really better. It will take less vertical space, but won't be as easy to discover possible options and select one.
The importance of log entries you were dealing with originally had only numbers (there was no logEntryType enum) - there was a comment explaining that numbers :- so the log messages were somehow groupped, but regretfully numbers were hardcoded right in classes that originated the events to be logged. I have replaced numbers and string ids for event types with a single enum, but this lead to too many log levels.
deckChooser might be another frame to use comboboxes (instead of 5 radio buttons). Still I am not sure if that would make the control really better. It will take less vertical space, but won't be as easy to discover possible options and select one.
The importance of log entries you were dealing with originally had only numbers (there was no logEntryType enum) - there was a comment explaining that numbers :- so the log messages were somehow groupped, but regretfully numbers were hardcoded right in classes that originated the events to be logged. I have replaced numbers and string ids for event types with a single enum, but this lead to too many log levels.
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
Re: New Game Log Verbosity setting
by spr » 13 Jul 2013, 10:59
Max, you mean this? -Max mtg wrote:...
The importance of log entries you were dealing with originally had only numbers (there was no logEntryType enum) - there was a comment explaining that numbers...
- Code: Select all
/** Logging level:
* 0 - Turn [TURN]
* 2 - Stack items [STACK_RESOLVE]
* 3 - Poison Counters [DAMAGE]
* 4 - Mana abilities [MANA]
* 6 - All Phase information [PHASE]
*/
Cheers,
Steve
Re: New Game Log Verbosity setting
by Max mtg » 13 Jul 2013, 12:14
Yes. That one.
I have no idea nor preference which is better.
I have no idea nor preference which is better.
Single class for single responsibility.
- Max mtg
- Programmer
- Posts: 1997
- Joined: 02 Jul 2011, 14:26
- Has thanked: 173 times
- Been thanked: 334 times
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 24 guests