File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 8181 "path" : " Origin/(A) System/System Apps" ,
8282 "name" : " Desktop.osl" ,
8383 "icon" : " c #111 w 10 square 0 0 5 5 w 4 c #fff dot -7 7 dot -7 1 dot -7 -5 dot -1 7 dot -1 1" ,
84- "version" :" 4.0 "
84+ "version" :" 4.1 "
8585 },
8686 {
8787 "url" : " https://origin.mistium.com/OSL%20Programs/apps/System/Desktop_Manager.osl" ,
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ def "handle_app_culling" (
6767 desktop_apps = desktop
6868 ) else (
6969 loc 2 2 35 -35
70- x = (mouse_x - x_position / 70).round * 70
71- y = (mouse_y - y_position / 70).round * 70
70+ x = round (mouse_x - x_position / 70) * 70
71+ y = round (mouse_y - y_position / 70) * 70
7272
7373 desktop_apps = []
7474 cur = app_positions[y][x]
@@ -239,19 +239,21 @@ if data.len == 0 or app_size == 0 "exit"
239239handle_app_culling
240240
241241if desktop_apps.len == 0 "exit"
242- each i app_id desktop_apps (
242+ for i desktop_apps.len (
243+ app_id @= desktop_apps[i]
244+
243245 file "open" app_id "onlyaccess"
244- file "get" 6
245- x = (data / 70).round * 70
246- file "get" 7
247- y = (data / 70).round * 70
248- loc 2 2 35 + x -35 + y
246+ x = round(fileGet(6) / 70) * 70
247+ y = round(fileGet(7) / 70) * 70
249248 app_positions[y][x] = app_id
249+
250+ loc 2 2 35 + x -35 + y
250251 square 30 30 0 0 1
251252 if mouse_touching or cnrn (
252253 file "render" app_size "interactable"
253254 rightclick "file" app_id
254255 )
256+
255257 file "get" 2
256258 if mouse_touching (
257259 square data.len * 8 10 15 : c#back chy#-30
You can’t perform that action at this time.
0 commit comments