Add @MouseTweaksDisableWheelTweak to screens with scrollbars
This commit is contained in:
parent
aea180b68c
commit
3797265107
@ -169,7 +169,7 @@ dependencies {
|
|||||||
// implementation fg.deobf("com.tterrag.registrate:Registrate:MC${mc_version}-${registrate_version}") // Adds registrate as a dependency
|
// implementation fg.deobf("com.tterrag.registrate:Registrate:MC${mc_version}-${registrate_version}") // Adds registrate as a dependency
|
||||||
|
|
||||||
// Examples using mod jars from ./libs
|
// Examples using mod jars from ./libs
|
||||||
// implementation(fg.deobf("blank:MouseTweaks-forge-mc1.19:2.23"))
|
compileOnly("yalter.mousetweaks:MouseTweaks:2.23:api")
|
||||||
|
|
||||||
// compile against the JEI API but do not include it at runtime
|
// compile against the JEI API but do not include it at runtime
|
||||||
//compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api")
|
//compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api")
|
||||||
|
@ -10,7 +10,9 @@ import ru.dbotthepony.mc.otm.client.screen.widget.PowerGaugePanel
|
|||||||
import ru.dbotthepony.mc.otm.core.maxScrollDivision
|
import ru.dbotthepony.mc.otm.core.maxScrollDivision
|
||||||
import ru.dbotthepony.mc.otm.item.PortableCondensationDriveItem
|
import ru.dbotthepony.mc.otm.item.PortableCondensationDriveItem
|
||||||
import ru.dbotthepony.mc.otm.menu.DriveViewerMenu
|
import ru.dbotthepony.mc.otm.menu.DriveViewerMenu
|
||||||
|
import yalter.mousetweaks.api.MouseTweaksDisableWheelTweak
|
||||||
|
|
||||||
|
@MouseTweaksDisableWheelTweak
|
||||||
class DriveViewerScreen(menu: DriveViewerMenu, inventory: Inventory, title: Component) :
|
class DriveViewerScreen(menu: DriveViewerMenu, inventory: Inventory, title: Component) :
|
||||||
MatteryScreen<DriveViewerMenu>(menu, inventory, title) {
|
MatteryScreen<DriveViewerMenu>(menu, inventory, title) {
|
||||||
|
|
||||||
|
@ -10,7 +10,9 @@ import ru.dbotthepony.mc.otm.client.screen.panels.*
|
|||||||
import ru.dbotthepony.mc.otm.menu.ExoSuitInventoryMenu
|
import ru.dbotthepony.mc.otm.menu.ExoSuitInventoryMenu
|
||||||
import ru.dbotthepony.mc.otm.network.ExoSuitMenuOpen
|
import ru.dbotthepony.mc.otm.network.ExoSuitMenuOpen
|
||||||
import ru.dbotthepony.mc.otm.network.MatteryPlayerNetworkChannel
|
import ru.dbotthepony.mc.otm.network.MatteryPlayerNetworkChannel
|
||||||
|
import yalter.mousetweaks.api.MouseTweaksDisableWheelTweak
|
||||||
|
|
||||||
|
@MouseTweaksDisableWheelTweak
|
||||||
class ExoSuitInventoryScreen(menu: ExoSuitInventoryMenu) : MatteryScreen<ExoSuitInventoryMenu>(menu, TranslatableComponent("otm.gui.exosuit")) {
|
class ExoSuitInventoryScreen(menu: ExoSuitInventoryMenu) : MatteryScreen<ExoSuitInventoryMenu>(menu, TranslatableComponent("otm.gui.exosuit")) {
|
||||||
override fun makeMainFrame(): FramePanel {
|
override fun makeMainFrame(): FramePanel {
|
||||||
val frame = FramePanel(this, width = 200f, height = 180f, title = this.title)
|
val frame = FramePanel(this, width = 200f, height = 180f, title = this.title)
|
||||||
@ -133,10 +135,6 @@ class ExoSuitInventoryScreen(menu: ExoSuitInventoryMenu) : MatteryScreen<ExoSuit
|
|||||||
ru.dbotthepony.mc.otm.client.minecraft.player?.containerMenu = menu
|
ru.dbotthepony.mc.otm.client.minecraft.player?.containerMenu = menu
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onClose() {
|
|
||||||
super.onClose()
|
|
||||||
}
|
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
val ENTITY_RECTANGLE = INVENTORY_LOCATION.element(25f, 7f, 51f, 72f)
|
val ENTITY_RECTANGLE = INVENTORY_LOCATION.element(25f, 7f, 51f, 72f)
|
||||||
val STATUS_EFFECT_BG = INVENTORY_LOCATION.element(0f, 166f, 120f, 32f)
|
val STATUS_EFFECT_BG = INVENTORY_LOCATION.element(0f, 166f, 120f, 32f)
|
||||||
|
@ -21,7 +21,9 @@ import ru.dbotthepony.mc.otm.core.formatReadableNumber
|
|||||||
import ru.dbotthepony.mc.otm.core.formatSiComponent
|
import ru.dbotthepony.mc.otm.core.formatSiComponent
|
||||||
import ru.dbotthepony.mc.otm.menu.ItemMonitorMenu
|
import ru.dbotthepony.mc.otm.menu.ItemMonitorMenu
|
||||||
import ru.dbotthepony.mc.otm.storage.ITEM_STORAGE
|
import ru.dbotthepony.mc.otm.storage.ITEM_STORAGE
|
||||||
|
import yalter.mousetweaks.api.MouseTweaksDisableWheelTweak
|
||||||
|
|
||||||
|
@MouseTweaksDisableWheelTweak
|
||||||
class ItemMonitorScreen(menu: ItemMonitorMenu, inventory: Inventory, title: Component) :
|
class ItemMonitorScreen(menu: ItemMonitorMenu, inventory: Inventory, title: Component) :
|
||||||
MatteryScreen<ItemMonitorMenu>(menu, inventory, title) {
|
MatteryScreen<ItemMonitorMenu>(menu, inventory, title) {
|
||||||
|
|
||||||
|
@ -15,7 +15,9 @@ import ru.dbotthepony.mc.otm.core.maxScrollDivision
|
|||||||
import ru.dbotthepony.mc.otm.menu.MatterPanelMenu
|
import ru.dbotthepony.mc.otm.menu.MatterPanelMenu
|
||||||
import ru.dbotthepony.mc.otm.menu.ReplicationRequestPacket
|
import ru.dbotthepony.mc.otm.menu.ReplicationRequestPacket
|
||||||
import ru.dbotthepony.mc.otm.network.MenuNetworkChannel
|
import ru.dbotthepony.mc.otm.network.MenuNetworkChannel
|
||||||
|
import yalter.mousetweaks.api.MouseTweaksDisableWheelTweak
|
||||||
|
|
||||||
|
@MouseTweaksDisableWheelTweak
|
||||||
class MatterPanelScreen(
|
class MatterPanelScreen(
|
||||||
menu: MatterPanelMenu,
|
menu: MatterPanelMenu,
|
||||||
inventory: Inventory,
|
inventory: Inventory,
|
||||||
|
Loading…
Reference in New Issue
Block a user