@@ -1094,56 +1094,6 @@ async fn main() {
10941094 current_song = main_levels[ current_song_index as usize ] . song . clone ( ) ;
10951095 }
10961096
1097- if bg_red_textbox. is_clicked ( ) {
1098- bg_red_textbox. active = true
1099- }
1100-
1101- if bg_red_textbox. is_not_clicked ( ) {
1102- bg_red_textbox. active = false
1103- }
1104-
1105- if bg_green_textbox. is_clicked ( ) {
1106- bg_green_textbox. active = true
1107- }
1108-
1109- if bg_green_textbox. is_not_clicked ( ) {
1110- bg_green_textbox. active = false
1111- }
1112-
1113- if bg_blue_textbox. is_clicked ( ) {
1114- bg_blue_textbox. active = true
1115- }
1116-
1117- if bg_blue_textbox. is_not_clicked ( ) {
1118- bg_blue_textbox. active = false
1119- }
1120-
1121-
1122-
1123- if grnd_red_textbox. is_clicked ( ) {
1124- grnd_red_textbox. active = true
1125- }
1126-
1127- if grnd_red_textbox. is_not_clicked ( ) {
1128- grnd_red_textbox. active = false
1129- }
1130-
1131- if grnd_green_textbox. is_clicked ( ) {
1132- grnd_green_textbox. active = true
1133- }
1134-
1135- if grnd_green_textbox. is_not_clicked ( ) {
1136- grnd_green_textbox. active = false
1137- }
1138-
1139- if grnd_blue_textbox. is_clicked ( ) {
1140- grnd_blue_textbox. active = true
1141- }
1142-
1143- if grnd_blue_textbox. is_not_clicked ( ) {
1144- grnd_blue_textbox. active = false
1145- }
1146-
11471097 bg_red_textbox. input ( ) ;
11481098 bg_green_textbox. input ( ) ;
11491099 bg_blue_textbox. input ( ) ;
@@ -1189,14 +1139,6 @@ async fn main() {
11891139 }
11901140 }
11911141
1192- if level_id_textbox. is_clicked ( ) {
1193- level_id_textbox. active = true
1194- }
1195-
1196- if level_id_textbox. is_not_clicked ( ) {
1197- level_id_textbox. active = false
1198- }
1199-
12001142 level_id_textbox. input ( ) ;
12011143 }
12021144
@@ -1256,22 +1198,6 @@ async fn main() {
12561198 . unwrap ( )
12571199 }
12581200
1259- if username_textbox. is_clicked ( ) {
1260- username_textbox. active = true
1261- }
1262-
1263- if username_textbox. is_not_clicked ( ) {
1264- username_textbox. active = false
1265- }
1266-
1267- if password_textbox. is_clicked ( ) {
1268- password_textbox. active = true
1269- }
1270-
1271- if password_textbox. is_not_clicked ( ) {
1272- password_textbox. active = false
1273- }
1274-
12751201 username_textbox. input ( ) ;
12761202 password_textbox. input ( ) ;
12771203 }
@@ -1284,22 +1210,6 @@ async fn main() {
12841210 game_state. 0 . set ( GameState :: Editor ) ;
12851211 }
12861212
1287- if level_name_textbox. is_clicked ( ) {
1288- level_name_textbox. active = true
1289- }
1290-
1291- if level_name_textbox. is_not_clicked ( ) {
1292- level_name_textbox. active = false
1293- }
1294-
1295- if level_desc_textbox. is_clicked ( ) {
1296- level_desc_textbox. active = true
1297- }
1298-
1299- if level_desc_textbox. is_not_clicked ( ) {
1300- level_desc_textbox. active = false
1301- }
1302-
13031213 level_name_textbox. input ( ) ;
13041214 level_desc_textbox. input ( ) ;
13051215 }
0 commit comments