Does anybody know?

Discuss thaw modding, post your own, share your ideas, ask questions.
sindrom
Posts: 32
Joined: Thu Oct 15, 2009 8:33 am
Contact:

Does anybody know?

Postby sindrom » Wed Nov 25, 2009 7:14 pm

Does anybody know what is %i, %s and other %*
and can you write example for do off/on menu, with flags and where and which flags i must write to use it off/on function?
WhoElseButMe
Posts: 419
Joined: Tue Aug 04, 2009 12:50 am
Location: FL - USA
Contact:

Re: Does anybody know?

Postby WhoElseButMe » Wed Nov 25, 2009 9:26 pm

answer part 1:
these "%" are part of Blubs syntax and are used to identify certain items in the script
they can also be used in a formatted string to identify anything (more on that later)

Basic % usage: (format = explanation followed by typical usage)
%i = an integer item (a number without a decimal)
$score$ = %i(100,00000064)
the item that uses the integer
the number value of the integer
4 byte hex value of the number

%s or %sc = strings or text if you will
$text$ = %s(39,"This is a test string for thps-mods.com")
sets a place value for the text of an item, this could be a menu button, title, formatted text string, whatever
the number of characters found in your string
your text string

%f = a float item (a number with a decimal)
$scale$ = %f(1.000000)
the item that uses the float
the number value of the float

floats can also be in multiples of 2 or 3 their % would look something like this...
%vec2 (for 2 floats) %vec3 (for three floats) (giving an example of %vec2 below)
$dims$ = %vec2(600.000000,237.000000)
the item that uses the float
the number value of the first float
the number value of the second float

those are the ones i can think of off the top of my head, if you find anymore post them here.
now onto formatted text strings and using % values within them...
Other % usages:
you can make a formatted text string (for more than just text) and use %? values within it to get values of other items for your string
some usages = to get exact file names, when using prefixes or suffixes in your file names this can be a very efficient method of getting the file name. typical modder usage would be more along the lines of text string usages like maybe a menu button that you want to also display the item value, or a text string sent to the console to display an item value. confused yet? let me explain more

the code for modder usage would look something like this...(this was pulled from my auto-server script that displays a console message)
:i call $FormatText$ arguments
$TextName$ = $break_string_text$%s(42,"\caAuto\c9Server \c0%t second Break-Period")$t$ = %GLOBAL%$break_time$
:i call $SendChatMessage$ arguments
$string$ = %GLOBAL%$break_string_text$
the name of our formatted text string to be sent to another function, and its usage at the other function
our pre-formatted string
our % value, this is the reason why we need to use formatted text.
this explains what %t value is, this gets the current break time that the host has set and displays it as text, 30, 60, 120 etc.

see part 2 below...
Image
WhoElseButMe on Nov 26, 2009 wrote:It's that lack of respect amongst their peers and ignorance towards modding etiquette that keeps us who know this stuff well from spreading it like wild fire. We do still enjoy playing the game and if you need to cheat to play a game PLAY SOMETHING ELSE YOU DON'T SUCK AT.
WhoElseButMe
Posts: 419
Joined: Tue Aug 04, 2009 12:50 am
Location: FL - USA
Contact:

Re: Does anybody know?

Postby WhoElseButMe » Fri Nov 27, 2009 1:50 am

answer part 2:

There isn't a set menu type that is an "on/off menu" the items used in the menu do different things
you create the buttons to turn functions on or off. im going to show you how to make a single function menu, not an array menu
(array menu tut can be found here How to create a menu)
first you want to think about what style of menu you want! THAW has a few different styles, the main one used is a "label_menu", other common menus used are "theme_menu"'s, debug options uses THAW style "roundbar_menu"'s
each one of these menu types has a list of menu items you can use and most are the same across the board, however, their pointer name is different depending on the menu style.
but for starters i'll show you what you asked for and that's flag_item and how to use a menu_item that functions exactly as a flag_item

you'll need to link to your menu "$pad_choose_script$ = $THE_NAME_OF_YOUR_MENU_FUNCTION$"
this can be in any menu you like, it could be skater controls, or even text commands too.

then you'll want to create your menu...
Label menu...((using a quote because colors aren't parsed when wrapped in code tags)see code below)
%include "THE_NAME_OF_YOUR_MENU_FUNCTION.qb_table.qbi" #/ Table file

:i $hide_current_goal$
:i $make_label_menu$:s{
:i $title$ = %s(15,"Title Goes Here")
:i $title_pos$ = %vec2(100.000000,40.000000)$pos$ = %vec2(130.000000,120.000000)$title_rotation$ = %i(0,00000000)

:i $spacing$ = %i(1,00000001)
:i $Scrolling$
:i $padding_scale$ = %f(0.550000)
:i $dims$ = %vec2(250.000000,300.000000)
:i $pos$ = %vec2(120.000000,100.000000)
:i $pad_back_script$ = call $generic_menu_pad_back$ arguments
$pad_back_params$ = :s{$callback$ = $create_pause_menu$:s}
:i :s}
:i call $pause_menu_gradient$ arguments
$off$

:i $GoalManager_HideGoalPoints$
:i $GoalManager_HidePoints$
:i $unhide_root_window$

:i if call $GetGlobalFlag$ arguments
$flag$ = $YOUR_FLAG_NAME_GOES_HERE$
:i $hud_text$ = %s(2,"On")
:i else
:i $hud_text$ = %s(3,"Off")
:i endif
:i $add_label_menu_item$:s{$text$ = %s(28,"YOUR FUNCTION TEXT GOES HERE")
:i $extra_text$ = %GLOBAL%$hud_text$
:i $id$ = $BUTTON_ID_GOES_HERE, each must be different$
:i $pad_choose_script$ = $YOUR_FUNCTION_NAME_THAT_SETS_UNSETS_YOUR_FLAG_GOES_HERE$
:i :s}

:i $add_label_menu_flag_item$:s{
:i $text$ = %s(28,"YOUR FUNCTION TEXT GOES HERE")
:i $label_offset$ = %vec2(0.000000,0.000000)
:i $id$ = $BUTTON_ID_GOES_HERE, each must be different$
:i $flag$ = $YOUR_FLAG_NAME_GOES_HERE$
:i $reverse$
:i $no_bg$
:i :s}

:i $label_menu_finish$
:i endfunction

this must be here, it tells the game to create this type of menu, also the finish of the menu MUST be there too
this is the title of your menu and title parameters
this tells the game that this is a scrolling menu, remove this parameter if you don't want it to scroll
this is the function that is called when the "back" button is pressed
this is the background gradient, this can be set to on, off, left, right
hides hud items, objects, misc.
this is a menu item setup to act as an on/off or flag_item, these are more commonly used when you need to do more than just set or unset a flag
this is a flag_item, its functions are found deeper in the game, if your object is off but your text says "on" add the reverse parameter, these are the easiest way to turn on/off a flag IF that is all you need it to do
code only of above menu...

Code: Select all

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

:i $hide_current_goal$
:i $make_label_menu$:s{
   :i $title$ = %s(15,"Title Goes Here")
        :i $title_pos$ = %vec2(100.000000,40.000000)$pos$ = %vec2(130.000000,120.000000)$title_rotation$ = %i(0,00000000)
        :i $spacing$ = %i(1,00000001)
        :i $Scrolling$
        :i $padding_scale$ = %f(0.550000)
        :i $dims$ = %vec2(250.000000,300.000000)
        :i $pos$ = %vec2(120.000000,100.000000)
        :i $pad_back_script$ = call $generic_menu_pad_back$ arguments
                $pad_back_params$ = :s{$callback$ = $create_pause_menu$:s}
:i :s}
:i call $pause_menu_gradient$ arguments
                $off$
:i $GoalManager_HideGoalPoints$
:i $GoalManager_HidePoints$
:i $unhide_root_window$
:i if call $GetGlobalFlag$ arguments
      $flag$ = $YOUR_FLAG_NAME_GOES_HERE$
   :i $hud_text$ = %s(2,"On")
:i else
   :i $hud_text$ = %s(3,"Off")
:i endif
:i $add_label_menu_item$:s{$text$ = %s(28,"YOUR FUNCTION TEXT GOES HERE")
   :i $extra_text$ = %GLOBAL%$hud_text$
   :i $id$ = $BUTTON_ID_GOES_HERE, each must be different$
   :i $pad_choose_script$ = $YOUR_FUNCTION_NAME_THAT_SETS_UNSETS_YOUR_FLAG_GOES_HERE$
:i :s}
:i $add_label_menu_flag_item$:s{
   :i $text$ = %s(28,"YOUR FUNCTION TEXT GOES HERE")
   :i $label_offset$ = %vec2(0.000000,0.000000)
   :i $id$ = $BUTTON_ID_GOES_HERE, each must be different$
   :i $flag$ = $YOUR_FLAG_NAME_GOES_HERE$
   :i $reverse$
   :i $no_bg$
:i :s}
:i $label_menu_finish$
:i endfunction


now i'm going to show you 2 different ways to set and unset a flag,
first we'll start with the easiest method and that's simply using the "$add_label_menu_flag_item$"
basically, for this to work you need to know what you want to turn on/off, you'll need to find the script or scripts that house your data
why, you may be asking yourself? because you need to set a flag in that place...
i'm going to use my cheesy animations function as an example
i'll show you PART of it, it is in multiple scripts that i have this flag placed this one in particular is in the grabtrick function

Code: Select all

:i if call $GotParam$ arguments
      $SpecialItem_details$
   :i if NOT call $GetGlobalFlag$ arguments
         $flag$ = $FLAG_NO_CHESSY_ANIM$
      :i if call $StructureContains$ arguments
            $structure$ = %GLOBAL%$SpecialItem_details$$force_unflipped$
         :i if $flipped$
            :i $Flip$
            :i $Rotate$
            :i $boardrotate$
            :i $BlendPeriod$ = %i(0,00000000)
         :i endif
      :i endif
      :i call $TurnOnSpecialItem$ arguments
         $SpecialItem_details$ = %GLOBAL%$SpecialItem_details$
   :i else
      :i $TurnOffSpecialItem$
   :i endif
:i endif

what this says is IF the flag isn't set, to run the function normally, else $TurnOffSpecialItem$
to make this flag work you need to add it to global_flags.qb and to the flag_item

now for the other method..
since some items can't have a flag placed inline with the code you need to write a function to change a value
the flag in this case is used to tell IF the value is one thing then this item is on, else its off
physics options are an example of this method
i'm going to use my sticker slap/wall plant angle change function as an example...

Code: Select all

:i if NOT call $GetGlobalFlag$ arguments
      $flag$ = $FLAG_EXPERT_MODE_SS_WP_ANGLE$
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$menu_toggle_sswp$$child$ = %i(3,00000003):s}$text$ = %s(2,"On")
   :i call $change$ arguments
      $Physics_Wallplant_Min_Approach_Angle$ = %i(20,00000014)
   :i call $SetGlobalFlag$ arguments
      $flag$ = $FLAG_EXPERT_MODE_SS_WP_ANGLE$
:i else
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$menu_toggle_sswp$$child$ = %i(3,00000003):s}$text$ = %s(3,"Off")
   :i call $change$ arguments
      $Physics_Wallplant_Min_Approach_Angle$ = %i(50,00000032)
   :i call $UnsetGlobalFlag$ arguments
      $flag$ = $FLAG_EXPERT_MODE_SS_WP_ANGLE$
:i endif
:i endfunction

what this says is IF our flag isn't set then our physics value is normal
so it sets the flag and changes the physics value, now with the flag set the game knows that this function is on
for the button at the menu to function properly with setting the on or off screen element text the $id$ in this function MUST match the button $id$
the button should call on the name of this script
same as before, to make this flag work you need to add it to global_flags.qb and to the menu_item
that's it for setting flags

now with THAW you must compile each function separately and add them to the game one by one
read this tut How to create a menu for more detailed instructions on adding your script using QueenBee
now with flags currently in the game you can go about setting or un-setting those flags to gain new functionality
but let it be known that there are blocks in the code for certain flags and no i wont tell you how to bypass this to cheat

%
Last edited by WhoElseButMe on Sun May 08, 2011 3:48 am, edited 2 times in total.
Image
WhoElseButMe on Nov 26, 2009 wrote:It's that lack of respect amongst their peers and ignorance towards modding etiquette that keeps us who know this stuff well from spreading it like wild fire. We do still enjoy playing the game and if you need to cheat to play a game PLAY SOMETHING ELSE YOU DON'T SUCK AT.
sindrom
Posts: 32
Joined: Thu Oct 15, 2009 8:33 am
Contact:

Re: Does anybody know?

Postby sindrom » Thu Mar 11, 2010 7:44 am

:s{$callback$ = $create_pause_menu$:s}

What I want to write {$callback$ = $here??$:s} to callback game, not menu
sindrom
Posts: 32
Joined: Thu Oct 15, 2009 8:33 am
Contact:

Re: Does anybody know?

Postby sindrom » Fri Mar 12, 2010 6:50 am

menu_item
i can't find it
so i can't use flags, my menu button doesn't open, idk why
i added flags ("MY_FLAG_NAME" and "MY_FLAG_NAME2") to global_flags.qb
I compilled codes:
to menu:

Code: Select all

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

:i $hide_current_goal$
:i $make_label_menu$:s{
   :i $title$ = %s(11,"Off/On Menu")
        :i $title_pos$ = %vec2(100.000000,40.000000)$pos$ = %vec2(130.000000,120.000000)$title_rotation$ = %i(0,00000000)
        :i $spacing$ = %i(1,00000001)
        :i $Scrolling$
        :i $padding_scale$ = %f(0.550000)
        :i $dims$ = %vec2(250.000000,300.000000)
        :i $pos$ = %vec2(120.000000,100.000000)
        :i $pad_back_script$ = call $generic_menu_pad_back$ arguments
                $pad_back_params$ = :s{$callback$ = $create_pause_menu$:s}
:i :s}
:i call $pause_menu_gradient$ arguments
                $off$
:i $GoalManager_HideGoalPoints$
:i $GoalManager_HidePoints$
:i $unhide_root_window$
:i if call $GetGlobalFlag$ arguments
      $flag$ = $MY_FLAG_NAME$
   :i $hud_text$ = %s(2,"On")
:i else
   :i $hud_text$ = %s(3,"Off")
:i endif
:i $add_label_menu_item$:s{$text$ = %s(28,"YOUR FUNCTION TEXT GOES HERE")
   :i $extra_text$ = %GLOBAL%$hud_text$
   :i $id$ = $toggle_on$
   :i $pad_choose_script$ = $scriptme$
:i :s}
:i $add_label_menu_flag_item$:s{
   :i $text$ = %s(28,"YOUR FUNCTION TEXT GOES HER1")
   :i $label_offset$ = %vec2(0.000000,0.000000)
   :i $id$ = $toggle_on$
   :i $flag$ = $MY_FLAG_NAME$
   :i $reverse$
   :i $no_bg$
:i :s}
:i $label_menu_finish$
:i endfunction

and to button with flags off/on:

Code: Select all

%include "haha.qb_table.qbi" #/ Table file
:i if NOT call $GetGlobalFlag$ arguments
      $flag$ = $MY_FLAG_NAME$
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$toggle_on$$child$ = %i(3,00000003):s}$text$ = %s(2,"On")
   :i call $change$ arguments
      $Physics_Wallplant_Min_Approach_Angle$ = %i(20,00000014)
   :i call $SetGlobalFlag$ arguments
      $flag$ = $MY_FLAG_NAME$
:i else
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$toggle_on$$child$ = %i(3,00000003):s}$text$ = %s(3,"Off")
   :i call $change$ arguments
      $Physics_Wallplant_Min_Approach_Angle$ = %i(500,00000032)
   :i call $UnsetGlobalFlag$ arguments
      $flag$ = $MY_FLAG_NAME2$
:i endif
:i endfunction

what's wrong?
QB Key of button "scriptme"
QB Key of off/on Menu "menu_offon"
I added 2 button's to menu ( {"Menu" with "pad_choose_script" = "menuoffon"} and {"Off/On Menu" with "pad_choose_script" = "scriptme"} ) what is wrong? It isn't opens in game =( only sound of click
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Does anybody know?

Postby sMo0g™ » Sat Mar 13, 2010 7:05 pm

please make speed on/off code
VOIN
Posts: 86
Joined: Wed Oct 28, 2009 8:53 pm
Contact:

Re: Does anybody know?

Postby VOIN » Sat Mar 13, 2010 9:05 pm

can give is ready code that you could insert it pls...?
sindrom
Posts: 32
Joined: Thu Oct 15, 2009 8:33 am
Contact:

Re: Does anybody know?

Postby sindrom » Sun Mar 14, 2010 4:30 pm

WhoElseButMe wrote:Here is a flag item you can use

Code: Select all

:i $add_label_menu_flag_item$:s{
   :i $text$ = %s(12,"Normal Blood")
   :i $id$ = $menu_toggle_blood_flag$
   :i $flag$ = $BLOOD_OFF$
:i :s}

flag_items are simple as that,
1) text - to give your button text
2) id - for the button function to have a screen_element id to pass the extra_text to.
3) flag - the flag that's either set or unset

since sometimes you need more functionality with setting and unsetting flags, you would call on your own function
i'll do a working example of blood on/off but instead of using a flag item we'll use a function.
Button Setup

Code: Select all

:i if call $GetGlobalFlag$ arguments
      $flag$ = $BLOOD_OFF$
   :i $hud_text$ = %s(2,"On")
:i else
   :i $hud_text$ = %s(3,"Off")
:i endif
:i $add_label_menu_item$:s{
   :i $text$ = %s(12,"Normal Blood")
   :i $extra_text$ = %GLOBAL%$hud_text$
   :i $id$ = $menu_toggle_blood_function$
   :i $pad_choose_script$ = $my_toggle_blood_function$
:i :s}

Function Setup

Code: Select all

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

:i if NOT call $GetGlobalFlag$ arguments
      $flag$ = $BLOOD_OFF$
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$menu_toggle_blood_function$$child$ = %i(3,00000003):s}$text$ = %s(2,"On")
   :i call $SetGlobalFlag$ arguments
      $flag$ = $BLOOD_OFF$
:i else
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$menu_toggle_blood_function$$child$ = %i(3,00000003):s}$text$ = %s(3,"Off")
   :i call $UnsetGlobalFlag$ arguments
      $flag$ = $BLOOD_OFF$
:i endif
:i endfunction


I should use all it codes in one script of menu? or i want compile 2 files?
sindrom
Posts: 32
Joined: Thu Oct 15, 2009 8:33 am
Contact:

Re: Does anybody know?

Postby sindrom » Mon Mar 15, 2010 2:34 pm

:i $pad_choose_script$ = $YOUR_FUNCTION_NAME_THAT_SETS_UNSETS_YOUR_FLAG_GOES_HERE$
It's not working!
I add FUNCTION_ONOFF to gamemenu_pause.qb.wpc and in code
:i $pad_choose_script$ = $FUNCTION_ONOFF$

I have 2 buttons - Functions off and Functions <ON>

menu func

Code: Select all

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

:i $hide_current_goal$
:i $make_label_menu$:s{
:i $title$ = %s(15,"Title Goes Here")
:i $title_pos$ = %vec2(100.000000,40.000000)$pos$ = %vec2(130.000000,120.000000)$title_rotation$ = %i(0,00000000)
:i $spacing$ = %i(1,00000001)
:i $Scrolling$
:i $padding_scale$ = %f(0.550000)
:i $dims$ = %vec2(250.000000,300.000000)
:i $pos$ = %vec2(120.000000,100.000000)
:i $pad_back_script$ = call $generic_menu_pad_back$ arguments
$pad_back_params$ = :s{$callback$ = $create_pause_menu$:s}
:i :s}
:i call $pause_menu_gradient$ arguments
$off$
:i $GoalManager_HideGoalPoints$
:i $GoalManager_HidePoints$
:i $unhide_root_window$
:i if call $GetGlobalFlag$ arguments
$flag$ = $A_GLOBAL_FLAG$
:i $hud_text$ = %s(2,"On")
:i else
:i $hud_text$ = %s(3,"Off")
:i endif
:i $add_label_menu_item$:s{$text$ = %s(28,"Functions")
:i $extra_text$ = %GLOBAL%$hud_text$
:i $id$ = $button_off$
:i $pad_choose_script$ = $FUNCTION_ONOFF$
:i :s}
:i $add_label_menu_flag_item$:s{
:i $text$ = %s(28,"Functions")
:i $label_offset$ = %vec2(0.000000,0.000000)
:i $id$ = $button_off$
:i $flag$ = $A_GLOBAL_FLAG$
:i $reverse$
:i $no_bg$
:i :s}
:i $label_menu_finish$
:i endfunction

Set Unset flag func

Code: Select all

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

:i if NOT call $GetGlobalFlag$ arguments
      $flag$ = $A_GLOBAL_FLAG$
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$menu_toggle_sswp$$child$ = %i(3,00000003):s}$text$ = %s(2,"On")
   :i call $change$ arguments
      $Physics_Wallplant_Min_Approach_Angle$ = %i(20,00000014)
   :i call $SetGlobalFlag$ arguments
      $flag$ = $A_GLOBAL_FLAG$
:i else
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$menu_toggle_sswp$$child$ = %i(3,00000003):s}$text$ = %s(3,"Off")
   :i call $change$ arguments
      $Physics_Wallplant_Min_Approach_Angle$ = %i(50,00000032)
   :i call $UnsetGlobalFlag$ arguments
      $flag$ = $A_GLOBAL_FLAG$
:i endif
:i endfunction

-------------------------------------------------------------Now----------------------------------
IT IS WORKING!!!!!!!!!!111111111111111 but when i press Ollie game is fail =( only left or right and function not ON or OFF only string in menu, physics not changed =((
sindrom
Posts: 32
Joined: Thu Oct 15, 2009 8:33 am
Contact:

Re: Does anybody know?

Postby sindrom » Tue Mar 16, 2010 2:26 pm

oh maaaan thx!!!1111 It's REALY WORKING!!!!111111111 I love you, WhoElseButMe!!!!!!11111111 :DDDD it's awesome! thx thx thx)))
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Does anybody know?

Postby sMo0g™ » Tue Mar 16, 2010 7:03 pm

$id$

Is standart flag(SectionInteger)?
sMo0g™
Posts: 108
Joined: Fri Nov 20, 2009 1:20 pm
Location: Ukraine
Contact:

Re: Does anybody know?

Postby sMo0g™ » Tue Mar 16, 2010 11:39 pm

Please help me!
------------------------------------------------
This script is menu

Code: Select all

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

:i $hide_current_goal$
:i $make_label_menu$:s{
   :i $title$ = %s(15,"Title Goes Here")
        :i $title_pos$ = %vec2(100.000000,40.000000)$pos$ = %vec2(130.000000,120.000000)$title_rotation$ = %i(0,00000000)
        :i $spacing$ = %i(1,00000001)
        :i $Scrolling$
        :i $padding_scale$ = %f(0.550000)
        :i $dims$ = %vec2(250.000000,300.000000)
        :i $pos$ = %vec2(120.000000,100.000000)
        :i $pad_back_script$ = call $generic_menu_pad_back$ arguments
                $pad_back_params$ = :s{$callback$ = $create_pause_menu$:s}
:i :s}
:i call $pause_menu_gradient$ arguments
                $off$
:i $GoalManager_HideGoalPoints$
:i $GoalManager_HidePoints$
:i $unhide_root_window$
:i if call $GetGlobalFlag$ arguments
      $flag$ = $Test_speed$
   :i $hud_text$ = %s(2,"On")
:i else
   :i $hud_text$ = %s(3,"Off")
:i endif
:i $add_label_menu_item$:s{$text$ = %s(10,"Speed test")
   :i $extra_text$ = %GLOBAL%$hud_text$
   :i $id$ = $run_speed$
   :i $pad_choose_script$ = $Fuckspeed$
:i :s}
:i $add_label_menu_flag_item$:s{
   :i $text$ = %s(10,"Speed test")
   :i $label_offset$ = %vec2(0.000000,0.000000)
   :i $id$ = $run_speed$
   :i $flag$ = $Test_speed$
   :i $reverse$
   :i $no_bg$
:i :s}
:i $label_menu_finish$
:i endfunction


and this script function:

Code: Select all

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

:i if NOT call $GetGlobalFlag$ arguments
      $flag$ = $Test_speed$
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$run_speed$$child$ = %i(9999999,00000003):s}$text$ = %s(2,"On")
   :i call $SetGlobalFlag$ arguments
      $flag$ = $Test_speed$
:i else
   :i call $SetScreenElementProps$ arguments
      $id$ = :s{$run_speed$$child$ = %i(518,00000003):s}$text$ = %s(3,"Off")
   :i call $UnsetGlobalFlag$ arguments
      $flag$ = $Test_speed$
:i endif
:i endfunction

Red is standart SectionStruct

Please change a code if not correctly
Dj58
Posts: 3
Joined: Thu Jun 14, 2012 1:41 am
Contact:

Re: Does anybody know?

Postby Dj58 » Thu Jun 14, 2012 1:57 am

sindrom wrote:oh maaaan thx!!!1111 It's REALY WORKING!!!!111111111 I love you, WhoElseButMe!!!!!!11111111 :DDDD it's awesome! thx thx thx)))



hey man i don underestand anything can you make a menu for me?

Return to “THAW modding”

Who is online

Users browsing this forum: No registered users and 29 guests