Introduce XPGlobesPlugin

This commit is contained in:
Pyrethus 2024-01-25 04:27:43 +02:00
parent 7957cdc8a6
commit be1aac7fe7
4 changed files with 288 additions and 0 deletions

View file

@ -0,0 +1,22 @@
package XPGlobesPlugin
import java.awt.Color
object Constants {
const val SKILL_COUNT = 24
const val MAX_LEVEL = 99
const val INVALID_LEVEL = -1
const val INVALID_XP = -1
const val GLOBE_LIFETIME = 5000L // 5 seconds
const val GLOBES_Y_OFFSET = 48 // y-offset in screen space where globes are drawn
val GLOBE_BKG_COLOR: Color = Color.GRAY
const val GLOBE_BKG_SIZE = 33 // Size of the globe background
val GLOBE_BORDER_COLOR: Color = Color.BLACK
const val GLOBE_BORDER_WIDTH = 1 // Width of the globe border
val GLOBE_XP_ARC_COLOR: Color = Color.YELLOW
val GLOBE_XP_ARC_LEVEL_UP_COLOR: Color = Color.BLUE
const val GLOBE_XP_ARC_WIDTH = 3 // Width of the Xp arc
const val MAX_GLOBES = 6 // maximum number of globes we will draw on resizable clients
const val MAX_GLOBES_SD = 3 // maximum number of globes we will draw on fixed clients
const val GLOBE_PADDING = 3 // horizontal padding between globes
}