Jump to content

Menu


Pie015

Recommended Posts

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 tounge.gif

 

draw a texture at some coords

Link to comment
https://gtaforums.com/topic/459531-menu/#findComment-1060133082
Share on other sites

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 tounge.gif

 

draw a texture at some coords

Sorry man, I missed that he means the menu. When he said position I thought of coords... blush.gif

Link to comment
https://gtaforums.com/topic/459531-menu/#findComment-1060133154
Share on other sites

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 tounge.gif

 

draw a texture at some coords

Sorry man, I missed that he means the menu. When he said position I thought of coords... blush.gif

they're coords...screen coords biggrin.gif

 

 

Link to comment
https://gtaforums.com/topic/459531-menu/#findComment-1060133158
Share on other sites

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

sure I don't.... the next version will be an opensource project tounge.gif

 

 

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 by The_Siggi
Link to comment
https://gtaforums.com/topic/459531-menu/#findComment-1060134412
Share on other sites

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

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

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

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 blush.gif

I already mentioned you!

Edited by Bennington
Link to comment
https://gtaforums.com/topic/459531-menu/#findComment-1060135703
Share on other sites

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

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 confused.gif

 

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

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

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
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

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