![]() |
[REL] Tutorial: How to change buttons
Hi..my first Tutorial...be nice okay?
(Moderator: Please correct my bad english..thanks) Basics: I wanted to add some buttons to my Attack Periscope, so I took Ducimus´excellent documentation of FTT and fired up \Data\Menu\cfg\OrdersBar.cfg . http://home.arcor.de/xxerzengel/bild.JPG As you can see, [Station3] is the third Register with the small Pericsope Icon on it. So if you want to edit your attack Periscope Button line, you have to do it in [Station3]. The Buttons: I added the "goto attack Map" Button as Button 1 next to my "goto attack Periscope", "Toggle Silent Running" as Button 11 and "Crash-dive" as Button 12. In the \Data\Menu\cfg\OrdersBar.cfg are the all the buttons for every Station defined. Now scroll down to [Station3]. Code:
[Station3] Button[number]: the number in the row. 1 for the first and so on Type=Checkbox: Its a toggle. Like "goto attack-map". The Button is pressed and locked. Button[number]Command= A Command from Data\cfg\Commands.cfg Checks: Commands that return a boolean value (enabled and checked) can be negated by adding a ! sign before the actual command. Like in: Code:
Button8CommandWhenClicked=Toggle_Propulsion_Recharging a: Is it recharging at all? b: is the Sub NOT under water. (see the "!") Add a Button: To add the "goto attack Map" in your Attack Periscope Button row, just add Code:
Button1Type=Checkbox To add a Tooltip, just enter a text behind: Button[Your button number]Tooltip=YOUR TEXT HERE !!!!! IMPORTANT: You have to renumber your Button[number] (all of them) to reflect the position in your buttons Row. Button1...... for the first, Button2..... for the second and so on. Disclaimer: I run a 2048x1024 resolution ingame which means I have more space to add buttons. If you run a lower ingame resolution.....dunno what happens. Good Luck. Me, out €redits: To Ducimus for his great Mod and very good Documentation !! |
Many thanks... :up:
I am having a problem, like others sure. The mode "All Crew To Battlestations and Silent Running buttons into all Stations" is not updated for v1.2. V1.2 introduce some new buttons, then in some screens, the added buttons form this mod finished located under the little panel for status of Diesel Fuel, battery, Comp. Air and CO2..... The solution may be to move the added buttons up, then a samll background is needed, or to move the small satus panel up.... just at side of speed, heading and depth indicators....to uncover the buttons. Any opinion... can you manage it ? To move the buttons or the small panel may be not imposible, but i am scare to make a a new piece of background for them... :up::up::up: |
hi..
I would just remove the buttons u dont need and add the buttons you want ^^ Remember to backup your OrdersBar.cfg if you change something or apply a Patch/mod or all changes u made MIGHT be gone. |
All times are GMT -5. The time now is 07:40 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.