баг фикс

This commit is contained in:
Данила Мочалов 2022-11-19 19:47:16 +04:00
parent 64a31c1a76
commit aa76d75acf
2 changed files with 5 additions and 4 deletions

View File

@ -6,11 +6,11 @@ public class ExtraRoundWheelDraw implements IDrawningExtra{
private Color color; private Color color;
public void setExtraNum(int num) { public void setExtraNum(int num) {
switch (num) { switch (num) {
case 0: { case 3: {
wheelsCount = WheelsCount.Three; wheelsCount = WheelsCount.Three;
break; break;
} }
case 1: { case 4: {
wheelsCount = WheelsCount.Four; wheelsCount = WheelsCount.Four;
break; break;
} }

View File

@ -6,11 +6,11 @@ public class ExtraStarWheelDraw implements IDrawningExtra{
private Color color; private Color color;
public void setExtraNum(int num) { public void setExtraNum(int num) {
switch (num) { switch (num) {
case 0: { case 3: {
wheelsCount = WheelsCount.Three; wheelsCount = WheelsCount.Three;
break; break;
} }
case 1: { case 4: {
wheelsCount = WheelsCount.Four; wheelsCount = WheelsCount.Four;
break; break;
} }
@ -29,6 +29,7 @@ public class ExtraStarWheelDraw implements IDrawningExtra{
} }
public void DrawExtra(int startPosX, int startPosY, Graphics2D g) { public void DrawExtra(int startPosX, int startPosY, Graphics2D g) {
g.setColor(color);
extraWheelsDraw.DrawExtra(startPosX, startPosY, g); extraWheelsDraw.DrawExtra(startPosX, startPosY, g);
DrawStarOnWheel(startPosX, startPosY + 30, g); DrawStarOnWheel(startPosX, startPosY + 30, g);
DrawStarOnWheel(startPosX + 90, startPosY + 30, g); DrawStarOnWheel(startPosX + 90, startPosY + 30, g);