diff --git a/kratom b/kratom new file mode 100755 index 0000000..390f355 Binary files /dev/null and b/kratom differ diff --git a/kratom.db b/kratom.db index a202293..b86912c 100644 Binary files a/kratom.db and b/kratom.db differ diff --git a/kratom.pb b/kratom.pb index ceea305..bdf62fb 100644 --- a/kratom.pb +++ b/kratom.pb @@ -54,9 +54,14 @@ Procedure dellist(EventType) EndProcedure -Procedure burn() - +Procedure burn(EventType) + If DatabaseQuery(0, "SELECT * FROM kratom ORDER BY RANDOM() LIMIT 1") + While NextDatabaseRow(0) ; Loop for each records + ;AddGadgetItem (ListView_0, -1, "Name " + GetDatabaseString(0,1) + " Type " + GetDatabaseString(0,2)) + MessageRequester("Burn you should","Today you get to burn "+GetDatabaseString(0,1)) + Wend +EndIf EndProcedure @@ -84,9 +89,10 @@ Repeat EndSelect Until Event = #PB_Event_CloseWindow ; Quit on any window close -; IDE Options = PureBasic 6.12 LTS (Linux - x64) -; CursorPosition = 31 -; FirstLine = 20 +; IDE Options = PureBasic 6.12 LTS (Windows - x64) +; CursorPosition = 61 +; FirstLine = 36 ; Folding = - ; EnableXP -; DPIAware \ No newline at end of file +; DPIAware +; Executable = win32kratom.exe \ No newline at end of file diff --git a/kratomfrm1.pbf b/kratomfrm1.pbf index bbf70c0..77e5c1c 100644 --- a/kratomfrm1.pbf +++ b/kratomfrm1.pbf @@ -11,6 +11,7 @@ Global krt1 Global Container_0, ListView_0, Text_0, Text_1, String_0, Button_0, Button_1, Button_2, String_1, Text_2 +Declare burn(EventType) Declare dellist(EventType) Declare btn0click(EventType) @@ -43,6 +44,8 @@ Procedure krt1_Events(event) Select EventGadget() Case Button_0 btn0click(EventType()) + Case Button_1 + burn(EventType()) Case Button_2 dellist(EventType()) EndSelect diff --git a/kratomprj.pbp b/kratomprj.pbp index f645154..d19a226 100644 --- a/kratomprj.pbp +++ b/kratomprj.pbp @@ -7,22 +7,23 @@
- +
- + - +
+
diff --git a/win32kratom.exe b/win32kratom.exe new file mode 100755 index 0000000..0bf0aaa Binary files /dev/null and b/win32kratom.exe differ