Pie015 Posted September 19, 2010 Share Posted September 19, 2010 Hey guys is there any tool too see the width and position, thanks in advance Link to comment https://gtaforums.com/topic/459531-menu/ Share on other sites More sharing options...
Bennington Posted September 20, 2010 Share Posted September 20, 2010 Do you mean your coordinates? There´s an tool integrated in Sanny Builder. Go to Tools -> IDE Tools -> Coords Manager while your game is running, and it will show you the player´s current position. Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060133075 Share on other sites More sharing options...
TheSiggi Posted September 20, 2010 Share Posted September 20, 2010 Do you mean your coordinates? There´s an tool integrated in Sanny Builder. Go to Tools -> IDE Tools -> Coords Manager while your game is running, and it will show you the player´s current position. Does that reflect anything he asked for? @topic: Just google around, I think I've seen something like this somewhere in MSDN but I can't remember where exactly but just try it out draw a texture at some coords Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060133082 Share on other sites More sharing options...
Bennington Posted September 20, 2010 Share Posted September 20, 2010 Do you mean your coordinates? There´s an tool integrated in Sanny Builder. Go to Tools -> IDE Tools -> Coords Manager while your game is running, and it will show you the player´s current position. Does that reflect anything he asked for? @topic: Just google around, I think I've seen something like this somewhere in MSDN but I can't remember where exactly but just try it out draw a texture at some coords Sorry man, I missed that he means the menu. When he said position I thought of coords... Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060133154 Share on other sites More sharing options...
TheSiggi Posted September 20, 2010 Share Posted September 20, 2010 Do you mean your coordinates? There´s an tool integrated in Sanny Builder. Go to Tools -> IDE Tools -> Coords Manager while your game is running, and it will show you the player´s current position. Does that reflect anything he asked for? @topic: Just google around, I think I've seen something like this somewhere in MSDN but I can't remember where exactly but just try it out draw a texture at some coords Sorry man, I missed that he means the menu. When he said position I thought of coords... they're coords...screen coords Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060133158 Share on other sites More sharing options...
Pie015 Posted September 20, 2010 Author Share Posted September 20, 2010 @to siggi: I saw your weapon menu mod, how did you get the coords for the screen??????? Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060133178 Share on other sites More sharing options...
fastman92 Posted September 20, 2010 Share Posted September 20, 2010 If you want to get good screen coords then run game, press PrintScreen and fetch coords in paint. After you do that and add cords to your script, texture will probably be near you want but in bad place yet. Then change X or Y around some points and test it Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060133245 Share on other sites More sharing options...
TheSiggi Posted September 21, 2010 Share Posted September 21, 2010 (edited) eemmm paint uses real desktop coords, while GTA uses a smaller gauge Edited September 21, 2010 by The_Siggi Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060133739 Share on other sites More sharing options...
Bennington Posted September 21, 2010 Share Posted September 21, 2010 Or look in the .cs file of the Weapon menu mod and look for opcode 08D4, there are some parameter about the panel... If The_Siggi don´t mind Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060134382 Share on other sites More sharing options...
TheSiggi Posted September 21, 2010 Share Posted September 21, 2010 (edited) sure I don't.... the next version will be an opensource project 0512: show_permanent_text_box 'WARDH3' //---------------- may set this into Settings block08D4: 1@ = create_panel_with_title 'PWMPH1' position 29.0 170.0 width 180.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel 1@ column 0 header 'PLA_19' data 'PWPMHM' 'GUN1' 'GUN2' 'PWMPHS' 'GUN5' 'GUN6' 'PWMPHH' 'GUN7' 'PWMPHE' 'PWMPHG' 'PWMPJE' 'PWPMX3' just look into other scripts that use menus so you can think of the limits Dejis Carmen mod creates a panel on the far right and it uses 08D4: 0@ = create_panel_with_title '_SPNCR0' position 360.0 170.0 width 230.0 columns 1 interactive 1 background 1 alignment 0 So 360.0 seems to be a limit on the right while 29.0 is on the left you can figure out the rest easily Edited September 21, 2010 by The_Siggi Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060134412 Share on other sites More sharing options...
Pie015 Posted September 22, 2010 Author Share Posted September 22, 2010 This mod isn't working, it says "excepting 15 parameters" at 08DB {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------33@ = Pickup.Create(1239, 23, 765.9999, 14.2958, 1000.7009)0000: NOPwait 400jump @20662: NOP "BUILT BY PIE015":108DA: remove_panel 2@ 08D4: 0@ = create_panel_with_title 'WARDH3' position 29.0 140.0 width 102.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel 0@ column 0 header 'FGHT_00' data 'FUTT_1' 'FUTT_2' 'FUTT_3' 'ESC' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'090E: set_panel 0@ active_row 0jump @3 :2wait 0if and Player.Defined($PLAYER_CHAR)00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 765.9999 14.2958 1000.7009 radius 1.0 1.0 1.0if and00BA: show_text_styled GXT 'TRAIN_19' time 3000 style 60AB0: key_pressed 1910AB0: key_pressed 840AB0: key_pressed 820AB0: key_pressed 650AB0: key_pressed 730AB0: key_pressed 78jf @208D4: 0@ = create_panel_with_title 'WARDH3' position 29.0 140.0 width 102.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel 0@ column 0 header 'FGHT_00' data 'FUTT_1' 'FUTT_2' 'FUTT_3' 'ESC' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 090E: set_panel 0@ active_row 0 03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 Player.CanMove($PLAYER_CHAR) = False0662: NOP "-----------------------------------FIGHTING STYLES-------------------------------------":3wait 0 if 00E1: player 0 pressed_key 16 jf @3 08D7: 1@ = panel 0@ active_row 1@ += 1 jump @4:4wait 0if 1@ == 1jf @507FE: set_actor $PLAYER_ACTOR fighting_style_to 5 1 00BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @5:5if 1@ == 2jf @607FE: set_actor $PLAYER_ACTOR fighting_style_to 5 200BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @6:6if 1@ == 3jf @707FE: set_actor $PLAYER_ACTOR fighting_style_to 5 300BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @7:8if 1@ == 4jf @9jump @1:903E6: remove_text_box 08DA: remove_panel 0@ 08DA: remove_panel 2@ 03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 Player.CanMove($PLAYER_CHAR) = Truejump @1 Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060135539 Share on other sites More sharing options...
TheSiggi Posted September 22, 2010 Share Posted September 22, 2010 This mod isn't working, it says "excepting 15 parameters" at 08DB {$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------33@ = Pickup.Create(1239, 23, 765.9999, 14.2958, 1000.7009)0000: NOPwait 400jump @20662: NOP "BUILT BY PIE015":108DA: remove_panel 2@ 08D4: 0@ = create_panel_with_title 'WARDH3' position 29.0 140.0 width 102.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel 0@ column 0 header 'FGHT_00' data 'FUTT_1' 'FUTT_2' 'FUTT_3' 'ESC' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY'090E: set_panel 0@ active_row 0jump @3 :2wait 0if and Player.Defined($PLAYER_CHAR)00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 765.9999 14.2958 1000.7009 radius 1.0 1.0 1.0if and00BA: show_text_styled GXT 'TRAIN_19' time 3000 style 60AB0: key_pressed 1910AB0: key_pressed 840AB0: key_pressed 820AB0: key_pressed 650AB0: key_pressed 730AB0: key_pressed 78jf @208D4: 0@ = create_panel_with_title 'WARDH3' position 29.0 140.0 width 102.0 columns 1 interactive 1 background 1 alignment 1 08DB: set_panel 0@ column 0 header 'FGHT_00' data 'FUTT_1' 'FUTT_2' 'FUTT_3' 'ESC' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 'DUMMY' 090E: set_panel 0@ active_row 0 03BF: set_player $PLAYER_CHAR ignored_by_everyone 1 Player.CanMove($PLAYER_CHAR) = False0662: NOP "-----------------------------------FIGHTING STYLES-------------------------------------":3wait 0 if 00E1: player 0 pressed_key 16 jf @3 08D7: 1@ = panel 0@ active_row 1@ += 1 jump @4:4wait 0if 1@ == 1jf @507FE: set_actor $PLAYER_ACTOR fighting_style_to 5 1 00BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @5:5if 1@ == 2jf @607FE: set_actor $PLAYER_ACTOR fighting_style_to 5 200BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @6:6if 1@ == 3jf @707FE: set_actor $PLAYER_ACTOR fighting_style_to 5 300BA: show_text_styled GXT 'CHAN_1' time 3000 style 7wait 55jump @7:8if 1@ == 4jf @9jump @1:903E6: remove_text_box 08DA: remove_panel 0@ 08DA: remove_panel 2@ 03BF: set_player $PLAYER_CHAR ignored_by_everyone 0 Player.CanMove($PLAYER_CHAR) = Truejump @1 080B requires 15 parameters.... you forgot several 'DUMMY's Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060135545 Share on other sites More sharing options...
fastman92 Posted September 22, 2010 Share Posted September 22, 2010 No, he didn't forget. He does not need so many rows in menu. But this opcode needs 15 parameters. Add empty string parameters such as '' Game will ignore then (NULL) and won't make rows with empty strings. You'll have 15 parameters, but only not null will create rows. It's tested sollution. Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060135649 Share on other sites More sharing options...
Bennington Posted September 22, 2010 Share Posted September 22, 2010 (edited) By the way @The_Siggi I´ve a confession to make... for my All Mission Access Mod I checked your Weapon Menu Mod to understand how a menu works... I hope your not angry, feel honored please I already mentioned you! Edited September 22, 2010 by Bennington Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060135703 Share on other sites More sharing options...
TheSiggi Posted September 23, 2010 Share Posted September 23, 2010 @fastman: Well, its all about the readability of your code Its a golden rule, make your source as readable as possible for yourself @Pie: there must be 12 strings after data always, you only got 11 so add 'DUMMY' to the end of the line cheers Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060136142 Share on other sites More sharing options...
fastman92 Posted September 23, 2010 Share Posted September 23, 2010 But if he'll add 12 DUMMY then menu will consist 12 rows available Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060136232 Share on other sites More sharing options...
TheSiggi Posted September 23, 2010 Share Posted September 23, 2010 But if he'll add 12 DUMMY then menu will consist 12 rows available eeemm no? 'DUMMY' is a keyword and will not create a row openup main.scm and have a look on the panels used in there.... 'DUMMY' 'DUMMY' and I've never seen the word in game my mod also uses 'DUMMY' a lot and it has no unused rows showing 'DUMMY' as text Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060136235 Share on other sites More sharing options...
yair1221 Posted September 23, 2010 Share Posted September 23, 2010 'DUMMY' means not to show an option if you use something like 'TESFFF'(doesnt exist in GXT file) then you will see the option,just...no text so use DUMMY if you dont want it to be seen Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060136243 Share on other sites More sharing options...
fastman92 Posted September 23, 2010 Share Posted September 23, 2010 Sorry, I didn`t know that there are two ways ('DUMMY' or '') in order game ignores them and won`t create rows. I thought that GTA SA would try to load such GXT entry, those name is 'DUMMY' Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060136593 Share on other sites More sharing options...
yair1221 Posted September 23, 2010 Share Posted September 23, 2010 no...thats the point, when you used the amount of menu possibilities that you need, you start using DUMMY in order the tell the game that there should not be anymore options i hope you understand what i just wrote because i cant understand it myself Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060136660 Share on other sites More sharing options...
BnB Posted September 23, 2010 Share Posted September 23, 2010 '' and 'DUMMY' is the same Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060136688 Share on other sites More sharing options...
yair1221 Posted September 23, 2010 Share Posted September 23, 2010 ill keep that in mind offtopic: if i use cleo opcode(0ab0) in a main.scm could it fu*k things up? Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060136813 Share on other sites More sharing options...
TheSiggi Posted September 24, 2010 Share Posted September 24, 2010 ill keep that in mindofftopic: if i use cleo opcode(0ab0) in a main.scm could it fu*k things up? yep, it will mess up Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060137547 Share on other sites More sharing options...
james227uk Posted September 24, 2010 Share Posted September 24, 2010 What? Unless that was sarcastic Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060137737 Share on other sites More sharing options...
TheSiggi Posted September 24, 2010 Share Posted September 24, 2010 What? Unless that was sarcastic for me CLEO opcodes never worked in threads.... not in SA and neither in VC Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060137739 Share on other sites More sharing options...
Anurag_Anmol Posted September 25, 2010 Share Posted September 25, 2010 -thread jack- What if the player presses one of them? How do you make the game do something then? Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060138661 Share on other sites More sharing options...
yair1221 Posted September 25, 2010 Share Posted September 25, 2010 (edited) :cwait 0if0ab0: WHATEVERKEYYOUWANTjf @c but that only works with CLEO :cwait 0if00e1: 0 WHATEVERKEYYOUWANTjf @c that works with scm Edited September 25, 2010 by yair1221 Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060138723 Share on other sites More sharing options...
TheSiggi Posted September 25, 2010 Share Posted September 25, 2010 :cwait 0 if 0ab0: WHATEVERKEYYOUWANT jf @c but that only works with CLEO :c wait 0 if 00e1: 0 WHATEVERKEYYOUWANT jf @c that works with scm eeem no? 00e1: only works with GTA keys Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060138724 Share on other sites More sharing options...
yair1221 Posted September 25, 2010 Share Posted September 25, 2010 that was not the question, i just showed him how to use 0ab0: and i just added a note, that it only works with CLEO... Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060138728 Share on other sites More sharing options...
BnB Posted September 25, 2010 Share Posted September 25, 2010 00E1 works in cleo too. Link to comment https://gtaforums.com/topic/459531-menu/#findComment-1060138730 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