|  [?] Interface Windows - Custom Look | 
| Author: | 
Message: | 
matty 
Scripting Guru 
     
  
 
Posts: 8327 Reputation: 109 
40 /   /   
Joined: Dec 2002
 
Status: Away
 
 | 
| 
 RE: [?] Interface Windows - Custom Look
 Post the entire function where you are creating the window and trying to change the element. 
 |   
 | 
| 08-20-2007 02:47 PM | 
 | 
  | 
roflmao456 
Skinning Contest Winner 
    
  
  
 
Posts: 955 Reputation: 24 
31 /   /   
Joined: Nov 2006
 
Status: Away
 
 | 
O.P.  RE: [?] Interface Windows - Custom Look
quote: Originally posted by matty 
Post the entire function where you are creating the window and trying to change the element.
  code: function set(){ 
var Wnd = MsgPlus.CreateWnd("windows.xml","test"); 
Wnd.ImageElmt_SetImageFile("testImg","crazyman"); 
}
  
testImg is defined  
[quote]  
Ultimatess6: What a noob mod  
 |   
 | 
| 08-20-2007 02:49 PM | 
 | 
  | 
mynetx 
Skinning Contest Winner 
     
  
  
Microsoft insider
  
Posts: 1175 Reputation: 33 
38 /   /   
Joined: Jul 2007 
 | 
| 
 RE: [?] Interface Windows - Custom Look
 then there is no XML Image Element using the ID "BtnImg1". Pay attention as XML is case-sensitive. 
 |   
 | 
| 08-20-2007 02:55 PM | 
 | 
  | 
roflmao456 
Skinning Contest Winner 
    
  
  
 
Posts: 955 Reputation: 24 
31 /   /   
Joined: Nov 2006
 
Status: Away
 
 | 
O.P.  RE: [?] Interface Windows - Custom Look
quote: Originally posted by mynetx 
Pay attention as XML is case-sensitive.
  * roflmao456 knows that.
do i have to instead put the button's ID instead of the image element id?
 
damn i spilled brisk on my keyboard  
 This post was edited on 08-20-2007 at 05:19 PM by roflmao456.
[quote]  
Ultimatess6: What a noob mod  
 |   
 | 
| 08-20-2007 05:18 PM | 
 | 
  | 
mynetx 
Skinning Contest Winner 
     
  
  
Microsoft insider
  
Posts: 1175 Reputation: 33 
38 /   /   
Joined: Jul 2007 
 | 
 RE: [?] Interface Windows - Custom Look
Syntax
ImageElmt_SetImageFile( 
    [string] ElementId, 
    [string] File 
);
 Parameters
ElementId 
[string] Unique identifier of the element. 
 File 
[string] Path to the image's file to use. It can be a PNG, a JPG, a GIF or a BMP file. The path is relative to the script's "Images" sub-directory by default, to override this behavior, prefix the path with "\". Example: "\C:\directory\picture.png". 
 
IMHO, strings must always be noted within " "  or ' '. Or am I wrong?!    
 |   
 | 
| 08-21-2007 09:40 AM | 
 | 
  | 
Spunky 
Former Super Mod 
     
  
  
 
Posts: 3656 Reputation: 61 
37 /   /   
Joined: Aug 2006 
 | 
 RE: [?] Interface Windows - Custom Look
quote: Originally posted by roflmao456 
code:
  
function set(){ 
var Wnd = MsgPlus.CreateWnd("windows.xml","test"); 
Wnd.ImageElmt_SetImageFile("testImg","crazyman"); 
}
   
testImg is defined 
  
testImg is defined as a variable? If thats what you mean, why are you using quotes? Or do you mean defined in the XML?
 
I think I actually tried to do what your doing with part of the interface for the tic-tac-toe script we made, but I don't think it was possible to change it via code  
<Eljay> "Problems encountered: shit blew up"    
 |   
 | 
| 08-21-2007 01:58 PM | 
 | 
  | 
roflmao456 
Skinning Contest Winner 
    
  
  
 
Posts: 955 Reputation: 24 
31 /   /   
Joined: Nov 2006
 
Status: Away
 
 | 
O.P.  RE: [?] Interface Windows - Custom Look
quote: Originally posted by mynetx 
IMHO, strings must always be noted within " "  or ' '. Or am I wrong?!
  
both. but they could contain each other =\ 
 
"lool 'this is in single quote'" 
'lool "this is in double quote"' 
 
but i prefer ""  
oops didn't read post correctly   
yep.
 quote: Originally posted by SpunkyLoveMuff 
Or do you mean defined in the XML?
  yeah    
 This post was edited on 08-21-2007 at 02:05 PM by roflmao456.
[quote]  
Ultimatess6: What a noob mod  
 |   
 | 
| 08-21-2007 02:04 PM | 
 | 
  | 
Matti 
Elite Member 
     
  
  
Script Developer and Helper
  
Posts: 1646 Reputation: 39 
33 /   /   
Joined: Apr 2004 
 | 
 RE: [?] Interface Windows - Custom Look
code: Wnd.ImageElmt_SetImageFile("testImg","crazyman");
  Shouldn't it be something like:
 code: Wnd.ImageElmt_SetImageFile("testImg","crazyman.png");
  However I doubt this whole thing can work, since I don't know if you can set an ImageElement which is part of a CustomLook structure... :-\  
 |   
 | 
| 08-21-2007 04:37 PM | 
 | 
  | 
roflmao456 
Skinning Contest Winner 
    
  
  
 
Posts: 955 Reputation: 24 
31 /   /   
Joined: Nov 2006
 
Status: Away
 
 | 
O.P.  RE: [?] Interface Windows - Custom Look
quote: Originally posted by Mattike 
code: Wnd.ImageElmt_SetImageFile("testImg","crazyman");
  Shouldn't it be something like: 
code: Wnd.ImageElmt_SetImageFile("testImg","crazyman.png");
  However I doubt this whole thing can work, since I don't know if you can set an ImageElement which is part of a CustomLook structure... :-\
  i tried that too   
doesn't work, it's ok if this imageelement thing doesn't work, i will just try something else =\  
[quote]  
Ultimatess6: What a noob mod  
 |   
 | 
| 08-21-2007 04:44 PM | 
 | 
  | 
| 
Pages: (2): 
« First
 
«
 
 1
 [ 2 ]
  
Last »
 | 
| 
 |