Code edit (1 edits merged)
Please save this source code
Code edit (12 edits merged)
Please save this source code
User prompt
UPDATE BUY BUTTON STATUS WHEN STOCK VALUE CHANGES. (Hint: When graphIndex changes)
User prompt
Fix buy button status
User prompt
Update buy button status every time stock value changes or balance changes
User prompt
Like for sell button, disable buy button when current stock price is above balance
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
Pad timer text with 0 so the text length is always 3
Code edit (7 edits merged)
Please save this source code
User prompt
Fix Bug: 'Timeout.tick error: timerText.updateTime is not a function. (In 'timerText.updateTime(currentTime)', 'timerText.updateTime' is undefined)' in or related to this line: 'timerText.updateTime(currentTime);' Line Number: 551
User prompt
Update declaration of timerText to make it like balanceText and stockNumber, do not use a class
Code edit (1 edits merged)
Please save this source code
User prompt
For timer, use currentTime=nbTotalStock-graphIndex
User prompt
Fix Bug: 'Timeout.tick error: Can't find variable: startTime' in or related to this line: 'var currentTime = Math.floor((Date.now() - startTime) / 1000);' Line Number: 554
User prompt
Add a timerText at the top left
Code edit (4 edits merged)
Please save this source code
User prompt
Donβt do it, Just tell me how can I make the stocknumber text position fixed ? Independent from Texts lenghts
User prompt
Just tell me how can I make the stocknumber text position fixed ? Independent from Texts lenghts
User prompt
So how can I make the stocknumber text position fixed ? Independent from Texts lenghts
Code edit (5 edits merged)
Please save this source code
User prompt
Fix Bug: 'Script error.' in or related to this line: 'LK.gui.roght.addChild(stockValueText);' Line Number: 400
Code edit (1 edits merged)
Please save this source code
User prompt
Add a timerIcon at the left of the balance icon
Code edit (3 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -536,11 +536,12 @@
segmentDrawInterval = LK.setInterval(drawNextSegment, 10);
// Set up a timer to update the timer text every second
var timerUpdateInterval = LK.setInterval(function () {
var currentTime = nbTotalValues - graphIndex;
- var minutes = Math.floor(currentTime / 60).toString().padStart(2, '0');
- var seconds = (currentTime % 60).toString().padStart(2, '0');
- timerText.updateTime(minutes + ':' + seconds);
+ //var minutes = Math.floor(currentTime / 60).toString().padStart(2, '0');
+ //var seconds = (currentTime % 60).toString().padStart(2, '0');
+ //timerText.updateTime(minutes + ':' + seconds);
+ timerText.updateTime(currentTime);
}, 1000);
}
// Main game loop
LK.on('tick', function () {
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.