Skip to content

Commit 516e042

Browse files
takaokoujiriversunlight
authored andcommitted
style: fix
1 parent b129fab commit 516e042

File tree

1 file changed

+36
-8
lines changed

1 file changed

+36
-8
lines changed

src/lib/ruby-to-blocks-converter/gdx_for.js

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,43 +13,71 @@ const GdxForConverter = {
1313
case 'gdx_for_acceleration':
1414
if (args.length === 1) {
1515
block = this._createBlock('gdxfor_getAcceleration', 'value');
16-
this._addInput(block, 'DIRECTION', this._createFieldBlock('gdxfor_menu_axisOptions', 'axisOptions', args[0]));
16+
this._addInput(
17+
block,
18+
'DIRECTION',
19+
this._createFieldBlock('gdxfor_menu_axisOptions', 'axisOptions', args[0])
20+
);
1721
}
1822
break;
1923
case 'gdx_for_force':
2024
block = this._createBlock('gdxfor_getForce', 'value');
2125
break;
2226
case 'gdx_for_tilted?':
2327
block = this._createBlock('gdxfor_isTilted', 'value');
24-
this._addInput(block, 'TILT', this._createFieldBlock('gdxfor_menu_tiltAnyOptions', 'tiltAnyOptions', args[0]));
28+
this._addInput(
29+
block,
30+
'TILT',
31+
this._createFieldBlock('gdxfor_menu_tiltAnyOptions', 'tiltAnyOptions', args[0])
32+
);
2533
break;
2634
case 'gdx_for_tilt_angle':
2735
block = this._createBlock('gdxfor_getTilt', 'value');
28-
this._addInput(block, 'TILT', this._createFieldBlock('gdxfor_menu_tiltOptions', 'tiltOptions', args[0]));
36+
this._addInput(
37+
block,
38+
'TILT',
39+
this._createFieldBlock('gdxfor_menu_tiltOptions', 'tiltOptions', args[0])
40+
);
2941
break;
3042
case 'gdx_for_falling?':
3143
block = this._createBlock('gdxfor_isFreeFalling', 'value');
3244
break;
3345
case 'gdx_for_spin_speed':
3446
block = this._createBlock('gdxfor_getSpinSpeed', 'value');
35-
this._addInput(block, 'DIRECTION', this._createFieldBlock('gdxfor_menu_axisOptions', 'axisOptions', args[0]));
47+
this._addInput(
48+
block,
49+
'DIRECTION',
50+
this._createFieldBlock('gdxfor_menu_axisOptions', 'axisOptions', args[0])
51+
);
3652
break;
3753
}
3854
} else {
39-
switch(args[0].value){
55+
switch (args[0].value) {
4056
case 'gdx_for_gesture':
4157
block = this._createBlock('gdxfor_whenGesture', 'hat');
42-
this._addInput(block, 'GESTURE', this._createFieldBlock('gdxfor_menu_gestureOptions', 'gestureOptions', args[1]));
58+
this._addInput(
59+
block,
60+
'GESTURE',
61+
this._createFieldBlock('gdxfor_menu_gestureOptions', 'gestureOptions', args[1])
62+
);
4363
this._setParent(rubyBlock, block);
4464
break;
4565
case 'gdx_force_sensor':
4666
block = this._createBlock('gdxfor_whenForcePushedOrPulled', 'hat');
47-
this._addInput(block, 'PUSH_PULL', this._createFieldBlock('gdxfor_menu_pushPullOptions', 'pushPullOptions', args[1]));
67+
this._addInput(
68+
block,
69+
'PUSH_PULL',
70+
this._createFieldBlock('gdxfor_menu_pushPullOptions', 'pushPullOptions', args[1])
71+
);
4872
this._setParent(rubyBlock, block);
4973
break;
5074
case 'gdx_for_tilted':
5175
block = this._createBlock('gdxfor_whenTilted', 'hat');
52-
this._addInput(block, 'TILT', this._createFieldBlock('gdxfor_menu_tiltAnyOptions', 'tiltAnyOptions', args[1]));
76+
this._addInput(
77+
block,
78+
'TILT',
79+
this._createFieldBlock('gdxfor_menu_tiltAnyOptions', 'tiltAnyOptions', args[1])
80+
);
5381
this._setParent(rubyBlock, block);
5482
break;
5583
}

0 commit comments

Comments
 (0)