Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

How to create a Panel or menu window


ReyEspada45
 Share

Recommended Posts

ReyEspada45

Hi, I want to make a panel or menu window, and I know which opcodes I have to use, but I'd want to know how to create a panel with my custom strings:

 

 

08D4: [email protected] = create_panel_with_title 'IE09' position 29.0 170.0 width 180.0 columns 1 interactive 1 background 1 alignment 0

 

 

I've tried to change 'IE09' and put 'GHOST51', that is a string in a FXT, but it doesn't work, It just appears without any text, and I don't know if 'IE09' is a string in the GXT or another thing.

 

 

08DB: set_panel [email protected] column 0 header 'PLA_19' data s$2518 s$2518 s$2518 s$2518 s$2518 s$2518 s$2518 s$2518 s$2518 s$2518 s$2518 s$2518

 

 

In this case It doesn't work neither, I've change 'PLA_19' and the string of s$2518 and put 'GHOST51', and the menu appears clear again

 

 

then, do these opcodes used to create a menu just use strings of the game and not of a FXT?

Link to comment
Share on other sites

yes, IE09 is a string but it isn't the text which will be shown but an entry of american.gxt to allocate the associated text

works also with fxt

i assume you made something wrong with your fxt, so post it

Link to comment
Share on other sites

ReyEspada45

My FXT It's very large, so I post the three last lines:

 

 

 

GHOST49 Here you can start the misionsGHOST50 You have killed him, Mission FailedGHOST51 Missions

 

 

Maybe there's a specific way to use these opcodes with a FXT, or declare a s$ or @s with the value of this string or its ID, I don't know how to make it work confused.gif

Link to comment
Share on other sites

 

My FXT It's very large, so I post the three last lines:

 

 

 

GHOST49 Here you can start the misionsGHOST50 You have killed him, Mission FailedGHOST51 Missions

 

 

Maybe there's a specific way to use these opcodes with a FXT, or declare a s$ or @s with the value of this string or its ID, I don't know how to make it work  confused.gif

looks good so far, i assume you know the rules: max. 7 chars for the fxt entry, only 1 space between the fxt entry and the text, only 1 space between words (charackters)

NO space at the end of a line

basicly, it's easy to show text with fxt, also inside of panels

test this if it works:

 

{$CLEO .cs}03A4: name_thread 'FXT'wait 200000BA: text_styled 'GHOST51'  1000 ms  4wait 100003E5: show_text_box 'GHOST51'wait 100000BB: show_text_lowpriority GXT 'GHOST51' time 1000 flag 1wait 100008D4: [email protected] = create_panel_with_title 'GHOST51' position 29.0 170.0 width 180.0 columns 1 interactive 1 background 1 alignment 0wait 300008DA: remove_panel [email protected] 100005AA: [email protected] = 'GHOST51'// [email protected] and [email protected] are reserverd for  'GHOST51'00BB: show_text_lowpriority GXT [email protected] time 2000 flag 1 0A93: end_custom_thread

 

if this script shows your text correct, then post your whole panel script

 

if the text will not be shown: could you ever display any text of a fxt file?

 

 

 

 

you can declare local vars with 05AA: and the expresion @s and use it then in text opcodes

 

05AA: [email protected] = 'GHOST51'00BB: show_text_lowpriority GXT [email protected] time 2000 flag 1

 

it needs to reserve 2 locals

 

this doesn't work:

 

05AA: [email protected] = 'GHOST51'// [email protected] and [email protected] are reserverd for  'GHOST51'[email protected] = 0// this corrupts the content of [email protected]: show_text_lowpriority GXT [email protected] time 2000 flag 1

 

this works:

 

05AA: [email protected] = 'GHOST51'// [email protected] and [email protected] are reserverd for  'GHOST51'[email protected] = 000BB: show_text_lowpriority GXT [email protected] time 2000 flag 1

 

 

 

Link to comment
Share on other sites

ReyEspada45

wow ZAZ thank you very much, it worked biggrin.gif, maybe I forgot something confused.gif , and well this is the code:

 

 

{$VERSION 3.1.0027}{$CLEO .CS}//-------------MAIN---------------thread "BASE" :BASE_8wait 0 if   Player.Defined($PLAYER_CHAR)jf @BASE_8 if  $ONMISSION == 0 jf @BASE_8 if 00FE:   actor $PLAYER_ACTOR sphere 1 in_sphere 681.565 -533.701 16.1875 radius 5.0 5.0 5.0 jf @BASE_8 wait 100003E5: show_text_box 'GHOST51'wait 100000BB: show_text_lowpriority GXT 'GHOST51' time 1000 flag 108D4: [email protected] = create_panel_with_title 'GHOST51' position 29.0 170.0 width 180.0 columns 1 interactive 1 background 1 alignment 0 08DB: set_panel [email protected] column 0 header 'GHOST51' data 'GHOST51' 'GHOST51' 'GHOST51' 'GHOST51' 'GHOST51' 'GHOST51' 'GHOST51' 'GHOST51' 'GHOST51' 'GHOST51' 'GHOST51' 'GHOST51'0A93: end_custom_thread 

 

 

 

that's not the whole code, It's just a test script, I'll use these opcodes in other script that I haven't written confused.gif, thank you colgate.gif

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.