User prompt
clean up the code
User prompt
make setting1 2 and 3 dissappear when the settings cog is clicked again
User prompt
make the settings dissappear when the settings cog is clicked again
User prompt
make the settings disappear when the cog wheel is clicked again
User prompt
tidy the code up
User prompt
put a text element on the setting1 button, saying if it is currently activated or not
Code edit (1 edits merged)
Please save this source code
User prompt
add a text box that appears when the settings cog is pressed, and disappears when it is pressed again. name it settings1status
Code edit (2 edits merged)
Please save this source code
User prompt
make the textbox be invisable at first, and only appear when the settings menu is active
Code edit (1 edits merged)
Please save this source code
User prompt
make a text box that keeps track if settings1 is activated or not
Code edit (1 edits merged)
Please save this source code
User prompt
make a text box that keeps track if settings1 is activated or not
User prompt
make a textbox that keeps track off the status of setting1 by checking if setting1 is true or false, make it a part of the settings menu.
User prompt
Fix Bug: 'TypeError: self.setText is not a function' in this line: 'self.setText('Setting 1 is ' + (status ? 'On' : 'Off'));' Line Number: 8
User prompt
make a textbox that keeps track off the status of setting1, make it a part of the settings menu
User prompt
make SettingsStatusText1 a part of the settings menu so it disappears and reappears when the settings menu is opened
User prompt
make SettingsStatusText1 a part of the settings menu so it disappears and reappears when the settings menu is opened
User prompt
rename SettingsStatusText to SettingsStatusText1
User prompt
name the settings status text settingstatustext1
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'Error: The supplied DisplayObject must be a child of the caller' in this line: 'self.visible = false;' Line Number: 15
User prompt
Fix Bug: 'Error: The supplied DisplayObject must be a child of the caller' in this line: 'self.visible = false;' Line Number: 16
User prompt
Fix Bug: 'Error: The supplied DisplayObject must be a child of the caller' in this line: 'self.visible = false;' Line Number: 17
===================================================================
--- original.js
+++ change.js
@@ -1,8 +1,8 @@
/****
* Classes
****/
-var SettingsStatusText = Container.expand(function (initialText) {
+var SettingsStatusText1 = Container.expand(function (initialText) {
var self = Container.call(this);
var statusText = new Text2(initialText, {
size: 50,
fill: '#ffffff',
@@ -58,11 +58,11 @@
object1.y = 2732 / 2 - 450;
}
object1.visible = true;
if (!settingsStatus) {
- var settingstatustext1 = game.addChildAt(new SettingsStatusText('Off'), game.children.length);
- settingstatustext1.x = 2048 / 2;
- settingstatustext1.y = 2732 / 2 - 600;
+ settingsStatus = game.addChildAt(new SettingsStatusText1('Off'), game.children.length);
+ settingsStatus.x = 2048 / 2;
+ settingsStatus.y = 2732 / 2 - 600;
}
settingsStatus.updateStatus(true);
} else {
setGameSetting('setting1', false);