Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main/kotlin/org/cobalt/Cobalt.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import org.cobalt.api.util.TickScheduler
import org.cobalt.internal.command.MainCommand
import org.cobalt.internal.helper.Config
import org.cobalt.internal.loader.AddonLoader
import org.cobalt.internal.ui.progress.ProgressManager

@Suppress("UNUSED")
object Cobalt : ClientModInitializer {
Expand All @@ -29,8 +30,10 @@ object Cobalt : ClientModInitializer {
CommandManager.dispatchAll()

listOf(
TickScheduler, MainCommand, NotificationManager,
RotationExecutor, HudModuleManager,
TickScheduler, MainCommand, NotificationManager, ProgressManager,
RotationExecutor,
HudModuleManager,

).forEach { EventBus.register(it) }
Config.loadModulesConfig()
EventBus.register(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,21 @@ import com.google.gson.JsonElement
import com.google.gson.JsonPrimitive
import org.cobalt.api.module.setting.Setting

internal class InfoSetting(
enum class InfoType {
INFO, WARNING, SUCCESS, ERROR
}

class InfoSetting(
name: String?,
val text: String,
val type: InfoType = InfoType.INFO,
) : Setting<String>(name ?: "", "Info", "") {

override val defaultValue: String = ""

override fun read(element: JsonElement) {
// It exists just to show text in the UI, so there is nothing to read.
}
override fun read(element: JsonElement) {}

override fun write(): JsonElement = JsonPrimitive("")

}

enum class InfoType {
INFO, WARNING, SUCCESS, ERROR
}
50 changes: 0 additions & 50 deletions src/main/kotlin/org/cobalt/api/pathfinder/Node.kt

This file was deleted.

178 changes: 0 additions & 178 deletions src/main/kotlin/org/cobalt/api/pathfinder/PathExecutor.kt

This file was deleted.

Loading