[?] Interface Windows - Custom Look |
Author: |
Message: |
matty
Scripting Guru
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
Posts: 8328 Reputation: 109
39 / / ![Canada Flag](images/flags/ca.png)
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 |
|
![](images/pixel.gif) |
roflmao456
Skinning Contest Winner
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://www.yetanothersig.com/image/4-5.png)
Posts: 955 Reputation: 24
30 / / ![Canada Flag](images/flags/ca.png)
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 |
|
![](images/pixel.gif) |
mynetx
Skinning Contest Winner
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](avatar.php?uid=68401-11958)
Microsoft insider
Posts: 1175 Reputation: 33
37 / / ![Germany Flag](images/flags/de.png)
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 |
|
![](images/pixel.gif) |
roflmao456
Skinning Contest Winner
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://www.yetanothersig.com/image/4-5.png)
Posts: 955 Reputation: 24
30 / / ![Canada Flag](images/flags/ca.png)
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 |
|
![](images/pixel.gif) |
mynetx
Skinning Contest Winner
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](avatar.php?uid=68401-11958)
Microsoft insider
Posts: 1175 Reputation: 33
37 / / ![Germany Flag](images/flags/de.png)
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?! ![:P](images/smilies/msn_tongue.gif)
|
|
08-21-2007 09:40 AM |
|
![](images/pixel.gif) |
Spunky
Former Super Mod
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://i39.tinypic.com/345jujo.png)
Posts: 3656 Reputation: 61
36 / / ![United Kingdom Flag](images/flags/gb.png)
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" ![:zippy:](images/smilies/zippy.gif)
|
|
08-21-2007 01:58 PM |
|
![](images/pixel.gif) |
roflmao456
Skinning Contest Winner
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://www.yetanothersig.com/image/4-5.png)
Posts: 955 Reputation: 24
30 / / ![Canada Flag](images/flags/ca.png)
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 "" ![:P](images/smilies/msn_tongue.gif)
oops didn't read post correctly
yep.
quote: Originally posted by SpunkyLoveMuff
Or do you mean defined in the XML?
yeah ![:)](images/smilies/msn_happy.gif)
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 |
|
![](images/pixel.gif) |
Matti
Elite Member
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://www.gravatar.com/avatar/50cd7dac807a483ca5c470b8c8e0b2e6?s=96)
Script Developer and Helper
Posts: 1646 Reputation: 39
32 / / ![Belgium Flag](images/flags/be.png)
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 |
|
![](images/pixel.gif) |
roflmao456
Skinning Contest Winner
![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif) ![*](images/star.gif)
![Avatar](http://www.yetanothersig.com/image/4-5.png)
Posts: 955 Reputation: 24
30 / / ![Canada Flag](images/flags/ca.png)
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 ![:P](images/smilies/msn_tongue.gif)
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 |
|
![](images/pixel.gif) |
Pages: (2):
« First
«
1
[ 2 ]
Last »
|
|