aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS/Helper.vb
blob: 19a1b2e912e90b2954c2979b4030e151ecc8f7dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Module Helper
    Dim path As String = ShiftOSDesktop.ShiftOSPath
    Public Sub addCP(points As Integer) 'Add some CP
        ShiftOSDesktop.codepoints = ShiftOSDesktop.codepoints + points
    End Sub
    Public Sub setCP(points As Integer) 'Set the CP
        ShiftOSDesktop.codepoints = points
    End Sub

    Public Sub removeCP(points As Integer)
        ShiftOSDesktop.codepoints = ShiftOSDesktop.codepoints - points
    End Sub
    Public Sub playSound(path As String, playMode As AudioPlayMode)
        My.Computer.Audio.Play(path, playMode)
    End Sub
End Module