libGDX Scene2D-felületek
Úgy készít menüt és ablakot, hogy a játékszabály ne a látványelembe kerüljön. Rendezi a Stage-et, közös stílusokat, fókuszt és modális bemenetet átméretezéskor és képernyőváltáskor.
libgdx-scene2d-ui
Nézd meg, miben segítMikor hasznos?
Akkor használd, ha Scene2D-felületnek megbízható fókusz, modalitás, hosszú szöveg vagy méretezési alkalmazkodás kell.
Miben segít neked?
- Elkülöníti a Stage és Actor megjelenítését a játékállapottól.
- Egyértelmű erőforrásgazdával használja újra a Skin konvencióit.
- Meghatározza a modális bemenetet, billentyűfókuszt és átméretezést.
Például ezt kérheted
Készíts RPG-boltot görgethető tárgyakkal és megerősítő ablakkal. Navigálj billentyűzettel, méretezd át az ablakot és szakíts meg vásárlást. A fókusz térjen a kiválasztott tárgyra, a háttérjáték ne kapja a menübemenetet, a bolt bezárása ne törölje a közös stíluserőforrásokat.
Részletes dokumentáció
Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.
Összecsukás
libGDX — scene2d ui
Use when implementing libGDX Scene2D menus, dialogs, layout or UI focus.
Version and project gate
Inspect Gradle wrapper and modules, libGDX/backend versions, Java toolchain, ApplicationListener/Game/Screen structure, AssetManager ownership, viewport policy, native libraries and supported desktop/mobile/web targets. Never turn a task into an engine upgrade without the user’s intent. Read the version-matching official reference when an API decision depends on it.
Work
Separate Stage/Actor presentation from durable game state. Reuse the existing Skin and layout conventions. Set input ownership, modal behavior and keyboard focus explicitly. Keep act/draw timing and viewport application consistent and dispose stage-owned resources according to ownership.
Deliver
A complete menu/dialog interaction with long text and resize behavior. Keep the change in the existing project structure; separate actual observations from the proposed acceptance scenario below.
Failure to prevent
A Table layout is not automatic keyboard accessibility; sharing a Skin does not transfer disposal ownership to every screen.
Acceptance scenario
Open a modal over gameplay, navigate with keyboard, resize and dismiss it without a click falling through. Follow the project’s execution and verification permissions. If execution or a target device is unavailable, provide the reproduction steps and name the remaining uncertainty; do not mark it passed.
Scope and sources
This skill belongs to Keiko. Agent selection is restricted by Orqestria’s assigned-agent policy, including forced skill selection; instruction text alone is not an access control. These are original task workflows researched from official documentation, not a copied or endorsed vendor skill.
Task-specific official references
Csomagban lévő fájlok 1
SKILL.md
