MCPcopy Index your code
hub / github.com/SilverTree7622/Phaser3_GUI_Inspector

github.com/SilverTree7622/Phaser3_GUI_Inspector @1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.1 ↗ · + Follow
387 symbols 1,060 edges 28 files 0 documented · 0% updated 3y ago1.2.1 · 2020-08-04★ 741 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Phaser3_GUI_Inspector (PGInspector.js)

GitHub issues GitHub license GitHub All Releases jsDelivr npm

WARNING)\     This is the only for phaser3 framework

DESCRIPTION)\     I just inspired by babylon.js inspector\     This is a just custom dat.GUI, which works as Phaser3 inspector of each display list stuffs \     Also you can use this as debug displayed game objects

SCREENSHOT)

EXAMPLE)\     NODE_JS) - it has a issue so not recommended right now

npm install phaser3_gui_inspector --save-dev
npm i phaser3_gui_inspector --save-dev

// set in javascript file
import PhaserGUIAction from 'phaser3_gui_inspector';

    IN_HTML_URL) - prefer this method to test

// latest version
<script src="https://cdn.jsdelivr.net/gh/SilverTree7622/Phaser3_GUI_Inspector@latest/dist/PGInspector.js"></script>
// previous version
<script src="https://cdn.jsdelivr.net/gh/SilverTree7622/Phaser3_GUI_Inspector@1.1.1/dist/PGInspector.js"></script>

    IN_JS)

function create() {
    /*
    * your any codes
    */

    // should call this function at the end of Phaser.Scene create function
    // below method is gonna apply with default detailed setting
    PhaserGUIAction(this);

    // or

    // add some custom config object
    // first index is Phaser.Scene, second is config object
    PhaserGUIAction(
        this,
        {
            alpha: 0.6, // 0.0 ~ 1.0 (any value, you can change it in GUI)
            right: 100, // any value
            top: 50 // any value
            side: true // boolean (default is true)
        }
    );
}

        or

// your custom Phaser.Scene class
class MainScene extends Phaser.Scene {
    preload() {
        /*
        * your any codes
        */
    }
    create() {
        /*
        * your any codes
        */

        PhaserGUIAction(this); // also config object one works
    }
}

    IN_DEVTOOLS)\         It has some info in console way

USAGE)\     mouse command : \         (SHIFT + F) or (SHIFT + LEFT CLICK) is the most important & basic command for controlling Game Objects\         This makes Game Object 'Focus' which twinkles with RED BOUND\         The others is on the command list like below

<img src="https://github.com/SilverTree7622/Phaser3_GUI_Inspector/raw/1.2.1/zReadmeSrc/v120/cmdsCapture.gif" width="70%">

    You can find command list in the Side GUI (init option 'side' should be true)

WARNING)\         - You can find specific Game Object via opening DISPLAY_LIST\         but i recommend to use command because performance optimization is based on the command actions

VERSION)\     PREVIOUS_UPDATE) https://github.com/SilverTree7622/Phaser3_GUI_Inspector/tree/master/zUpdate

    1.2.0)\         - Add Pointer Mode for ease (Move, Scale, Angle, None)\           Related Commands are (SHIFT + Q, W, E, R) for changing Pointer Mode & control with (SHIFT + LEFT CLICK)

<img src="https://github.com/SilverTree7622/Phaser3_GUI_Inspector/raw/1.2.1/zReadmeSrc/v120/pointerModeCapture.gif" width="70%">

        - Add Camera Move & Zoom\           Related Commands are (SHIFT + RIGHT CLICK) & (SHIFT + MOUSE SCROLL) & (SHIFT + S)

<img src="https://github.com/SilverTree7622/Phaser3_GUI_Inspector/raw/1.2.1/zReadmeSrc/v120/camerDebugCapture.gif" width="70%">

        - Add Following Focused Game Object\           Related Commands (SHIIFT + A) following or stop toggling when focused

<img src="https://github.com/SilverTree7622/Phaser3_GUI_Inspector/raw/1.2.1/zReadmeSrc/v120/followingCapture.gif" width="70%">

        - Improve performance via partially hide

        - Add Focus on/off toggle in detail

        - Add Focus Game Object visible toggle\           Related Commands (SHIIFT + V) when focused

        - Add Focus Game Object's detail\           Related Commands (SHIIFT + D) when focused

        - Add Main Camera Blue Boundary only when move, zoom or following active

        - Add Default Zoom function which is just same as (SHIFT + S)

SHOWCASE)\     - mix with focused(SHIFT + F) + following(SHIFT + A) + Pointer Move Mode(SHIFT + Q)

<img src="https://github.com/SilverTree7622/Phaser3_GUI_Inspector/raw/1.2.1/zReadmeSrc/v120/showcase1.gif" width="70%">

    - test same thing in mini game

<img src="https://github.com/SilverTree7622/Phaser3_GUI_Inspector/raw/1.2.1/zReadmeSrc/v120/inGameTestCapture.gif" width="70%">

Core symbols most depended-on inside this repo

tryCatch
called by 244
js/manager/TypeSortManager.js
update
called by 98
js/main.js
create
called by 96
zExample/typescript/src/scenes/HelloWorldScene.ts
destroy
called by 87
js/lib/DatGUI/index.js
chckEndSorting
called by 23
js/manager/TypeSortManager.js
openFolder
called by 16
js/manager/FolderManager.js
i
called by 13
js/lib/DatGUI/DatGUILib.js
getFocusGameObj
called by 13
js/manager/DebugBoxManager.js

Shape

Method 249
Function 108
Class 30

Languages

TypeScript100%

Modules by API surface

js/manager/InputManager.js41 symbols
js/manager/FolderManager.js40 symbols
js/manager/TypeSortManager.js39 symbols
js/manager/DebugBoxManager.js32 symbols
js/lib/DatGUI/DatGUILib.js32 symbols
zExample/ionic/api/PGInspector.min.js27 symbols
zExample/ionic/api/phaser.min.js26 symbols
js/manager/CameraManager.js26 symbols
js/lib/index.js14 symbols
js/manager/SrcManager.js13 symbols
js/lib/DatGUI/DatGUIcss.js13 symbols
js/gui/SideGUIClass.js12 symbols

For agents

$ claude mcp add Phaser3_GUI_Inspector \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page