client log removal"
This commit is contained in:
parent
7b0fa9ca6c
commit
67d8ae5e65
@ -1,6 +1,4 @@
|
||||
const preact = require('preact');
|
||||
const { STATS, eventClasses, getCombatText, ConstructAvatar } = require('../utils');
|
||||
// const { animationDivs } = require('../animations');
|
||||
const GameConstruct = require('./game.construct');
|
||||
|
||||
function GamePanel(props) {
|
||||
@ -12,35 +10,12 @@ function GamePanel(props) {
|
||||
setActiveConstruct,
|
||||
sendInstanceState,
|
||||
sendGameReady,
|
||||
showLog,
|
||||
toggleLog,
|
||||
skip,
|
||||
quit,
|
||||
} = props;
|
||||
|
||||
if (!game) return <div>...</div>;
|
||||
|
||||
// if (showLog) {
|
||||
// const logs = game.log.map((l, i) => (<div key={i}>{l}</div>)).reverse();
|
||||
// return (
|
||||
// <main className="game">
|
||||
// <div className="instance-hdr">
|
||||
// <button
|
||||
// className="game-btn instance-btn instance-ui-btn left"
|
||||
// onClick={() => toggleLog(!showLog)}>
|
||||
// Game
|
||||
// </button>
|
||||
// <div className="spacer">
|
||||
// <div> </div>
|
||||
// </div>
|
||||
// </div>
|
||||
// <div className="logs">
|
||||
// {logs}
|
||||
// </div>
|
||||
// </main>
|
||||
// );
|
||||
// }
|
||||
|
||||
function actionClick() {
|
||||
if (game.phase === 'Finish') {
|
||||
sendInstanceState(game.instance);
|
||||
|
||||
@ -30,7 +30,6 @@ module.exports = {
|
||||
player: createReducer(null, 'SET_PLAYER'),
|
||||
reclaiming: createReducer(false, 'SET_RECLAIMING'),
|
||||
resolution: createReducer(null, 'SET_RESOLUTION'),
|
||||
showLog: createReducer(false, 'SET_SHOW_LOG'),
|
||||
skip: createReducer(false, 'SET_SKIP'),
|
||||
team: createReducer([null, null, null], 'SET_SELECTED_CONSTRUCTS'),
|
||||
vboxHighlight: createReducer([], 'SET_VBOX_HIGHLIGHT'),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user