This thread is devoted to all those little things that we skinners and scripters find out which are actually very useful.
Lets try to suppress the useless posts here pls. I want it all to be good stuff to help noobs.
I'll start:
Finding out guid's of other components
This is if you wanna have buttons for other components.
1) Close wa3, rename studio.xnf to something else
2) open the componet you want to find the guid of
3) put in the top left of the screen
4) close wa3
5) open studio.xnf
6) find something that looks like this:
7) The code in the curly brackets is the guid.
8) Delete studio.xnf and repeat from 2) for other components.
9) rename the file back to studio.xnf that you renamed in 1)
Here are some guids that i have found using this method:
Colour controls: guid:{163FF355-9B87-49DE-BD72-EF5EA0C57FDD}
Skin Switcher: guid:{0000000A-0078-001E-2878-8C82786EBEC8}
Configurification: guid:{ED3CD0D9-5FE5-4C34-AFE9-52E714D4FAA4}
Shoutcast server list: guid:{AFF7172F-4E42-4A38-9106-86B610B482EF}
Database Explorer: guid:{DED19CA5-0AA6-48AE-8045-9F4975E51253}
Using system.getTimeOfDay()
System.getTimeOfDay() returns an Int which is the number of milliseconds since midnight to the nearest second To find the hours, minutes and seconds from this, use something like this:
Lets try to suppress the useless posts here pls. I want it all to be good stuff to help noobs.
I'll start:
Finding out guid's of other components
This is if you wanna have buttons for other components.
1) Close wa3, rename studio.xnf to something else
2) open the componet you want to find the guid of
3) put in the top left of the screen
4) close wa3
5) open studio.xnf
6) find something that looks like this:
where the value of "rect" begins with "0,0"code:
<section name="Container:Component:{163FF355-9B87-49DE-BD72-EF5EA0C57FDD}">
<section name="Layout:normal">
<entry name="odim" value="498,394" />
<entry name="r" value="1." />
<entry name="rect" value="0,0,240,340" />
</section>
</section>
7) The code in the curly brackets is the guid.
8) Delete studio.xnf and repeat from 2) for other components.
9) rename the file back to studio.xnf that you renamed in 1)
Here are some guids that i have found using this method:
Colour controls: guid:{163FF355-9B87-49DE-BD72-EF5EA0C57FDD}
Skin Switcher: guid:{0000000A-0078-001E-2878-8C82786EBEC8}
Configurification: guid:{ED3CD0D9-5FE5-4C34-AFE9-52E714D4FAA4}
Shoutcast server list: guid:{AFF7172F-4E42-4A38-9106-86B610B482EF}
Database Explorer: guid:{DED19CA5-0AA6-48AE-8045-9F4975E51253}
Using system.getTimeOfDay()
System.getTimeOfDay() returns an Int which is the number of milliseconds since midnight to the nearest second To find the hours, minutes and seconds from this, use something like this:
Everyone else: Please don't let this thread die! Post loads of things like these pls!code:
int time = system.gettimeofday()/1000;
int hours = time/3600;
int mins = (time/60)-(hours*60);
int secs = time - ((hours*3600)+(mins*60));
Comment