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
Code edit (3 edits merged)
Please save this source code
User prompt
fix text markers position because gui coordinates are not like other assets coordinates
User prompt
fix text markers position because LK.gui don't work with coordinates like game.height * 0.5
Code edit (4 edits merged)
Please save this source code
User prompt
add a series of 3 texts in the horizontal center of the screen to make stock value markers - text = "0$" at y=game.height*0.75 - text = "50$" at y=game.height*0.5 - text = "100$" at y=game.height*0.25
User prompt
flash the screen in the color of the button when pressed
Code edit (1 edits merged)
Please save this source code
User prompt
Set alpha of farbackground to 0.5
===================================================================
--- original.js
+++ change.js
@@ -282,9 +282,9 @@
fill: "#ffffff"
});
stockValueMarker50.anchor.set(0.5, 0);
stockValueMarker50.x = game.width / 2;
-stockValueMarker50.y = game.height * 0.5;
+stockValueMarker50.y = 0; //game.height * 0.5;
LK.gui.center.addChild(stockValueMarker50);
var stockValueMarker100 = new Text2('100$', {
size: 50,
fill: "#ffffff"
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.