-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlovense_screens.rpy
166 lines (118 loc) · 4.57 KB
/
lovense_screens.rpy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
screen connect_lovense():
tag lovense
modal True
predict False
add "lovense_background"
imagebutton:
idle "return_button_idle"
hover "return_button_hover"
action Return()
text "Connect to Lovense App" xalign 0.5 ypos 50 style "montserrat_extra_bold_64"
hbox:
align (0.5, 1.0)
spacing 100
# Game Mode
vbox:
align (0.5, 1.0)
yoffset -200
spacing 10
add "lovense_game_mode_example" xalign 0.5
null height 30
button:
idle_background "blue_button_idle"
hover_background "blue_button_hover"
action ui.callsinnewcontext("lovense_connect_via_game_mode")
padding (40, 25)
align (0.5, 0.5)
text "Connect With Game Mode" align (0.5, 0.5)
text "No connection to external servers (LAN Only)" xalign 0.5
# QR Code
if lovense.server_status:
vbox:
align (0.5, 1.0)
yoffset -200
spacing 10
add "lovense_qr_code.jpg" xalign 0.5
null height 30
button:
idle_background "blue_button_idle"
hover_background "blue_button_hover"
action ui.callsinnewcontext("lovense_connect_via_qr_code")
padding (40, 25)
xalign 0.5
text "Connect With QR Code" align (0.5, 0.5)
text "Requires connection to Lovense Server" xalign 0.5
vbox:
yalign 1.0
yoffset -200
text "User Settings" xalign 0.5 style "montserrat_extra_bold_32"
null height 25
text "Local IP: {}".format(lovense.local_ip)
text "HTTP Port: {}".format(lovense.http_port)
text "Last Updated: {}".format(datetime.datetime.fromtimestamp(lovense.last_updated).strftime("%Y-%m-%d %H:%M:%S"))
if lovense.toys:
null height 25
text "Connected Toys" style "montserrat_extra_bold_24" xalign 0.5
null height 10
vbox:
for toy in lovense.toys.values():
if toy.get("nickname"):
text "{} ({}) : {}%".format(toy["name"], toy["nickname"], toy["battery"])
else:
text "{} : {}%".format(toy["name"], toy["battery"])
null height 50
button:
idle_background "blue_button_idle"
hover_background "blue_button_hover"
action Function(lovense.refresh)
padding (40, 25)
xalign 0.5
text "Refresh" align (0.5, 0.5)
null height 5
text "Last Refresh: {}".format(lovense.last_refresh.strftime("%Y-%m-%d %H:%M:%S")) xalign 0.5
if lovense.status_message:
text "Status Message: {}".format(lovense.status_message):
xpos 20
yalign 1.0
yoffset -20
xsize 750
vbox:
align (1.0, 1.0)
offset (-50, -50)
textbutton "Get your Lovense toys here":
action OpenURL("https://www.lovense.com/r/mw4xb8")
text_size 32
label lovense_connect_via_game_mode:
show black
show lovense_remote_download
"1. Download the Lovense Remote App (Compatibile: iOS, Android and Desktop)"
hide lovense_remote_download
show lovense_remote_profile
"2. Head to the \"Me\" view"
hide lovense_remote_profile
show lovense_remote_game_mode
"3. Select \"Settings\" and turn on \"Game Mode\""
hide lovense_remote_game_mode
show lovense_input_local_ip
$ lovense.local_ip = renpy.input("4. Enter Local IP", allow="0123456789.")
hide lovense_input_local_ip
show lovense_input_http_port
$ lovense.http_port = renpy.input("5. Enter HTTP Port", allow="0123456789.")
hide lovense_input_http_port
return
label lovense_connect_via_qr_code:
show black
show lovense_remote_download
"1. Download the Lovense Remote App (Compatibile: iOS, Android and Desktop)"
hide lovense_remote_download
show lovense_plus_view
"2. Click on the \"+\" icon"
hide lovense_plus_view
show lovense_scan_qr
"3. Select \"Scan QR\""
hide lovense_scan_qr
$ download_qr_code()
show expression "lovense_qr_code.jpg" at truecenter
"4. Scan the above QR code to connect"
hide expression "lovense_qr_code.jpg" at truecenter
return