Dont spose you have a function call in there where I can set a unit Tint color = to A Function.
And then the function pops up the color chooser and wait for a response until user confirms color, then the function returns the selected color. wouldnt even need to save the color to a global variable like that.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
if the color chooser is opened and you call the function to get the color, you will get the current color selected in the color chooser (you dont even have to accept with OK), if you accept with OK the function returns the last chosen color,
I have a better ideau, instead of showing the color, your function will instead be applied to a dialog item/ unit/ image etc... anything that require colors.
For example i want to tint color this button, i call color chooser and pass in the dialog button, the window will pop up and when i edit RGB value, the actual button color will change in realtime. This is indead useful in UI editing
Some additional infos to the new function (colorChooserTintUnit);
I use DataTable functions in there to make this MUI, those DataTable functions get called on colorChooserTintUnit call and when the window is closed, to save units in the DataTable I'm using strings which look like this in the end: "CC_1Ghost0.01" or "CC_COLOR1Ghost0.01",
CC_/CC_COLOR are static strings which I just added for my library, so no one overwrites them
1 is the playernumber
Ghost is the unittype name
0.01 is an unique fixed number , so that every unit saved to the DataTable gets an own number!
e.g. a new Ghost is added for player1 as a 4th unit in total: "CC_1Ghost0.04", "CC_COLOR1Ghost0.04"
this method isn't that efficient, but who cares :P
You can use youtube to add text in your videos, so you don't need to type out every line in the game.
And it should not take more than 3 minutes to do so when all you do, is pick a timed area, then add the text and type it out.
Hey guys, here I wanna present a new small library I've created.
Like one can gues it features a simple color chooser, which might could be usefull to someone.
The library features some functions which can be also used in GUI.
The video quality isn't that good, sry :(
<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/MVbQWFdpxRo?fs=1&amp;hl=de_DE"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/MVbQWFdpxRo?fs=1&amp;hl=de_DE" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/GBk5KvCzadI?fs=1&amp;hl=de_DE"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/GBk5KvCzadI?fs=1&amp;hl=de_DE" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/lRYHrAlKz70?fs=1&amp;hl=de_DE"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/lRYHrAlKz70?fs=1&amp;hl=de_DE" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
Any feedback or tips are welcome. May you wanna see some other stuff and I might add it.
You can find the actual version which also includes a small testmap here:
http://www.hiveworkshop.com/forums/starcraft-ii-408/library-colorchooser-xd-schurke-180722-post1730579/#post1730579
@xDSchurke: Go
looks nice.
Does this support saving a color for each player?
@SouLCarveRR:
that is actually what it does
@xDSchurke: Go
Dont spose you have a function call in there where I can set a unit Tint color = to A Function.
And then the function pops up the color chooser and wait for a response until user confirms color, then the function returns the selected color. wouldnt even need to save the color to a global variable like that.
@SouLCarveRR:
if the color chooser is opened and you call the function to get the color, you will get the current color selected in the color chooser (you dont even have to accept with OK), if you accept with OK the function returns the last chosen color,
I have a better ideau, instead of showing the color, your function will instead be applied to a dialog item/ unit/ image etc... anything that require colors.
For example i want to tint color this button, i call color chooser and pass in the dialog button, the window will pop up and when i edit RGB value, the actual button color will change in realtime. This is indead useful in UI editing
I easily could realize this by adding additional functions for DialogItems/Units etc.
something like:
colorChooserTintDialogItem(int player,int item)
colorChooserTintUnit(int player,unit u)
Those functions would include showing the ColorChooser and linking it to the chosen unit/dialogitem
@programmer:
you ment something like this?
@xDSchurke: Go
Yes like that, more useful since you can see the unit/dialog in realtime, save up testing time.
@progammer:
ok, will work on this ;)
So I've released v0.2
v0.2
- Added new functions:
- colorChooserTintUnit(int player,unit u)
- colorChooserSetBackground(int player, string path)
<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/GBk5KvCzadI?fs=1&amp;hl=de_DE"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/GBk5KvCzadI?fs=1&amp;hl=de_DE" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
link can be found in first post
Some additional infos to the new function (colorChooserTintUnit);
I use DataTable functions in there to make this MUI, those DataTable functions get called on colorChooserTintUnit call and when the window is closed, to save units in the DataTable I'm using strings which look like this in the end: "CC_1Ghost0.01" or "CC_COLOR1Ghost0.01",
CC_/CC_COLOR are static strings which I just added for my library, so no one overwrites them
1 is the playernumber
Ghost is the unittype name
0.01 is an unique fixed number , so that every unit saved to the DataTable gets an own number!
e.g. a new Ghost is added for player1 as a 4th unit in total: "CC_1Ghost0.04", "CC_COLOR1Ghost0.04"
this method isn't that efficient, but who cares :P
This is pretty awesome. Would it be possible for us to input a value? Something like...
!color 100 100 100
And have it run the library with that color? Or if not a chat command, just some textboxes in a Dialog box in addition to those sliders?
You should add an option for changing the HDR Modifier, I've found that very useful when tinting doodads.
You can use youtube to add text in your videos, so you don't need to type out every line in the game. And it should not take more than 3 minutes to do so when all you do, is pick a timed area, then add the text and type it out.
@Sixen:
that's possible and I'm allready working on, there will be 3 commands:
!CC_rgb 255,255,255
!CC_per 100,100,100
!CC_hex FFFFFF (not casesensitiv)
also I'm adding more info displayed and finally the dialogitemtint function ;)
<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/lRYHrAlKz70?fs=1&amp;hl=de_DE"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/lRYHrAlKz70?fs=1&amp;hl=de_DE" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object>
link still can be found in the first post :)
That 4 year necro
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Bumping this thread to get rid of the deleted Spam Post from the "Trigger Libraries & Scripts" Forum-Preview