mirror of
https://github.com/TheUltimateHacker/shiftos-next.git
synced 2025-01-22 16:42:14 +00:00
424931951b
Alright, I've added the Draggable Windows upgrade to the Shiftorium, as well as fixed a quick bug causing "No Items Available" to display when there were items clearly available. I've also fixed a positioning bug with BWM windows causing them to start in the center of the screen, relative to the titlebar, rather than the form. I've also re-arranged the code a bit, organizing files in folders. APIs are in the APIs folder, Desktop Environments are in the Desktop Environments folder, etc. The shiftorium still doesn't have draggable window functionality yet...
21 lines
482 B
VB.net
21 lines
482 B
VB.net
Module shiftorium_api
|
|
'API for Shiftorium Applications.
|
|
|
|
Public listboxtoaddto As ListBox
|
|
Public codepoints As Integer
|
|
|
|
Public Sub DeductCP(ammount As Integer)
|
|
codepoints -= ammount
|
|
savegame()
|
|
End Sub
|
|
|
|
Public Sub AddCP(ammount As Integer)
|
|
codepoints += ammount
|
|
savegame()
|
|
End Sub
|
|
|
|
Public Sub AddItem(name As String, CP As Integer)
|
|
listboxtoaddto.Items.Add(name & " - " & CP & " CP")
|
|
End Sub
|
|
|
|
End Module
|