|
  |
ActionScripting Questions, General or clinic related-ask them here |
|
|
| BenJeremy |
Oct 15 2003, 10:37 PM
|

X-S Elysian
            
Group: Head Moderator
Posts: 9688
Joined: 19-July 02
Member No.: 1853
Xbox Version: v1.1
360 version: v1 (xenon)

|
| QUOTE (koldfuzion @ Oct 15 2003, 07:32 PM) | ok, having problems with text color.
1. can i change the text color of a variable in a msgbox without using coordinate?
2. im a dumbass..can you provide an example..i cant get it to do it. | Sorry, messageboxes only suport a single standard color.
I wanted to do something more complex, but it's just not easy to do.
|
|
|
|
| |
| BenJeremy |
Oct 15 2003, 11:53 PM
|

X-S Elysian
            
Group: Head Moderator
Posts: 9688
Joined: 19-July 02
Member No.: 1853
Xbox Version: v1.1
360 version: v1 (xenon)

|
| QUOTE (koldfuzion @ Oct 15 2003, 08:43 PM) | ok no problem. I'm still a dumbass.
got the ip portion of th new user script "semi-complete" as far as the UI goes... would like others to look at it though to see if it could be done in a more efficient way
thats what i was wanting the coloring for, to simulate a "cursor" so ppl didnt get lost editing the IP address.
How can i do it like in the system menu? or is that possible from actionscript? | I was thinking of just throwing up four boxes, with each part of the number... Left/Right to change boxes (focus indicated by box drawn behind it, larger, different colors) and up/down to change each section's number.
You could also set the color of the "focused" box's text, too...
As for menus, since I'm not changing the system font, you should be able to set up standard positioning to simulate menu action, as well...
|
|
|
|
| |
| BenJeremy |
Oct 16 2003, 12:08 AM
|

X-S Elysian
            
Group: Head Moderator
Posts: 9688
Joined: 19-July 02
Member No.: 1853
Xbox Version: v1.1
360 version: v1 (xenon)

|
| QUOTE (koldfuzion @ Oct 15 2003, 09:00 PM) | maybe once we put the actual "text" in for what the IP setting box will say..
we could just use a transparent box with a border outline over top the ip to show the cursor? or will the box appear behing the messagebox? hrmm.. maybe the messageboxs need to be semi-transparent to facilitate this. | Drawing is done in the order you specify... just like skin layouts. You could use a transparent color (color parms now accept 0xFFFFFFFF notation, as well as named colors).
:::phew::: just switched machines here in my lair. The new box, a 2.6Ghz 800mhz FSB P4, is beefier than the old box, but I had installed new VS.NET and the latest XDK - and MXM was hosing badly. So I spent the evening here unhosing the code due to a bizarre difference in the STL libraries of VS.NET 2003 and the old VS.NET (for some reason, the NEWER implementation REMOVED functionality from the standard string classes)
|
|
|
|
| |
| koldfuzion |
Oct 16 2003, 12:23 AM
|

X-S Freak
    
Group: Members
Posts: 1480
Joined: 8-January 03
Member No.: 17355

|
| QUOTE | Drawing is done in the order you specify... just like skin layouts. You could use a transparent color (color parms now accept 0xFFFFFFFF notation, as well as named colors).
|
yea i read that in the txt file.. after doing skins i should have known better than to ask.
| QUOTE | | the NEWER implementation REMOVED functionality from the standard string classes |
how bad will that affect mxm?
|
|
|
|
| |
| BenJeremy |
Oct 16 2003, 01:05 AM
|

X-S Elysian
            
Group: Head Moderator
Posts: 9688
Joined: 19-July 02
Member No.: 1853
Xbox Version: v1.1
360 version: v1 (xenon)

|
| QUOTE (koldfuzion @ Oct 15 2003, 09:23 PM) | | QUOTE | Drawing is done in the order you specify... just like skin layouts. You could use a transparent color (color parms now accept 0xFFFFFFFF notation, as well as named colors).
|
yea i read that in the txt file.. after doing skins i should have known better than to ask.
| QUOTE | | the NEWER implementation REMOVED functionality from the standard string classes |
how bad will that affect mxm? | Well, it shouldn't affect it, but it entailed me changing a bunch of "shortcut" code that used notation like:
sReturn = _T(".") + sReturn;
Which would tack the period on to the beginning of whatever sReturn was (these are text strings) - but the latest STL implementations from M$ seem to have removed the magic function that allowed me to add two strings together like that. Now I have to use:
sReturn.Format( _T(".%s"), sReturn.c_str() );
Which does the same thing.... oddly, though:
sReturn = sReturn + _T(".") ;
CAN be turned into:
sReturn += _T(".");
which is even more of a "shortcut" - yet it works. Actually, in retrospect, it might be that the implementation for the above shortcut worked before, but not now, perhaps due to some subtle change in the way the compiler is generating the appropriate C++ function calls (those lines are translated into some basic function calls)
At any rate, I'm adding a timer "special" - expect another update in an hour or so.
|
|
|
|
| |
|
  |
|