Menu!

Discuss thaw modding, post your own, share your ideas, ask questions.
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Menu!

Postby sMo0g™ » Wed Dec 16, 2009 7:45 pm

I can not create the new button in a menu...
I create a new text document insert it:

Code: Select all

%include "MyMenu.qb_table.qbi"   #/ Table file
:i $hide_current_goal$
:i $make_label_menu$:s{
   :i $title$ = %s(0,"My Menu")
   :i $title_pos$ = %vec2(160.000000,40.000000)$pos$ = %vec2(130.000000,120.000000)$title_rotation$ = %i(10,0000000a)
   :i $spacing$ = %i(2,00000002)
   :i $pad_back_script$ = call $generic_menu_pad_back$ arguments
      $pad_back_params$ = :s{$callback$ = $[b]create_pause_menu[/b]$:s}
:i :s}
:i $pause_menu_gradient$
:i $white_poly_bg_effect$
:i $GoalManager_HideGoalPoints$
:i $GoalManager_HidePoints$
:i $unhide_root_window$
   :i $array_name$ = $MyMenuArray$
   :i $GetArraySize$%GLOBAL%$array_name$
   :i $item_index$ = %i(0,00000000)
   :i while
     
      :i $text$ =  ( (%GLOBAL%$array_name$:a{%GLOBAL%$item_index$:a}) ->$text$)
      :i $rot$ =  ( (%GLOBAL%$array_name$:a{%GLOBAL%$item_index$:a}) ->$rot$)
      :i $pad_choose_script$ =  ( (%GLOBAL%$array_name$:a{%GLOBAL%$item_index$:a}) ->$pad_choose_script$)

         :i $add_label_menu_item$:s{
               :i $text$ = %GLOBAL%$text$
               :i $rot$ = %GLOBAL%$rot$
               :i $length$ = %i(140,00000096)
               :i $scale$ = %f(0.700000)
               :i $text_offset$ = %vec2(0.000000,0.000000)
               :i $label_offset$ = %vec2(-10.000000,0.000000)
               :i $pad_choose_script$ = %GLOBAL%$pad_choose_script$
            :i :s}

      :i %GLOBAL%$item_index$ =  (%GLOBAL%$item_index$ + %i(1,00000001))
   :i loop_to %GLOBAL%$array_size$
:i $label_menu_finish$
:i endfunction

Then I save and compile... In the total for me file: temp.dump 0 kb(without maintenance)
That to do me?
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Menu!

Postby sMo0g™ » Thu Dec 17, 2009 12:26 pm

At me a file in general without the maintenance as it to edit in a hex?
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Menu!

Postby sMo0g™ » Fri Dec 18, 2009 2:07 pm

Fooog
Posts: 19
Joined: Sat Aug 01, 2009 2:04 pm
Contact:

Re: Menu!

Postby Fooog » Fri Dec 18, 2009 5:02 pm

WTQ?!

We do not understand(((
You can tell how to create at least click (button)?
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Menu!

Postby sMo0g™ » Fri Dec 18, 2009 6:09 pm

I created a menu!
Here: http://rapidshare.com/files/322609895/temp.rar.html
Only when I inserted I him in a menu and include a menu in thaw and a game hangs up for me
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Menu!

Postby sMo0g™ » Fri Dec 18, 2009 6:13 pm

Here code which I compiled:

Code: Select all

#/ QB Script version 2.1 by RoQ www.HackTHPS.de
%include "gamemenu_pause.qb_table.qbi"   #/ Table file

:i $hide_current_goal$
:i $make_label_menu$:s{
   :i $title$ = %s(0,"Hack's server")
   :i $title$ = %s(1,"Useful menu")
   :i $title$ = %s(2,"The last mod menu")
   :i $title_pos$ = %vec2(160.000000,40.000000)$pos$ = %vec2(130.000000,120.000000)$title_rotation$ = %i(10,0000000a)
   :i $spacing$ = %i(2,00000002)
   :i $pad_back_script$ = call $generic_menu_pad_back$ arguments
      $pad_back_params$ = :s{$callback$ = $create_pause_menu$:s}
:i :s}
:i $pause_menu_gradient$
:i $white_poly_bg_effect$
:i $GoalManager_HideGoalPoints$
:i $GoalManager_HidePoints$
:i $unhide_root_window$
   :i $array_name$ = $MyMenuArray$
   :i $GetArraySize$%GLOBAL%$array_name$
   :i $item_index$ = %i(0,00000000)
   :i while
     
      :i $text$ =  ( (%GLOBAL%$array_name$:a{%GLOBAL%$item_index$:a}) ->$text$)
      :i $rot$ =  ( (%GLOBAL%$array_name$:a{%GLOBAL%$item_index$:a}) ->$rot$)
      :i $pad_choose_script$ =  ( (%GLOBAL%$array_name$:a{%GLOBAL%$item_index$:a}) ->$pad_choose_script$)

         :i $add_label_menu_item$:s{
               :i $text$ = %GLOBAL%$text$
               :i $rot$ = %GLOBAL%$rot$
               :i $length$ = %i(140,00000096)
               :i $scale$ = %f(0.700000)
               :i $text_offset$ = %vec2(0.000000,0.000000)
               :i $label_offset$ = %vec2(-10.000000,0.000000)
               :i $pad_choose_script$ = %GLOBAL%$pad_choose_script$
            :i :s}

      :i %GLOBAL%$item_index$ =  (%GLOBAL%$item_index$ + %i(1,00000001))
   :i loop_to %GLOBAL%$array_size$
:i $label_menu_finish$
:i endfunction
:i :end


#/ END
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Menu!

Postby sMo0g™ » Fri Dec 18, 2009 6:17 pm

Code: Select all

:i $title$ = %s(0,"hack''s server")   
:I $title$ = %s(1,"useful menu")   
:I $title$ = %s(2,"the last mod menu")

It is the buttons in a menu
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Menu!

Postby sMo0g™ » Fri Dec 18, 2009 9:07 pm

Can me make a code without errors fully without errors
And I understand nothing
Fooog
Posts: 19
Joined: Sat Aug 01, 2009 2:04 pm
Contact:

Re: Menu!

Postby Fooog » Fri Dec 18, 2009 9:50 pm

hm...
Code for the menu from 3-ev buttons will be as follows:

Code: Select all

%include "gamemenu_pause.qb_table.qbi"   #/ Table file

:i $hide_current_goal$
:i $make_label_menu$:s{

:i $title$ = %s(14,"hack''s server")   
:I $title$ = %s(11,"useful menu")   
:I $title$ = %s(17,"the last mod menu")
:i :s}
:i $pause_menu_gradient$
:i $white_poly_bg_effect$
:i $GoalManager_HideGoalPoints$


ololo
Last edited by Fooog on Sat Feb 20, 2010 4:23 pm, edited 1 time in total.
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Menu!

Postby sMo0g™ » Sat Dec 19, 2009 1:28 pm

This code:

Code: Select all

#/ QB Script
%include "gamemenu_pause.qb_table.qbi"   #/ Table file

:i $hide_current_goal$
:i $make_label_menu$:s{
   :i $title$ = %s(10,"New menu's")
   :i $title_pos$ = %vec2(160.000000,40.000000)$pos$ = %vec2(130.000000,120.000000)$title_rotation$ =

%i(10,0000000a)
   :i $spacing$ = %i(2,00000002)
   :i $pad_back_script$ = call $generic_menu_pad_back$ arguments
      $pad_back_params$ = :s{$callback$ = $create_pause_menu$:s}
:i :s}
:i $pause_menu_gradient$
:i $white_poly_bg_effect$
:i $GoalManager_HideGoalPoints$
:i $GoalManager_HidePoints$
:i $unhide_root_window$
   :i $array_name$ = $MyMenuArray$
   :i $GetArraySize$%GLOBAL%$array_name$
   :i $item_index$ = %i(0,00000000)
   :i while
     
      :i $text$ =  ( (%GLOBAL%$array_name$:a{%GLOBAL%$item_index$:a}) ->$text$)
      :i $rot$ =  ( (%GLOBAL%$array_name$:a{%GLOBAL%$item_index$:a}) ->$rot$)
      :i $pad_choose_script$ =  ( (%GLOBAL%$array_name$:a{%GLOBAL%$item_index$:a})

->$pad_choose_script$)

         :i $add_label_menu_item$:s{
               :i $text$ = %GLOBAL%$text$
               :i $rot$ = %GLOBAL%$rot$
               :i $length$ = %i(140,00000096)
               :i $scale$ = %f(0.700000)
               :i $text_offset$ = %vec2(0.000000,0.000000)
               :i $label_offset$ = %vec2(-10.000000,0.000000)
               :i $pad_choose_script$ = %GLOBAL%$pad_choose_script$
            :i :s}

      :i %GLOBAL%$item_index$ =  (%GLOBAL%$item_index$ + %i(1,00000001))
   :i loop_to %GLOBAL%$array_size$
:i $label_menu_finish$
:i endfunction
:i :end


#/ END

is it one button???
If and that as to me if skompiliroval I 3 buttons separately to connect in a menu?
VOIN
Posts: 86
Joined: Wed Oct 28, 2009 8:53 pm
Contact:

Re: Menu!

Postby VOIN » Fri Dec 25, 2009 2:41 pm

do video, how to do a menu pls ? for *bag* a command.
please please please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Return to “THAW modding”

Who is online

Users browsing this forum: No registered users and 31 guests