Skip to content

Commit 9f0d183

Browse files
committed
new alert functionality
1 parent ca35c97 commit 9f0d183

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

OSL Programs/apps/System/.Install_system.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"path": "Origin/(A) System/System Apps",
8282
"name": "Alert.osl",
8383
"icon": "c #111 w 10 square 0 0 5 5 c #fff icn info 0.4",
84-
"version":"1.3"
84+
"version":"1.4"
8585
},
8686
{
8787
"url": "https://origin.mistium.com/OSL%20Programs/apps/System/Desktop.osl",

OSL Programs/apps/System/Alert.osl

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def quitThisApp() (
4545
cursor "pointer"
4646
if onclick (
4747
window "kill" window.parent.id
48+
window.close()
4849
)
4950
c txtc
5051
) else (
@@ -152,6 +153,20 @@ def transfer() (
152153
quitThisApp()
153154
)
154155

156+
def choose() (
157+
parentSays("wants you to choose")
158+
159+
goto -190 50
160+
text popup_data.msg.wrapText(window.width / 10 - 5) 10 : c#txtc
161+
162+
goto 0 -35
163+
local click = acceptDeny(popup_data.left, popup_data.right)
164+
if click != null (
165+
transmit click window.parent.id
166+
)
167+
quitThisApp()
168+
)
169+
155170
def buy_key() (
156171
parentSays("wants to")
157172

@@ -214,6 +229,9 @@ switch type (
214229
case "say"
215230
say()
216231
break
232+
case "choose"
233+
choose()
234+
break
217235
case "transfer"
218236
transfer()
219237
break

0 commit comments

Comments
 (0)