Script Output Window

Gtuner IV general support. Operation, questions, updates, feature request.

Script Output Window

Postby UK_Wildcats » Tue Mar 19, 2019 1:53 pm

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)
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: Script Output Window

Postby DontAtMe » Tue Mar 19, 2019 4:37 pm

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);
 
}
User avatar
DontAtMe
Captain
Captain
 
Posts: 502
Joined: Tue Oct 02, 2018 4:49 am

Re: Script Output Window

Postby UK_Wildcats » Tue Mar 19, 2019 5:39 pm

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");
}
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: Script Output Window

Postby bonefisher » Tue Mar 19, 2019 7:28 pm

This is pretty cool! bark bark..... :smile0203:
Attachments
output panel.JPG
output panel.JPG (29.8 KiB) Viewed 652 times
bonefisher
Lieutenant General
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am

Re: Script Output Window

Postby DontAtMe » Tue Mar 19, 2019 10:25 pm

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);
}
This still produces the same result as the first example.
The ' \ ' I added before was not an actual line break.
UK_Wildcats_Fans wrote:
Code: Select all
printf("<center><font style='color:blue;font-size:14px;',<br>RAPID FIRE ON");
Not sure if this is why you added the <br> tag?
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");
I assume This is what you were going for though.
User avatar
DontAtMe
Captain
Captain
 
Posts: 502
Joined: Tue Oct 02, 2018 4:49 am

Re: Script Output Window

Postby UK_Wildcats » Tue Mar 19, 2019 10:49 pm

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.
User avatar
UK_Wildcats
Brigadier General
Brigadier General
 
Posts: 2243
Joined: Thu Jan 08, 2015 6:53 pm

Re: Script Output Window

Postby bonefisher » Tue Mar 19, 2019 10:55 pm

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
Lieutenant General
 
Posts: 5413
Joined: Thu Jan 29, 2015 10:49 am


Return to Gtuner IV Support

Who is online

Users browsing this forum: No registered users and 89 guests