ReyEspada45 Posted April 19, 2013 Share Posted April 19, 2013 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 More sharing options...
ZAZ Posted April 19, 2013 Share Posted April 19, 2013 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 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
ReyEspada45 Posted April 19, 2013 Author Share Posted April 19, 2013 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 Link to comment Share on other sites More sharing options...
ZAZ Posted April 19, 2013 Share Posted April 19, 2013 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 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 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
ReyEspada45 Posted April 19, 2013 Author Share Posted April 19, 2013 wow ZAZ thank you very much, it worked , maybe I forgot something , 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 , thank you Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now