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