Introducing GuiButton.SecondaryActivated
Robloxは、右クリックや長押しなどのセカンダリ入力をクロスプラットフォームで統一して処理できる「GuiButton.SecondaryActivated」イベントを導入しました。この更新により、デバイスごとにUIロジックを分岐させる必要がなくなり、コンテキストメニューなどの実装が大幅に簡素化されます。
Roblox has introduced the GuiButton.SecondaryActivated event, providing a unified API for handling secondary inputs like right-clicks and long presses across different platforms. This update simplifies UI development by removing the need for device-specific logic branching for common interactions.
Vibe スコア
-100 〜 +100
このトピックは10分後に自動的に公開されました。
This topic was automatically opened after 10 minutes.
実はRobloxのかなり良い変更ですね!ちょうど自分のゲームで必要としていたところでした。
Actually a pretty solid change by roblox! I just needed it for my game..
おー、すごくいいですね。これでようやく、その場しのぎの面倒なやり方から解放されます!
Ooo very nice. I can finally get rid of my hacky workarounds for this!
ちょっと待って、これ実はかなりいいかも!
Hold on, this is actually pretty cool!
これはどのような場面で使えますか?右クリックのコンテキストメニューでしょうか?
In what contexts can I use this? Right-click context menu?
長押しや右クリックができることをユーザーに伝えるための、万国共通のシンボルやデザイン言語があればいいのにといつも思います。こうした操作が可能であることを示すのが難しく、これまで何度もデザインを台無しにしてきました。
I wish there was some universal symbol or design language I could use to show users that an element is long pressable or right clickable. I’ve mauled my designs time and time again because it’s hard to show that a user can do these things with controls.
全く同感です。特に長押しに関しては、操作が隠れすぎていて分かりにくいと感じることが多いです。プロキシミティ・プロンプト(近接プロンプト)はこうした情報を伝えるには最適ですが、特定のGUI要素にそのようなオーバーレイを表示すると、多くの場合、画面が煩雑になったり、情報が重複したりしてしまいます。何か別の方法を検討してみるのも面白いかもしれません。
couldn’t agree more, especially with long press… those interactions always feel very hidden! proximity prompts are great at providing this information but that kind of overlay on a specific gui element would feel very busy or repetitive in most cases. It could be interesting to explore some kind of
スワイプやドラッグ操作のような、よりダイナミックなゲームプレイ要素を追加することは可能でしょうか?追記:例えば、マウスで円を描く(モバイルならスワイプする)ことでハンバーガーをひっくり返すといった操作です。
Is it possible to add stuff like swipe/drag patterns to create more dynamic gameplay? EDIT: An example is for the player to make a circle by “drawing” it with their mouse (or swiping on mobile), so they can flip a burger for example.
これは素晴らしいですね。多くのシステムが簡素化され、開発者がUIに必要な複雑な入力処理に悩まされることなく、ゲームプレイの制作により集中できるようになります。
this is amazing, this will simplify so many systems and allow developers to focus more on gameplay and not trying to figure out the various inputs needed for their uis
guiobject::GuiStateのenumにおいて、セカンダリボタン(右クリック)の押下を表す状態は何ですか?
What enum state on guiobject::GuiState would represent a press with the secondary button?
これは本当に素晴らしい機能ですね。なぜ今まで標準機能になっていなかったのか不思議なくらいです。
This is such a good feature which I’m questioning why wasn’t a core feature by now
入力タイルマップにジェスチャーコントロールを追加し、モバイル版では要素の隅に配置してください(画像 1064×707 87.1 KB)。
add gesture controls to ur input tilemap and put one in the corner of the element on mobile image 1064×707 87.1 KB
デスクトップならカーソルがユーザーの意図を先読みできるため何とかなりますが、モバイルでは解決不可能な問題のように思えます。右クリックが割り当てられていることをヒントとして表示するのが解決策に近いかもしれませんが、それだとユーザーに高い推論能力を求めることになりますし、他の多くの要素にも当てはまってしまう可能性があります。
Yeah on desktop its manageable because the user has a cursor that can preempt the user’s intent, but on mobile it seems like an unsolvable problem. A hint that right click is bound seems the closest to helping, but that assumes a lot of deduction skills from the user, or could apply to many elements
押して!
Press!
あー、前にもこれを使おうとして、なぜかうまくいかなくて困った覚えがあります。まさに求めていた通りのもので、これでやっと使えます!ありがとうございます!
Ahhh I remember trying to use this before and being confused why it seemed to not work. It is exactly what I expected, and now I can use it! Cheers!
そのenumの状態の中で両者を区別してはいけないのでしょうか?新しい状態が定義されないのは不自然に感じます。例えば `.Press2` のような名前が良いと思います。
Why not differentiate the two in said enum state though? I find it unsound that it doesn’t get a new state. Something like .Press2 sounds good to me.
Agreed, I believe textbox also needs a GuiState for when the user is “Focused” on it.
create.roblox.comのTextBoxですね。プレイヤーが編集可能なテキストを表示する2Dユーザーインターフェース要素のことでしょうか?
create.roblox.com TextBox A 2D user interface element that displays player-editable text. you mean this?
いいえ、彼らが言っているのはcreate.roblox.comのGuiObjectのことです。これはすべての2Dユーザーインターフェースオブジェクトの抽象クラスです。
No they mean this create.roblox.com GuiObject An abstract class for all 2D user interface objects.