Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- screen phone_playstore():
- zorder 800
- $ keyclose = True
- fixed:
- maximum 370,710
- xalign .5
- yalign .525
- add "gui/phone_background_playstore.webp" at ModZoom(.85):
- yalign .5
- xalign .5
- if not playstore_search_saved.strip() and not playstore_search.strip():
- use phone_playstore_main_icons
- elif playstore_search.strip():
- $ tempsearch = playstore_search.strip()
- $ realtimesearchresult = realtime_search(tempsearch,[playstore_recommended,playstore_games,playstore_apps])
- vbox:
- xalign .5
- yalign .23
- spacing -140
- vbox:
- add "gui/phone_background_playstore_icons.webp" at ModZoom(.85)
- vbox:
- xsize 330
- xalign .5
- xoffset 7
- text "{b}Search results{/b}":
- xalign 0.0
- text_align 0.0
- yalign 0.0
- yoffset -165
- size 16
- color "#222"
- if realtimesearchresult:
- vpgrid:
- xsize 330
- ysize 140
- scrollbars None
- mousewheel True
- draggable True
- rows 1
- yoffset -165
- xoffset 65
- for r in realtimesearchresult:
- $ loadval = r
- hbox:
- button:
- hover_background "#EEE"
- padding 0,0
- vbox:
- xsize 110
- add "gui/appicon_"+r[2]+".webp" at ModZoom(.70):
- xalign .5
- text "{b}"+r[0]+"{/b}\n by "+r[1]:
- xalign .5
- text_align .5
- size 12
- color "#222"
- action [SetVariable('keyclose',False),SetVariable('appselect',loadval),Hide('phone_playstore'),Show('phone_playstore_apppage')]
- else:
- vpgrid:
- xsize 330
- ysize 140
- scrollbars None
- mousewheel True
- draggable True
- rows 1
- yoffset -165
- xoffset 65
- hbox:
- text "nothing was found":
- color "#F00"
- yoffset 50
- timer 2.0 action [SetVariable('playstore_search',' '),Hide('phone_playstore'),Hide('phone_playstore_apppage'),Show('phone_playstore')]
- vbox:
- xalign .5
- yalign 0.0
- yoffset 24
- xsize 350
- ysize 35
- add Solid("#FFF")
- text "Enter search":
- xalign 0.05
- yalign 0.0
- yoffset -26
- size 17
- color "#777"
- input default "0" length 20 value VariableInputValue('playstore_search'):
- xalign 1.0
- yalign 0.0
- yoffset -46
- size 17
- key "K_RETURN" action [SetVariable('playstore_search',playstore_search)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement