Extend the "TS3-Sprecheranzeige"

Bugs, issues and questions regarding the pre-installed ROCCAT Tabs

Extend the "TS3-Sprecheranzeige"

Postby Buson94 » 6. Mar 2015, 00:53

Hello guys! :)

I don't know the english name of this plugin but it annoys me that the "TS3-Sprecheranzeige" can only display 6 people. It would be nice if i could extend this in any way...
I would do this on my own but i don't know how :(
Also the "|" symbol gets shown as "\p"...

I added a screenshot how it looks like at the moment for me.

I can code a little bit, so if you can explain to me how i extend the size of an locked object i will do this on my own :)
Attachments
Screenshot_2015-03-05-23-43-38.png
Screenshot_2015-03-05-23-43-38.png (617.41 KiB) Viewed 26184 times
Image
My PC:
Image
My Notebook:
Image
User avatar
Buson94
 
Posts: 4
Joined: 6. Mar 2015, 00:29
Location: Bremen, Germany

Re: Extend the "TS3-Sprecheranzeige"

Postby Addihash » 9. Mar 2015, 11:42

Try goig to your Power-Grid install folder (probably C:\Program Files (x86)\ROCCAT\Power-Grid) then go to \Data\CustomBtn and open up CustomBtn.json. Go to line 821 and change the Height value. Be careful to not mess anything up, I would recommend to back up the original file before changing anything.
I don't know if this solves your problem but it changes the size of the control so it is something to begin with.
Attachments
TSSize.PNG
TSSize.PNG (7.71 KiB) Viewed 26160 times
Addihash
Administrator
 
Posts: 232
Joined: 2. Feb 2015, 14:35

Re: Extend the "TS3-Sprecheranzeige"

Postby Buson94 » 10. Mar 2015, 02:21

Addihash wrote:Try goig to your Power-Grid install folder (probably C:\Program Files (x86)\ROCCAT\Power-Grid) then go to \Data\CustomBtn and open up CustomBtn.json. Go to line 821 and change the Height value. Be careful to not mess anything up, I would recommend to back up the original file before changing anything.
I don't know if this solves your problem but it changes the size of the control so it is something to begin with.
Thank you so much :) I didn't know where to look for this!

I got some things work(See the picture i added to the post). I will try if it shows more than 6 people tomorrow, script is already prepared for this i guess ^^

The only thing i have to figure out is how to get the "|" shown as it shouldbe and not as "\p". Character encoding is not available in Javascript as far as i know...
Attachments
Screenshot_2015-03-10-01-05-40.png
Screenshot_2015-03-10-01-05-40.png (304.48 KiB) Viewed 26142 times
Image
My PC:
Image
My Notebook:
Image
User avatar
Buson94
 
Posts: 4
Joined: 6. Mar 2015, 00:29
Location: Bremen, Germany

Re: Extend the "TS3-Sprecheranzeige"

Postby Addihash » 10. Mar 2015, 13:25

Have you tried to escape it? Just use '\|' instead of '|', maybe that works.
Addihash
Administrator
 
Posts: 232
Joined: 2. Feb 2015, 14:35

Re: Extend the "TS3-Sprecheranzeige"

Postby Buson94 » 11. Mar 2015, 02:27

Addihash wrote:Have you tried to escape it? Just use '\|' instead of '|', maybe that works.
This symbol is a part of the nickname, so this isn't the solution i'm looking for :(
Image
My PC:
Image
My Notebook:
Image
User avatar
Buson94
 
Posts: 4
Joined: 6. Mar 2015, 00:29
Location: Bremen, Germany

Re: Extend the "TS3-Sprecheranzeige"

Postby stuart72 » 7. May 2015, 20:22

OK

All done

in CustomBtn.json change the TSSpeaker section to - 12 names show, to show more change height and add more

Text:"",
Name:"Name0",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"20",
Width:"280",
Height:"30",
TextAlign:"CenterTop",

sections. Bits in red need changing (increment name and top position of text)


{
Name:"TSSpeaker",
OnInit:"InitBtnTSSpeaker",
OnTick:"TickBtnTSSpeaker",
Width:"2",
Height:"2",
Layouts:[
{
Type:"Gfx",
Gfx:"BG_Grey_01",
GfxP:"Ovl_Active_01",
Name:"BG",
Width:"1.0",
Height:"1.0",
},
{
Type:"Gfx",
Gfx:"TeamspeakLogo",
Left:20,
Top:30,
},
{
Type:"Gfx",
Name:"Gloss",
Gfx:"Ovl_Gloss_01",
Width:"1.0",
Height:"1.0",
},
{
Type:"Gfx",
Name:"Marker",
Gfx:"Marker_LEDGrey",
Align:"RightTop",
},
{
Text:"",
Name:"Name0",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"20",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name1",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"40",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name2",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"60",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name3",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"80",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name4",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"100",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name5",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"120",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name6",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"140",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name7",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"160",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name8",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"180",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name9",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"200",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name10",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"220",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
{
Text:"",
Name:"Name11",
Type:"Text",
Font:"EuroD,23",
Color:"#7f7f7f",
Left:"20",
Top:"240",
Width:"280",
Height:"30",
TextAlign:"CenterTop",
},
],
},

In CustomBtn.qs change the start of the InitBtnTSSpeaker to add extra names, ie xN12=this.FindLayout("Name11"); and add xN12 onwards to the axNames array. Devs were clever and wrote all the folloing code by dynamically getting the length of the xNames array, so nothing else needs changing.

function InitBtnTSSpeaker(p_xSkin)
{
var xMarker=this.FindLayout("Marker");
var xN0=this.FindLayout("Name0");
var xN1=this.FindLayout("Name1");
var xN2=this.FindLayout("Name2");
var xN3=this.FindLayout("Name3");
var xN4=this.FindLayout("Name4");
var xN5=this.FindLayout("Name5");
var xN6=this.FindLayout("Name6");
var xN7=this.FindLayout("Name7");
var xN8=this.FindLayout("Name8");
var xN9=this.FindLayout("Name9");
var xN10=this.FindLayout("Name10");
var xN11=this.FindLayout("Name11");

p_xSkin.data={
ctrl:this,
xMarker:xMarker,
axNames:[xN0,xN1,xN2,xN3,xN4,xN5,xN6,xN7,xN8,xN9,xN10,xN11],
counter:0,


these changes increase names to 12, height of button to 2. Can see why if you inctrease names to 18 and height to 3 why that wouldn't work too. Try it. But Backup your CustomBtn.qs and CustomBtn.json files first, just in case

quick edit - extended this to 2x3, worked fine!
stuart72
 
Posts: 1
Joined: 7. May 2015, 20:04

Re: Extend the "TS3-Sprecheranzeige"

Postby Addihash » 8. May 2015, 14:11

Nice job!
Addihash
Administrator
 
Posts: 232
Joined: 2. Feb 2015, 14:35

My supplementary website

Postby dorothyks11 » 2. Sep 2017, 12:58

My novel page
top strategy games on android android 9apps download play store apps free download top 9 apps android tablet 5 1
http://sexyapps.erolove.in/?dispatch.jenny
app downloading programs adult games for android sex videos download apps pron video apps adult movies online free watch
dorothyks11
 
Posts: 46
Joined: 1. Oct 2016, 03:12


Return to Incoming Center / System Stats / Sound Control / Settings (App)

Who is online

Users browsing this forum: No registered users and 1 guest

cron