Script Output Window
7 posts
• Page 1 of 1
Script Output Window
I really like the printf function for debugging and use it while gaming to ensure that I did not accidentally enable/disable mods.
Is it possible to have a separate window on Gtuner that shows the status of selected variables? Another option would be to have another function that is similar to printf but is for a separate window and can be custom (font size, color).
Example, showf(string, font size, color)
showf("RAPID FIRE ON", 14, blue)
showf("RAPID FIRE OFF", 14, red)
showf("RAPID FIRE PRESET is 3", 12, green)
Is it possible to have a separate window on Gtuner that shows the status of selected variables? Another option would be to have another function that is similar to printf but is for a separate window and can be custom (font size, color).
Example, showf(string, font size, color)
showf("RAPID FIRE ON", 14, blue)
showf("RAPID FIRE OFF", 14, red)
showf("RAPID FIRE PRESET is 3", 12, green)
-
UK_Wildcats - Brigadier General
- Posts: 2243
- Joined: Thu Jan 08, 2015 6:53 pm
Re: Script Output Window
- Code: Select all
int preset = 3;
init{
printf("<center><font style='color:blue;font-size:14px;'>\
RAPID FIRE ON");
printf("<center><font style='color:red;font-size:14px;'>\
RAPID FIRE OFF");
printf("<center><font style='color:green;font-size:12px;'>\
RAPID FIRE PRESET is %d", preset);
}
-
DontAtMe - Captain
- Posts: 502
- Joined: Tue Oct 02, 2018 4:49 am
Re: Script Output Window
Who says that you can't teach an old dog new tricks? Bark Bark. LOL Thank you!!
BTW - I ended using this because it was cleaner within the script.
BTW - I ended using this because it was cleaner within the script.
- Code: Select all
printf("<center><font style='color:blue;font-size:14px;',<br>RAPID FIRE ON");
}
-
UK_Wildcats - Brigadier General
- Posts: 2243
- Joined: Thu Jan 08, 2015 6:53 pm
Re: Script Output Window
This is pretty cool! bark bark.....
- Attachments
-
- output panel.JPG (29.8 KiB) Viewed 652 times
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
Re: Script Output Window
UK_Wildcats_Fans wrote:Who says that you can't teach an old dog new tricks? Bark Bark. LOL Thank you!!
BTW - I ended using this because it was cleaner within the script.
- Code: Select all
printf("<center><font style='color:blue;font-size:14px;',<br>RAPID FIRE ON");
}
- Code: Select all
int preset = 3;
init {
printf("<center><font style='color:blue;font-size:14px;'>RAPID FIRE ON");
printf("<center><font style='color:red;font-size:14px;'>RAPID FIRE OFF");
printf("<center><font style='color:green;font-size:12px;'>RAPID FIRE PRESET is %d", preset);
}
The ' \ ' I added before was not an actual line break.
Not sure if this is why you added the <br> tag?UK_Wildcats_Fans wrote:
- Code: Select all
printf("<center><font style='color:blue;font-size:14px;',<br>RAPID FIRE ON");
but either way you did not close the font tag before adding the <br> tag, so, it never actually made a line break for you.
- Code: Select all
printf("<center><font style='color:blue;font-size:14px;'><br>RAPID FIRE ON");
-
DontAtMe - Captain
- Posts: 502
- Joined: Tue Oct 02, 2018 4:49 am
Re: Script Output Window
When I copy and pasted your printf code, it was giving me a line break within the script and output window. I actually liked the break in the output window, but not in the script. Yes, I used <br> for the break because I was familiar with using it from the interactive configuration section. I really don't know html (or whatever format it is), so I just used what I know.
-
UK_Wildcats - Brigadier General
- Posts: 2243
- Joined: Thu Jan 08, 2015 6:53 pm
Re: Script Output Window
- Code: Select all
printf("<center><font style='color:blue;font-size:14px;'><br>RAPID FIRE ON");
Ah it updates without throwing a bunch of outputs...cool
- bonefisher
- Lieutenant General
- Posts: 5413
- Joined: Thu Jan 29, 2015 10:49 am
7 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 89 guests