summaryrefslogtreecommitdiff
path: root/src/main/kotlin/tech/thatgravyboat/rewardclaim/Config.kt
blob: b2a784de8e044cf86995f81fd03ba3cb642eaa15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package tech.thatgravyboat.rewardclaim

import gg.essential.universal.UDesktop
import gg.essential.vigilance.Vigilant
import gg.essential.vigilance.data.Property
import gg.essential.vigilance.data.PropertyType
import java.io.File
import java.net.URI

@Suppress("unused")
object Config : Vigilant(File("./config/rewardclaim.toml")) {

    @Property(
        type = PropertyType.SWITCH,
        name = "Show Confirmation",
        category = "General",
        description = "Shows a confirmation before you claim an item to make sure you don't accidentally claim a reward you didn't want."
    )
    var showConfirmation = true

    @Property(
        type = PropertyType.SWITCH,
        name = "Show Double Click Confirmation",
        category = "General",
        description = "Shows a confirmation before you double click claim an item to make sure you don't accidentally claim a reward you didn't want."
    )
    var showDoubleClickConfirmation = true

    @Property(
        type = PropertyType.NUMBER,
        name = "Checking timer",
        category = "General",
        description = "Determines how long it will take to check and ignore screen changes, if you are high ping you may want this higher.",
        min = 1000,
        max = 10000,
        increment = 200
    )
    var checkingTimer = 3000

    @Property(
        type = PropertyType.BUTTON,
        name = "Discord",
        category = "General",
        subcategory = "Self Promotion",
        placeholder = "Visit"
    )
    fun discord() {
        UDesktop.browse(URI("https://discord.gg/jRhkYFmpCa"))
    }

    @Property(
        type = PropertyType.BUTTON,
        name = "Twitter",
        category = "General",
        subcategory = "Self Promotion",
        placeholder = "Visit"
    )
    fun twitter() {
        UDesktop.browse(URI("https://twitter.com/ThatGravyBoat"))
    }

    @Property(
        type = PropertyType.BUTTON,
        name = "Github",
        category = "General",
        subcategory = "Self Promotion",
        placeholder = "Visit"
    )
    fun github() {
        UDesktop.browse(URI("https://github.com/ThatGravyBoat/RewardClaim"))
    }

    @Property(
        type = PropertyType.BUTTON,
        name = "YouTube",
        category = "General",
        subcategory = "Self Promotion",
        placeholder = "Visit"
    )
    fun rickroll() {
        UDesktop.browse(URI("https://www.youtube.com/watch?v=dQw4w9WgXcQ"))
    }

    init {
        initialize()
    }
}