@@ -703,7 +703,7 @@ def "appearance" (
703703
704704def "account" (
705705 local w = frame.width - 100
706- page_len = 710
706+ page_len = 675
707707
708708 goto 0 frame.top - 50 + scroll_y
709709
@@ -783,20 +783,26 @@ def "account" (
783783 )
784784
785785 if subcategory == "connections" (
786+ /*
786787 local links = user["sys.links"]
787788 if links.contains("github") and github_data == "Loading" (
788789 github_data = ("https://api.github.com/user/" ++ links.github.id).getAsync()
789790 )
790- /*
791- page_len = 50
792791 setting_do "Github: " ++ (links.contains("github") ? github_data.login "Click To Link") w def() -> (
793792 network "server" "link" {
794793 service: "github",
795794 username: "What is your github username?".ask()
796795 }
797796 )
798797 */
798+ page_len = 50
799+ goto 0 frame.top + scroll_y + 25
800+
799801 set_x 0 : chy#-50
802+ setting_do "Change Email (" ++ user.email ++ ")" w def() -> (
803+ network "update" "email" "Enter Your New Email".ask()
804+ )
805+
800806 return
801807 )
802808
@@ -807,20 +813,22 @@ def "account" (
807813 )
808814 set_x 0 : chy#-50
809815 centext "Public Data:" 10 : c#txtc
810- local items = [
811- "username",
812- "profile picture",
813- "bio",
814- "theming and colours",
815- "rotur credit total",
816- "your rotur operating system",
817- "account creation date"
818- ]
816+ local items = {
817+ "username": "username" ,
818+ "profile picture": "pfp" ,
819+ "bio": "bio" ,
820+ "theming and colours": "theme" ,
821+ "rotur credit total": "sys.currency" ,
822+ "your rotur operating system": "system" ,
823+ "account creation date": "created"
824+ }
819825 change_y -50
820- for i items.len (
826+ local names = items.getKeys()
827+ local keys = items.getValues()
828+ for i names.len (
821829 square w 30 10 : c#prim
822830 set_x w / -2 + 10
823- text items [i] 10 : c#txtc
831+ text names [i].toTitle() 10 : c#txtc tooltip#keys[i]
824832 set_x 0 : chy#-50
825833 )
826834 return
@@ -879,25 +887,28 @@ def "account" (
879887 current_pfp = ""
880888 )
881889 )
882- if network.connected and all_badges == "" (
890+ if network.connected and [" all_badges","Loading"].contains(all_badges) (
883891 all_badges = "https://raw.githubusercontent.com/RoturTW/Badges/main/badges.json".getAsync()
884892 )
885893 if all_badges.istype("object") (
886894 badges = user["sys.badges"]
887- loc -2 2 -30 -130
895+ local w2 = badges.len * 30
896+ goto pos[1] + 85 + (w2 * .5) pos[2]
897+ square w2 - 5 25 10 : c#prim
898+ goto pos[1] + 100 pos[2]
888899 each badge badges (
889900 icon all_badges[badge].icon 1.2 : tooltip#badge
890901 if onclick (
891902 say all_badges[badge].description
892903 )
893- change_x - 30
904+ change_x 30
894905 )
895906 )
896907
897908 local bio_data = inputs.bio.join("\n")
898909
899910 goto w / -2 frame.top - (w / 3) - 70 + scroll_y
900- text "Bio (" ++ bio_data.len ++ "/200)" 10
911+ text "Bio (" ++ bio_data.len ++ "/200)" 10 : c#txtc
901912
902913 if bio_data != user.bio (
903914 set_x w / 2 - 10
@@ -918,16 +929,13 @@ def "account" (
918929 network "update" "password" "Enter Your New Password".ask().hashMD5()
919930 )
920931
932+ change_y -20
933+
921934 set_x 0 : chy#-50
922935 setting_do "Privacy" w def() -> (
923936 subcategory = "Privacy"
924937 )
925938
926- set_x 0 : chy#-50
927- setting_do "Email: " ++ user.email w def() -> (
928- network "update" "email" "Enter Your Email".ask()
929- )
930-
931939 set_x 0 : chy#-50
932940 setting_do "File System Backups" w def() -> (
933941 subcategory = "Backups"
@@ -937,6 +945,8 @@ def "account" (
937945 setting_do "Connections" w def() -> (
938946 subcategory = "Connections"
939947 )
948+
949+ change_y -20
940950
941951 set_x 0 : chy#-50
942952 setting_do "Logout" w def() -> (
@@ -1400,4 +1410,4 @@ if gotosubcategory != "" and mouse_down.not (
14001410 gotosubcategory = ""
14011411)
14021412window "show"
1403- import "win-buttons"
1413+ import "win-buttons"
0 commit comments