File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -132,8 +132,12 @@ Blockly.JavaScript[GET_PROPERTY_OF_FIGHTER] = (block: Blockly.Block) => [
132132 block ,
133133 OBJECT ,
134134 Blockly . JavaScript . ORDER_MEMBER
135- ) } .${ block . getFieldValue ( PROPERTY_NAME ) } `,
136- Blockly . JavaScript . ORDER_MEMBER ,
135+ ) } .${ block . getFieldValue ( PROPERTY_NAME ) } ? ${ Blockly . JavaScript . valueToCode (
136+ block ,
137+ OBJECT ,
138+ Blockly . JavaScript . ORDER_MEMBER
139+ ) } .${ block . getFieldValue ( PROPERTY_NAME ) } : 0`,
140+ Blockly . JavaScript . ORDER_CONDITIONAL ,
137141] ;
138142
139143// 意思決定
@@ -488,7 +492,7 @@ Blockly.Blocks[CONSOLE_LOG] = {
488492 this . appendValueInput ( VALUE ) . appendField ( "console.log" ) ;
489493 this . setPreviousStatement ( true ) ;
490494 this . setNextStatement ( true ) ;
491- this . setColour ( 0 ) ;
495+ this . setColour ( 160 ) ;
492496 } ,
493497} ;
494498Blockly . JavaScript [ CONSOLE_LOG ] = ( block : Blockly . Block ) =>
Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ export default function Arena(props: ArenaProps) {
124124 const [ open , setOpen ] = useState ( false ) ;
125125 const [ errorMessage , setErrorMessage ] = useState ( " " ) ;
126126 const [ name , setName ] = useState ( "" ) ;
127+ const [ uploaded , setUploaded ] = useState ( false ) ;
127128 const { password } = useApiPasswordContext ( ) ;
128129 if ( ! password ) throw new Error ( "Missing password" ) ;
129130
@@ -143,6 +144,7 @@ export default function Arena(props: ArenaProps) {
143144 } ,
144145 password
145146 ) ;
147+ setUploaded ( true ) ;
146148 } ;
147149
148150 const handleClickOpen = ( ) => {
@@ -266,6 +268,16 @@ export default function Arena(props: ArenaProps) {
266268 name = { name }
267269 setName = { setName }
268270 />
271+ { uploaded && (
272+ < Dialog
273+ open = { uploaded }
274+ onClose = { ( ) => {
275+ setUploaded ( false ) ;
276+ } }
277+ >
278+ < Typography sx = { { px : 2 , py : 1 } } > アップロードしました</ Typography >
279+ </ Dialog >
280+ ) }
269281 </ >
270282 ) ;
271283}
Original file line number Diff line number Diff line change @@ -423,7 +423,7 @@ export default function TestPlay(props: TestPlayProps) {
423423 setSubmitted ( false ) ;
424424 } }
425425 >
426- { currentUser . program }
426+ < Typography sx = { { px : 2 , py : 1 } } > 反映しました </ Typography >
427427 </ Dialog >
428428 ) }
429429 </ >
You can’t perform that action at this time.
0 commit comments