Code edit (1 edits merged)
Please save this source code
User prompt
Add a new text2 named socksNumber, in the same way as balanceText
Code edit (1 edits merged)
Please save this source code
Code edit (18 edits merged)
Please save this source code
User prompt
Fix Bug: 'Uncaught ReferenceError: BalanceIcon is not defined' in or related to this line: 'var balanceIcon = game.addChild(new BalanceIcon());' Line Number: 307
User prompt
Add a new stockIcon asset similar to balanceIcon, place it at the right of balanceIcon
Code edit (1 edits merged)
Please save this source code
User prompt
add a new icon for balance
Code edit (1 edits merged)
Please save this source code
Code edit (7 edits merged)
Please save this source code
User prompt
'reuse' the axis labels and ensure that values are always visible without creating too many Text label instances, you can implement a recycling mechanism for the labels.
User prompt
make axis labels values dynamic so that visible values are always centered on stockValuesHistory[graphIndex + 1]
Code edit (2 edits merged)
Please save this source code
User prompt
call labels updatePosition with the y position of horizontal axis
Code edit (1 edits merged)
Please save this source code
User prompt
instiate axis labels (but not as children of vertical axis)
Code edit (4 edits merged)
Please save this source code
User prompt
detach the labels from the vertical axis : the should not be children of vertivalAxis
Code edit (1 edits merged)
Please save this source code
User prompt
Rotate labels by -90°
User prompt
AxisLabels should not be rotated like the axis
Code edit (1 edits merged)
Please save this source code
User prompt
add to the vertical axis dynamic values with a step of 50
Code edit (1 edits merged)
Please save this source code
User prompt
add dynamic values (step of 50) to the vertical axis
===================================================================
--- original.js
+++ change.js
@@ -8,8 +8,9 @@
size: 30,
fill: "#ffffff"
});
label.anchor.set(0.5, 0.5);
+ label.rotation = -Math.PI / 2;
self.addChild(label);
self.updatePosition = function (axisY) {
self.y = value; //axisY - value * dollarToYPixelRatio;
};
@@ -80,9 +81,8 @@
var label = new AxisLabel(i);
label.x = 300; // Position the label to the left of the axis
self.addChild(label);
label.updatePosition(self.y);
- label.rotation = -self.rotation; // Ensure label is not rotated with the axis
}
}
};
});
A Technical dark background. Nothing just a gradiant of colors from black to dark blue. Theme : stock market. background
A modern clean empty rectangular button without borders. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
without shadow
a basic empty ui popup with a black background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.