Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Sidebar
Sidebar [message #275668] Fri, 27 July 2007 00:09 Go to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
how could i get the side bar to work on a command
Re: Sidebar [message #275670 is a reply to message #275668] Fri, 27 July 2007 00:55 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
Read bhs.txt included in the scripts.
Here's an excerpt.
Quote:

There is a new feature, the sidebar. To activate it, call Display_GDI_Sidebar or Display_NOD_Sidebar which will display the sidebar for the given player.
The first button is the refill button then 3 infantry buttons and 4 vehicle buttons.
When the sidebar is created, if alternate selection is off, the alternate selection buttons are hidden otherwise the textures for them are loaded.
Also, the background and arrow textures are loaded.
And the refill button has its data set.
When displaying the sidebar buttons, the strings set in the PT data are not displayed.
If you want strings, you need to put them on the icon itself.
However, if the strings are set to string IDs 7265, 7263 or 9724, the PT icon is disabled.
Also, if the string is set to string ID 12574, the PT icon will be ignored/hidden.
If the preset ID is zero, that item is not displayed at all.
If the alternate select feature is not enabled, the normal yellow arrow alternate feature works.
Otherwise, the special alternate select feature is used.
If the flag set by Set_Currently_Building is set, the 4 vehicle buttons are disabled.
If less than <refilllimit> seconds have elapsed since the last refill by this player, the refill button is disabled.
If the special alternate select feature is enabled, the currently selected button is disabled (as a visual indicator of which alternate is selected)
When a sidebar purchase button that is not disabled is clicked, it is highlighted. When it is double clicked, the relavent purchase is made.
Pressing the up and down arrows scrolls the relavent list.
Pressing the alternate buttons (if the feature is enabled), changes the current alternate.
When items are purchased, if the sidebar sounds feature is enabled, the relavent sounds are played.

The following keys can be pressed whilst the sidebar is active:
Escape to cancel the dialog and close it.
Down to scroll both sides of the sidebar down one icon
Up to scroll both sides of the sidebar up one icon
1 to trigger the refill
2,3 and 4 to trigger the infantry buttons
5,6,7 and 8 to trigger the vehicle buttons
9 to scroll the both sides of the sidebar up one page
0 to scroll the both sides of the sidebar down one page
+ to scroll the sidebar to the end of the list
- to scroll the sidebar to the beginning of the list
A,B,C and D to change the current alternate (if the special alternate feature is enabled)

When a purchase button is clicked (or the relavent key is pressed) and the special alternate feature is disabled,
the item is purchased (just like the normal PT) and the sidebar goes away.
If the special alternate feature is enabled then the PT item corresponding to the current selected alternate is checked. If it exists, it is purchased..
Otherwise, the normal non alternate PT item is purchased.
The first button/key is for the normal non alternate PT item, the other 3 are for the 3 alternates.
If the item purchased is a refill, the refill limit is set (the refill limit is intended to prevent people who just sit there all day refilling constantly)

Whilst the sidebar is on the screen, you can still see (if they are in the default positions and havent been moved by the HUD code to somewhere the sidebar would obscure them) the radar, health bar, credits counter and time limit counter.
Also, you can see damage indicators to see that you are being attacked.
All relavent data is read from the Purchase Settings and Team Purchase Settings in leveledit.
All of the PT changing engine calls and scripts apply to the sidebar too and will be picked up by it.
Also, the sidebar is 100% compatible with the ExpVehFac scripts done by WhiteDragon
The sidebar requires VehicleBuildingDisable=true in hud.ini and also requires scripting (such as the ExpVehFac scripts)
to call Set_Currently_Building as appropriate.


http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Sidebar [message #275713 is a reply to message #275668] Fri, 27 July 2007 07:29 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
joe937465 wrote on Fri, 27 July 2007 02:09

how could i get the side bar to work on a command

I never heard of a sidebar in Renegade. I'm guessing your talking about a sidebar ingame. What is it?


http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: Sidebar [message #275715 is a reply to message #275668] Fri, 27 July 2007 07:31 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
see www.apathbeyond.com for examples of the sidebar.

http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Fri, 27 July 2007 07:31]

Report message to a moderator

Re: Sidebar [message #275729 is a reply to message #275715] Fri, 27 July 2007 08:42 Go to previous messageGo to next message
HORQWER is currently offline  HORQWER
Messages: 667
Registered: September 2006
Location: Under my bed (lolz)
Karma: 0
Colonel
how can i make it work

http://www.roleplay2.com/downloads/siggy.jpg
Re: Sidebar [message #275733 is a reply to message #275668] Fri, 27 July 2007 09:22 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Read the readme perhaps?

http://steamsignature.com/card/1/76561197975867233.png
Re: Sidebar [message #275735 is a reply to message #275713] Fri, 27 July 2007 09:37 Go to previous messageGo to next message
Ryu is currently offline  Ryu
Messages: 2833
Registered: September 2006
Location: Liverpool, England.
Karma: 0
General (2 Stars)

Sn1per74* wrote on Fri, 27 July 2007 09:29

joe937465 wrote on Fri, 27 July 2007 02:09

how could i get the side bar to work on a command

I never heard of a sidebar in Renegade. I'm guessing your talking about a sidebar ingame. What is it?


Kamuix has a sidebar in his server.


Presence is a curious thing, if you think you need to prove it... you probably never had it in the first place.
Re: Sidebar [message #275737 is a reply to message #275668] Fri, 27 July 2007 09:43 Go to previous messageGo to next message
zunnie is currently offline  zunnie
Messages: 2959
Registered: September 2003
Location: Netherlands
Karma: 0
General (2 Stars)

You could look at WhiteDragon's script MDB_ExpVehFac_Helipad as an
example how to use it.
I think this one uses the Sidebar too.


https://multiplayerforums.com/uploads/monthly_2018_03/TCW2_Signature.png.6236a0dbc6e1e53472a18fe8cd15e47b.png
Re: Sidebar [message #275791 is a reply to message #275737] Fri, 27 July 2007 14:03 Go to previous messageGo to next message
HORQWER is currently offline  HORQWER
Messages: 667
Registered: September 2006
Location: Under my bed (lolz)
Karma: 0
Colonel
i did not understand what was in that text

http://www.roleplay2.com/downloads/siggy.jpg
Re: Sidebar [message #275842 is a reply to message #275668] Sat, 28 July 2007 03:16 Go to previous messageGo to next message
jonwil is currently offline  jonwil
Messages: 3557
Registered: February 2003
Karma: 0
General (3 Stars)

The sidebar will only work if you are doing a mod where every player in the game can be guaranteed to have all the required data.


Jonathan Wilson aka Jonwil
Creator and Lead Coder of the Custom scripts.dll
Renegade Engine Guru
Creator and Lead Coder of TT.DLL
Official member of Tiberian Technologies
Re: Sidebar [message #276110 is a reply to message #275668] Sun, 29 July 2007 22:17 Go to previous messageGo to next message
_SSnipe_ is currently offline  _SSnipe_
Messages: 4121
Registered: May 2007
Location: Riverside Southern Califo...
Karma: 0
General (4 Stars)
kinda confussed here i just wanna make it so u do the command to only works for mods in the txt file Smile
Re: Sidebar [message #276179 is a reply to message #276110] Mon, 30 July 2007 06:12 Go to previous messageGo to next message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
I got this working yesterday actually. Add Display_NOD_Sidebar(obj);
That tis all! If you want a GDI one just replace NOD with GDI.


http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Re: Sidebar [message #276204 is a reply to message #276179] Mon, 30 July 2007 11:29 Go to previous messageGo to next message
crazfulla is currently offline  crazfulla
Messages: 667
Registered: September 2006
Location: Aotearoa
Karma: 0
Colonel
Sn1per74* wrote on Mon, 30 July 2007 08:12

I got this working yesterday actually. Add Display_NOD_Sidebar(obj);
That tis all! If you want a GDI one just replace NOD with GDI.

Don't let ACK catch you spelling 'Nod' like that... Sarcasm


"GEoDLeto wrote:"

so what you are saying it is gonna take even longer before this thing is finished
So the topic title should be changed to: a sucky little "teaser" from C&C Reborn has been released

"halo2pac wrote:"

Unless they are girls, I am not going to bone them.
Re: Sidebar [message #276239 is a reply to message #276179] Mon, 30 July 2007 16:09 Go to previous messageGo to next message
Tunaman
Messages: 1190
Registered: January 2005
Karma: 2
General (1 Star)
Sn1per74* wrote on Mon, 30 July 2007 09:12

I got this working yesterday actually. Add Display_NOD_Sidebar(obj);
That tis all! If you want a GDI one just replace NOD with GDI.

That was the first line in the part in bhs.txt that I quoted lol..


http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Sidebar [message #276253 is a reply to message #276204] Mon, 30 July 2007 17:32 Go to previous messageGo to next message
Muad Dib15 is currently offline  Muad Dib15
Messages: 839
Registered: July 2007
Location: behind a computer screen,...
Karma: 0
Colonel

crazfulla wrote on Mon, 30 July 2007 13:29


Don't let ACK catch you spelling 'Nod' like that... Sarcasm


Why? what's his problem with that?


Re: Sidebar [message #276254 is a reply to message #276253] Mon, 30 July 2007 17:34 Go to previous messageGo to next message
BlueThen is currently offline  BlueThen
Messages: 2402
Registered: February 2006
Karma: 0
General (2 Stars)
Muad Dib15 wrote on Mon, 30 July 2007 19:32

crazfulla wrote on Mon, 30 July 2007 13:29


Don't let ACK catch you spelling 'Nod' like that... Sarcasm


Why? what's his problem with that?

it was all caps. Some people get over obsessive about it and flame others for not spelling it properly. It's Nod, not NOD.
Re: Sidebar [message #276259 is a reply to message #276254] Mon, 30 July 2007 18:36 Go to previous message
Sn1per74* is currently offline  Sn1per74*
Messages: 939
Registered: April 2006
Karma: 0
Colonel
BUT! IN SSGM it's NOD- and its case sensitive. Therefore, he has nothing to complain about.

http://i4.photobucket.com/albums/y133/FMAROCKS/sniper74halosigsnipedontforgettogiv.png
Creator: AoBFrost
Previous Topic: What Do These Scripts Do
Next Topic: characters
Goto Forum:
  


Current Time: Wed Oct 30 02:21:47 MST 2024

Total time taken to generate the page: 0.01145 seconds