Jump to content

[1.18.2] Best approach for a radial menu?


Recommended Posts


I'm developing a small mod where the player will have access to a range of abilities and, to keep the keybind clutter down, I've decided to implement a single keybind that will trigger a radial menu for ability selection.

Normally I'd just make a Screen for this, but I'd like to let keyboard input pass since the radial menu itself won't use any keybinds and allowing the player to move while in the menu will be quite nice. Thus my question: Is there a way to let keyboard input pass a Screen? Or should I make an IIngameOverlay and manually releaseMouse() for the selection?

I've tried setting Screen.passEvents to true, but I don't think I read its usages in the code properly since it doesn't seem to allow the player to move while in the screen.


Edited by _Beau
additional info
Link to comment
Share on other sites

  • _Beau changed the title to [1.18.2] Best approach for a radial menu?

After a bit more of a dive through the code I've figured out roughly how player movement inputs are interrupted by screens and it's looking like it would require a mixin to unlock movement for my radial menu if it's implemented as a screen. Will investigate the idea of an overlay and manually releasing the mouse for menu selection.

Link to comment
Share on other sites

Manually releasing and grabbing the mouse seems to have done the trick.

I'm doing it quite simply- not sure if using these methods outside a vanilla context could have any weird side effects.

public void setActive(boolean active)

    this.active = active;
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 海外WPL Holdam Cash游戏▼BCGAME55·COM↔海外WPL Holdam企业撒哈拉海外WPL Holdam推荐冰岛WPL Holdam方法圣马力诺WPL Holdam Pub[本社咨询的Tele @JBOX7] 海外WPL Holdam Sat 罗马尼亚海外WPL Holdam招募撒哈拉视频莫桑比克WPL Holdam总经销[总经销的Kakao Talk JBOX7] 海外WPL Mallta海外WPL Mall Mall Mall Mall Mall Mall Mall 制作 游戏 制作 黎巴嫩Wapp] WPL holdom游戏厅乌克兰WPL holdom 游乐场 [赌场总公司] 海外WPL holdom poker大赛中非海外WPL holdom poker大赛加拿大WPL holdom企业多哥WPL holdom网站 [体育总公司] 海外WPL holdom park 推荐 奥地利海外WPL holdom skagones Grand Rescagones Grandrandes Kagones ISL[TOTOTOTOTO总部咨询] 海外 WPL HOLDOMEPROKIES 购买 东南亚WAL POL FORDOME视频总动员 WPL holdom战略塞舌尔WPL holdom招募[YAMATO总公司]海外WPL holdom社区莱索托海外WPL holdom 油管博主葡萄牙WPL holdom cash game montecaro WPL holdom tour[bakara总经销] 海外WPL holdom 登录厄瓜多尔WPL holdom tournament Panagement[赛马总经销] 海外WPL 登录特立尼达海外PL Hallmademary 网站 Bakara Popharmainoshalmategory.
    • KLIK DISINI UNTUK DAFTAR     Situs Slot Thailand Terpercaya adalah situs yang menyediakan permainan slot online dengan tema dan layanan yang sesuai dengan kebutuhan dan preferensi pemain asal Thailand. Situs-situs ini biasanya menawarkan permainan slot dengan server khusus yang berasal dari Thailand, yang diklaim memiliki tingkat kemenangan yang tinggi dan mudah mendapatkan jackpot. Beberapa situs juga menyediakan permainan slot dengan server dari negara lain, seperti Rusia dan Singapura, yang juga populer di kalangan pemain Thailand.  
    • I was trying to use viaforge (latest version) on forge 1.20.2 and then it crashed showing exit code 1 heres the log : 04Dec2023 11:40:52.058] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Goldenretriver, --version, 1.16.5-forge-36.2.34, --gameDir, C:\Users\rashr\AppData\Roaming\.minecraft, --assetsDir, C:\Users\rashr\AppData\Roaming\.minecraft\assets, --assetIndex, 1.16, --uuid, a688ba406e4f4635a428d7555a467474, --accessToken, ????????, --userType, msa, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 36.2.34, --fml.mcVersion, 1.16.5, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20210115.111550] [04Dec2023 11:40:52.061] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 8.1.3+8.1.3+main-8.1.x.c94d18ec starting: java version 1.8.0_51 by Oracle Corporation [04Dec2023 11:40:52.071] [main/DEBUG] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Found launch services [minecraft,testharness,fmlclient,fmlserver] [04Dec2023 11:40:52.075] [main/WARN] [cpw.mods.modlauncher.SecureJarHandler/]: LEGACY JDK DETECTED, SECURED JAR HANDLING DISABLED [04Dec2023 11:40:52.082] [main/DEBUG] [cpw.mods.modlauncher.NameMappingServiceHandler/MODLAUNCHER]: Found naming services : [] [04Dec2023 11:40:52.118] [main/DEBUG] [cpw.mods.modlauncher.LaunchPluginHandler/MODLAUNCHER]: Found launch plugins: [mixin,eventbus,object_holder_definalize,runtime_enum_extender,accesstransformer,capability_inject_definalize,runtimedistcleaner] [04Dec2023 11:40:52.125] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Discovering transformation services [04Dec2023 11:40:52.132] [main/DEBUG] [cpw.mods.modlauncher.TransformationServicesHandler/MODLAUNCHER]: Found additional transformation services from discovery services: [C:\Users\rashr\AppData\Roaming\.minecraft\mods\viaforge-1.12.2-3.4.3.jar]
    • 网络花图战略▷BCGAME55·COM⊙网络花图网站帕劳网络花图游乐场America花图方法[本社文之Tele @JBOX7]网络花图Holdom Pub Ginibiso网络花图广播匈牙利花图旅行津巴布韦花图比赛[总经销文的Kakao Talk JBOX7]网络游戏FOXWood Casino ITALPERAUTALL Telecom Pub[本社文之音] 制作社区] 网游] [澳大利亚网购] [赌场总公司] 网络花图巡回 莱索托 网络花图赌场 哈萨克斯坦花图游乐场 科特迪瓦花图企业 [体育总公司] 网络花图网站南非 网络花图 巴卡拉酒吧 加拿大花图视频 Kyrivasi 网络花图赌场酒吧 [TOTO总公司咨询] ITWO赌博场所 ESWATINI IT COUPONE厄瓜多尔卡什游戏 Aria Casino Hoto Tourtourtourtune [TOTO总购买] ITHIGOTUGO游戏场] 联盟[bacara总经销] 网络花图 bacara pub 塞内加尔网络花图视频 南美洲花图战略塞内加尔花图转播[赛马总经销] 网络花图 bacara pub 罗马尼亚网络花图游戏 日本花图 bacara pub montecaro 花图 coopoon[BCGAME bc游戏总经销咨询] 设置通知推荐 订阅 点赞
    • 東京都キスバン話†BCGAME33・COM↖東京都キスバン、ツイッターボッチャ東京都キスバンサイト槍投げキスバンサイトのオンラインゲームキスバンインスタグラム[本社の問い合わせテレ@JBOX7]東京都キスバン同好会、鉄棒、東京都キスバン、ユーチューブオンラインゲームキスバン動画の水上スポーツのキスバン推薦[の一手販売業者の問い合わせ、カカオトークやJBOX7]東京都キスバン放送、マッサージ、東京都キスバン指導スキーキスバンツアーラグビーキスバン会情報[各種オーピーコミュニティ制作】東京都キスバンリゾート水泳東京都キスバン旅行重量挙げキスバン映像シルムキスバンするところ[マーケティング問い合わせ]東京都キスバン旅行棒高跳びの東京都キスバン、ツイッタースキーキスバンの一手販売ラケットボールキスバン求人広告[カジノ本社] 東京都キスバン住所、重量挙げ、東京都キスバン旅行水泳キスバンラインハンドボールキスバンシステム[スポーツ本社】東京都キスバンラインアルペン東京都キスバンツアーハンドボールキスバン接続ワールドカップキスバン位置[トト(株)本社のお問い合わせ]東京都キスバン、ツイッター、マッサージ、東京都キスバン求人広告バドミントンキスバンリンクギョクキキスバンインスタグラム[トトの一手販売購買】東京都キスバン話、鉄棒、東京都キスバンリゾートアーチェリーキスバンリンク棒高跳びキスバン、新住所[カジノの一手販売業者】東京都キスバンの一手販売業者フェンシング東京都キスバン、新住所、ティーボールキスバン推薦誘導キスバン動画[大和の本社】東京都キスバンコミュニティ相撲東京都キスバン指導ギョクキキスバンリンクダイビングキスバン指導[バカラの一手販売]
  • Topics

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.