Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jes00

Pages: 1 ... 285 286 287 288 289 [290] 291 292 293 294 295 ... 464
4336
Modification Help / Re: Color Translation
« on: May 02, 2012, 02:24:39 PM »
If it is a value between 0 and 1, multiply my 255 and round down.
Thank you this works perfectly.

If it is a hexadecimal value, then you can use my base to base converter to convert it to decimal.
You can find it Here.
It's a very compact script, and does more than just hexadecimal conversions.
So I'm to use this method to translate it from the GuiSwatchCtrl to the GuiSlider controls? If so which one do I use?

4337
Modification Help / Re: Finding supported bricks
« on: May 02, 2012, 10:36:30 AM »
so, how would i go about parenting it?
Code: [Select]
package ducks
{
    function fxDTSBrick::hasPathToGround()
    {
        if(baseplatecheckstuffhere)
            return true;
        return parent fxDTSBrick::hasPathToGround();
    }
}activatePackage(duck);
like that?
Nope, parent::hasPathToGround();

4338
Add-Ons / Re: Russian Cyrillic Mod [Россия]
« on: May 02, 2012, 09:05:57 AM »
That's the only downside :(
Russian translator :D

4339
General Discussion / Re: Glass' Trench Wars [Official Topic]
« on: May 02, 2012, 07:19:39 AM »
Danny Bot & TomTom have been De-admined.
TomTom is still on the list of the original post.

4340
Modification Help / Re: Script Error
« on: May 02, 2012, 06:52:09 AM »
What? Throwmod is a failed add-on. I'm trying to keep him from betting banned.
This dude and Munk gave out the Throwmod without getting banned (though Munk's is slightly edited).

4341
Also, I think it's not a very smart idea to assign any new functions to space button. Some people actually want to use the handbrake.
Very true, I suggest using the light key.

4342
Add-Ons / Re: BlockOS 6.1 - Important Update - requires re-download
« on: April 30, 2012, 01:19:30 PM »
Have you tried downloading an app and looking at it?

Just a word of warning, I think Brian and Greek2me are working on a new app API for BOS7 - things will be much more simpler.
Thanks. Is there a way to implament an application for Block OS in an add on?

4343
Add-Ons / Re: BlockOS 6.1 - Important Update - requires re-download
« on: April 30, 2012, 12:11:41 PM »
What don't you understand?
Is it a separate add on? Does it need to be packaged differently? Does it need to be posted on a website or something?

4345
Add-Ons / Re: BlockOS 6.1 - Important Update - requires re-download
« on: April 30, 2012, 11:56:25 AM »
Err mind being a little less vague on how to make apps?

4346
Modification Help / Re: Color Translation
« on: April 30, 2012, 07:49:36 AM »
your problem
Oops, I mean't range = "0.000000 255.000000"

I keep typing in the wrong things today : /

EDIT: I tried translating the colors from a color set to GuiSwatchCtrl but but multiplying them by 255 but it didn't work.

4347
Modification Help / Re: Color Translation
« on: April 30, 2012, 07:26:56 AM »
Yes.

range = 0 255

It doesn't matter whether the engine adds stuff like .000000 to the values.
range = "0.200000 1.000000"
ticks = "0";
value = "0";
snap = "0";

Sometimes it skips a number or two : /

4348
Modification Help / Re: Color Translation
« on: April 30, 2012, 06:41:37 AM »
guiSwatchCtrl uses RGBA colors (red green blue alpha) in range 0 to 255. I've seen some colorsets that use that same range, however most (including default) seem to use range 0 to 1 (floating point). The conversion method is value / 255.
Thanks Port, so I just need to do %colorR = getWord(BlahBlah.color, 0) / 255; and so forth?
guiSliderCtrl is not specifically for colors, you can use it for any type of value. In any case, it's as simple as setting the 'range' member field to '0 255' if you want it to use the same format that guiSwatchCtrl uses.
I tried that but whenever I change it to 0 255 it changes it to 0.000000 255.000000.

EDIT: Should I just change the snap to 255 (even though it just looks like one black line after that) and ignore the numbers after the point?

4349
Modification Help / Color Translation
« on: April 30, 2012, 06:28:28 AM »
How do I translate colors from GuiSliderCtrl to GuiSwatchCtrl color and from GuiSwatchCtrl to the form that color sets use?

4350
Add-Ons / Re: Mount Item
« on: April 29, 2012, 09:13:14 PM »
Pretty nice, you might wanna mention it's admin only.

Pages: 1 ... 285 286 287 288 289 [290] 291 292 293 294 295 ... 464