package org.runestar.client.game.api

data class WidgetId(
        val group: Int,
        val index: Int
) {

    constructor(packed: Int) : this(getGroup(packed), getIndex(packed))

    val packed: Int get() = (group shl 16) or index

    companion object {

        fun getGroup(packed: Int): Int = packed shr 16

        fun getIndex(packed: Int): Int = packed and 0xFFFF



        val CASTLE_WARS_SARADOMIN_TIME_LEFT = WidgetId(WidgetGroupId.CASTLE_WARS_SARADOMIN, 25)

        val CASTLE_WARS_ZAMORAK_TIME_LEFT = WidgetId(WidgetGroupId.CASTLE_WARS_ZAMORAK, 25)

        val CHAT_REPORT_TEXT = WidgetId(WidgetGroupId.CHAT, 29)

        val INVENTORY_ITEMS = WidgetId(WidgetGroupId.INVENTORY, 0)

        val MINIMAP_ORBS_HP_CIRCLE = WidgetId(WidgetGroupId.MINIMAP_ORBS, 6)
        val MINIMAP_ORBS_SPEC_CIRCLE = WidgetId(WidgetGroupId.MINIMAP_ORBS, 31)
    }
}
package org.runestar.client.game.api

data class WidgetId(
        val group: Int,
        val index: Int
) {

    constructor(packed: Int) : this(getGroup(packed), getIndex(packed))

    val packed: Int get() = (group shl 16) or index

    companion object {

        fun getGroup(packed: Int): Int = packed shr 16

        fun getIndex(packed: Int): Int = packed and 0xFFFF



        val CASTLE_WARS_SARADOMIN_TIME_LEFT = WidgetId(WidgetGroupId.CASTLE_WARS_SARADOMIN, 25)

        val CASTLE_WARS_ZAMORAK_TIME_LEFT = WidgetId(WidgetGroupId.CASTLE_WARS_ZAMORAK, 25)

        val CHAT_REPORT_TEXT = WidgetId(WidgetGroupId.CHAT, 28)

        val INVENTORY_ITEMS = WidgetId(WidgetGroupId.INVENTORY, 0)

        val MINIMAP_ORBS_HP_CIRCLE = WidgetId(WidgetGroupId.MINIMAP_ORBS, 6)
        val MINIMAP_ORBS_SPEC_CIRCLE = WidgetId(WidgetGroupId.MINIMAP_ORBS, 31)
    }
}
Fix Report Text widget id
Fix Report Text widget id

RuneSuite/client,RuneSuite/client