User prompt
Add a new background asset named FarBackground
Code edit (2 edits merged)
Please save this source code
User prompt
Add a new background asset named Board that will be placed under the current background
Code edit (4 edits merged)
Please save this source code
User prompt
Set horizontalAxis alpha to 0 when its y > game.height * 0.8 and else set it to 1
Code edit (4 edits merged)
Please save this source code
User prompt
Make buttons text a bit smaller when pressed to simulate press
Code edit (1 edits merged)
Please save this source code
User prompt
text of buttons should always be on top of buttons
User prompt
restore bigButton asset when buttons are released
Code edit (1 edits merged)
Please save this source code
User prompt
setTextureFromAsset and setTexture doesn't work, find something else
User prompt
Fix Bug: 'TypeError: buttonGraphics.setTexture is not a function' in or related to this line: 'buttonGraphics.setTexture('bigButtonPressed');' Line Number: 114
User prompt
Fix Bug: 'TypeError: buttonGraphics.setTextureFromAsset is not a function' in or related to this line: 'buttonGraphics.setTextureFromAsset('bigButtonPressed');' Line Number: 114
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: buttonGraphics.setTexture is not a function' in or related to this line: 'buttonGraphics.setTexture('bigButtonPressed');' Line Number: 114
Code edit (1 edits merged)
Please save this source code
User prompt
when button is pressed switch button asset to bigButtonPressed
User prompt
make buttons text bold
Code edit (1 edits merged)
Please save this source code
User prompt
make Texts on buttons 5 times bigger
User prompt
change the tints of the buttons : buy = orange / sell = green
User prompt
Fix Bug: 'ReferenceError: Can't find variable: stock' in or related to this line: 'sellStock(stock); // 'stock' will need to be defined in the scope where this button is used' Line Number: 130
Code edit (1 edits merged)
Please save this source code
User prompt
Move buyButton and sellbutton init code at line 216
===================================================================
--- original.js
+++ change.js
@@ -103,9 +103,10 @@
});
self.setText = function (text) {
var buttonText = new Text2(text, {
size: 250,
- fill: "#ffffff"
+ fill: "#ffffff",
+ font: "'Arial-BoldMT', 'Arial', sans-serif"
});
buttonText.anchor.set(0.5, 0.5);
self.addChild(buttonText);
};
@@ -124,9 +125,10 @@
});
self.setText = function (text) {
var buttonText = new Text2(text, {
size: 250,
- fill: "#ffffff"
+ fill: "#ffffff",
+ font: "'Arial-BoldMT', 'Arial', sans-serif"
});
buttonText.anchor.set(0.5, 0.5);
self.addChild(buttonText);
};
@@ -208,9 +210,9 @@
// Create buttons
var buyButton = game.addChild(new BuyButton());
buyButton.setText('Buy');
buyButton.x = game.width * 0.25;
-buyButton.y = game.height - buyButton.height / 2 - 20 + 200;
+buyButton.y = game.height - buyButton.height / 2 - 20;
var sellButton = game.addChild(new SellButton());
sellButton.setText('Sell');
sellButton.x = game.width * 0.75;
sellButton.y = game.height - sellButton.height / 2 - 20;
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.