sys.bin.AppStore.app.com.jnngl.system.AppStore.class Maven / Gradle / Ivy
???? <? App Store 'com/jnngl/totalcomputers/system/TotalOS screenWidth I
screenHeight
9com/jnngl/totalcomputers/system/desktop/WindowApplication R(Lcom/jnngl/totalcomputers/system/TotalOS;Ljava/lang/String;IILjava/lang/String;)V com/jnngl/system/AppStore
searchMask Ljava/lang/String;???
setMinWidth (I)V
! setMinHeight # $ % os )Lcom/jnngl/totalcomputers/system/TotalOS; ' ( ) fs ,Lcom/jnngl/totalcomputers/system/FileSystem; + , applicationPath . / 0 makeConcatWithConstants &(Ljava/lang/String;)Ljava/lang/String;
2 3 4 5 6 *com/jnngl/totalcomputers/system/FileSystem loadImage 2(Ljava/lang/String;)Ljava/awt/image/BufferedImage;
8 9 : setIcon !(Ljava/awt/image/BufferedImage;)V < java/util/ArrayList
; > ? ()V A B C applications Ljava/util/List; E F C installed H I C
installing K L C buttons=??? O P w?? S T h V W X baseFont Ljava/awt/Font;C @@
\ ] ^ _ `
java/awt/Font
deriveFont (F)Ljava/awt/Font; b c X uiFont e (com/jnngl/totalcomputers/system/ui/Field
g h i getWidth ()I?? l m n localization .Lcom/jnngl/totalcomputers/system/Localization; p q r s t ,com/jnngl/totalcomputers/system/Localization search ()Ljava/lang/String; v w x keyboard 3Lcom/jnngl/totalcomputers/system/overlays/Keyboard;
d z { m(IIIILjava/awt/Font;Ljava/lang/String;Ljava/lang/String;Lcom/jnngl/totalcomputers/system/overlays/Keyboard;)V } s ~ *Lcom/jnngl/totalcomputers/system/ui/Field; ? )com/jnngl/totalcomputers/system/ui/Button ? ? ? ? ? 5com/jnngl/totalcomputers/system/ui/Button$ButtonColor BLUE 7Lcom/jnngl/totalcomputers/system/ui/Button$ButtonColor;
d g
d ? ? i getHeight
? ? _(Lcom/jnngl/totalcomputers/system/ui/Button$ButtonColor;IIIILjava/awt/Font;Ljava/lang/String;)V ? ? ? searchBt +Lcom/jnngl/totalcomputers/system/ui/Button; ? ^ ? ? ? up
? ? v ? ? ? down ? ? ? action D(Lcom/jnngl/system/AppStore;)Lcom/jnngl/totalcomputers/system/Event;
? ? ? registerClickEvent *(Lcom/jnngl/totalcomputers/system/Event;)V ? ? ? ? ? keyTyped a(Lcom/jnngl/system/AppStore;)Lcom/jnngl/totalcomputers/system/overlays/Keyboard$KeyboardListener;
d ? ? ? setKeyTypedEvent G(Lcom/jnngl/totalcomputers/system/overlays/Keyboard$KeyboardListener;)V ? java/io/File
2 ? ? t root .
? ? ? (Ljava/lang/String;)V ? ? ? file Ljava/io/File;
? ? ? ? exists ()Z
? ? ? ?
createNewFile
? ? ? ? toPath ()Ljava/nio/file/Path; ? 0 ? java/nio/file/OpenOption
? ? ? ? ? java/nio/file/Files writeString ](Ljava/nio/file/Path;Ljava/lang/CharSequence;[Ljava/nio/file/OpenOption;)Ljava/nio/file/Path;
? ? ? ?
readString ((Ljava/nio/file/Path;)Ljava/lang/String; ?
? ? ? ? ? java/lang/String split '(Ljava/lang/String;)[Ljava/lang/String;
? ? ? ? ? java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List; ? ? ? ? ? java/util/List addAll (Ljava/util/Collection;)Z ? java/io/IOException ? ? ? ? ? java/lang/System err Ljava/io/PrintStream; ? Failed to access file system.
? ? ? ? ? java/io/PrintStream println ? java/lang/Thread ? ? ? run 1(Lcom/jnngl/system/AppStore;)Ljava/lang/Runnable;
? ? (Ljava/lang/Runnable;)V
? ? start com/jnngl/system/AppStore$1
(Lcom/jnngl/system/AppStore;)V
addResizeEvent J(Lcom/jnngl/totalcomputers/system/desktop/WindowApplication$ResizeEvent;)V ? ? clear Dhttps://raw.githubusercontent.com/JNNGL/TotalComputers/appbase/index
0 #com/jnngl/totalcomputers/system/Web readFromURL )com/jnngl/system/AppStore$ApplicationData default-icon
2 6 getResourceImage . . .
.
# $ i(Ljava/awt/image/BufferedImage;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ?&'( add (Ljava/lang/Object;)Z * ?+ D(Lcom/jnngl/system/AppStore;ILjava/lang/String;)Ljava/lang/Runnable;
-. ? renderCanvas ?01 ? isEmpty
?345 listFiles ()[Ljava/io/File;
789 deleteDirectory (Ljava/io/File;)Z
?;<