Player icon indicating copy to clipboard operation
Player copied to clipboard

New Command 2058 - String Picture Menu

Open jetrotal opened this issue 7 months ago • 3 comments

Transforms a String Picture into a menu. image

MAP DEMO: StringPicMenu.zip - Updated 01/August/24 Paste it inside a new project.


You can control the outputs from the menu through two approaches:

  • A - Points it to variables that will receive Menu's cursor position and Menu's cursor state.

  • B - Add a Show Choices Command right bellow the String Picture Menu Command. The Menu will replace the Show Choices UI, while reproducing its behavior.


Syntax (TPC):

Some of the parameters comes in pairs. The first parameter of each pair indicates whether you are using a direct value or a variable/indirect variable, through ValueOrVariable().

@raw 2058,
     "",           // [NOT USED. YOU CAN LEAVE IT BLANK]
      0,           // Mode [0: Enable Menu || 1: Disable Menu]
      0, 1,        // String Picture's ID
      0, 2,        // A variable that will store the current Cursor Position [Optional] 
      0, 3         // A variable that will store the current Cursor State [Optional]
                   // 👆 State Outputs: 0 means 'idle', 1 means 'confirm' and -1 means 'cancel'

Thanks to @MackValentine, for the initial commits.

image

jetrotal avatar Jul 22 '24 19:07 jetrotal