Advertisement
Syrennil

Untitled

May 30th, 2020
1,057
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.98 KB | None | 0 0
  1. screen phone_playstore():
  2.     zorder 800
  3.     $ keyclose = True
  4.     fixed:
  5.         maximum 370,710
  6.         xalign .5
  7.         yalign .525
  8.         add "gui/phone_background_playstore.webp" at ModZoom(.85):
  9.             yalign .5
  10.             xalign .5
  11.         if not playstore_search_saved.strip() and not playstore_search.strip():
  12.             use phone_playstore_main_icons
  13.         elif playstore_search.strip():
  14.             $ tempsearch = playstore_search.strip()
  15.             $ realtimesearchresult = realtime_search(tempsearch,[playstore_recommended,playstore_games,playstore_apps])
  16.             vbox:
  17.                 xalign .5
  18.                 yalign .23
  19.                 spacing -140
  20.                 vbox:
  21.                     add "gui/phone_background_playstore_icons.webp" at ModZoom(.85)
  22.                     vbox:
  23.                         xsize 330
  24.                         xalign .5
  25.                         xoffset 7
  26.                         text "{b}Search results{/b}":
  27.                             xalign 0.0
  28.                             text_align 0.0
  29.                             yalign 0.0
  30.                             yoffset -165
  31.                             size 16
  32.                             color "#222"
  33.                     if realtimesearchresult:
  34.                         vpgrid:
  35.                             xsize 330
  36.                             ysize 140
  37.                             scrollbars None
  38.                             mousewheel True
  39.                             draggable True
  40.                             rows 1
  41.                             yoffset -165
  42.                             xoffset 65
  43.                             for r in realtimesearchresult:
  44.                                 $ loadval = r
  45.                                 hbox:
  46.                                     button:
  47.                                         hover_background "#EEE"
  48.                                         padding 0,0
  49.                                         vbox:
  50.                                             xsize 110
  51.                                             add "gui/appicon_"+r[2]+".webp" at ModZoom(.70):
  52.                                                 xalign .5
  53.                                             text "{b}"+r[0]+"{/b}\n by "+r[1]:
  54.                                                 xalign .5
  55.                                                 text_align .5
  56.                                                 size 12
  57.                                                 color "#222"
  58.                                         action [SetVariable('keyclose',False),SetVariable('appselect',loadval),Hide('phone_playstore'),Show('phone_playstore_apppage')]
  59.                     else:
  60.                         vpgrid:
  61.                             xsize 330
  62.                             ysize 140
  63.                             scrollbars None
  64.                             mousewheel True
  65.                             draggable True
  66.                             rows 1
  67.                             yoffset -165
  68.                             xoffset 65
  69.                             hbox:
  70.                                 text "nothing was found":
  71.                                     color "#F00"
  72.                                     yoffset 50
  73.                                 timer 2.0 action [SetVariable('playstore_search','  '),Hide('phone_playstore'),Hide('phone_playstore_apppage'),Show('phone_playstore')]
  74.         vbox:
  75.             xalign .5
  76.             yalign 0.0
  77.             yoffset 24
  78.             xsize 350
  79.             ysize 35
  80.             add Solid("#FFF")
  81.             text "Enter search":
  82.                 xalign 0.05
  83.                 yalign 0.0
  84.                 yoffset -26
  85.                 size 17
  86.                 color "#777"
  87.             input default "0" length 20 value VariableInputValue('playstore_search'):
  88.                 xalign 1.0
  89.                 yalign 0.0
  90.                 yoffset -46
  91.                 size 17
  92.             key "K_RETURN" action [SetVariable('playstore_search',playstore_search)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement