[?] Interface Windows - Custom Look |
Author: |
Message: |
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
Joined: Nov 2006
Status: Away
|
O.P. [?] Interface Windows - Custom Look
could anyone explain to me how to use custom look in interface windows?
[quote]
Ultimatess6: What a noob mod
|
|
08-10-2007 04:04 AM |
|
|
NanaFreak
Scripting Contest Winner
Posts: 1476 Reputation: 53
32 / /
Joined: Jul 2006
|
RE: [?] Interface Windows - Custom Look
code: <Control xsi:type="ButtonControl" Id="Btn">
<Position Top="5" Left="5" Width="50" Height="10"/>
<CustomLook>
<Normal>
<Element xsi:type="TextElement" Id="BtnNormText">
<Position Top="0" Left="0" Width="50" Height="10"/>
<Text>Norm</Text>
</Element>
</Normal>
<Hot>
<Element xsi:type="TextElement" Id="BtnHotText">
<Position Top="0" Left="0" Width="50" Height="10"/>
<Text>Hot</Text>
</Element>
</Hot>
<Pushed>
<Element xsi:type="TextElement" Id="BtnPushedText">
<Position Top="0" Left="0" Width="50" Height="10"/>
<Text>Pushed</Text>
</Element>
</Pushed>
</CustomLook>
</Control>
Note: this code is not tested, please say if it does not work and I will make sure it will work
This code is a button that when not hovered/pushed it will display the text "Norm" with no background. When Hovered over it will display "Hot" with no background and when pushed it will display the text "Pushed" with no background.
I hope this is what you were after...
|
|
08-10-2007 06:23 AM |
|
|
Spunky
Former Super Mod
Posts: 3658 Reputation: 61
36 / /
Joined: Aug 2006
|
RE: [?] Interface Windows - Custom Look
You could have a look at SS4 as it uses CustomLook on the side bar (which are all actually radio controls) or PSM+ which is the same code
<Eljay> "Problems encountered: shit blew up"
|
|
08-10-2007 02:21 PM |
|
|
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
Joined: Nov 2006
Status: Away
|
O.P. RE: [?] Interface Windows - Custom Look
thanks, but i wonder if there is a "<Disabled>" tag?
[quote]
Ultimatess6: What a noob mod
|
|
08-18-2007 09:17 PM |
|
|
NanaFreak
Scripting Contest Winner
Posts: 1476 Reputation: 53
32 / /
Joined: Jul 2006
|
RE: [?] Interface Windows - Custom Look
quote: Originally posted by roflmao456
thanks, but i wonder if there is a "<Disabled>" tag?
yes there is, but is it not always needed... just look up the scripting doc =\
|
|
08-19-2007 01:15 AM |
|
|
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
Joined: Nov 2006
Status: Away
|
O.P. RE: [?] Interface Windows - Custom Look
ok,
i'm trying to change the image of an ImageElement inside the Normal, Hot, and Pushed tags using the
code: Wnd.ImageElmt_SetImageFile("BtnImg1","Image2.png");
but it won't work. it will just show in the debug:
Invalid procedure [...]
This post was edited on 08-19-2007 at 07:29 PM by roflmao456.
[quote]
Ultimatess6: What a noob mod
|
|
08-19-2007 07:25 PM |
|
|
mynetx
Skinning Contest Winner
Microsoft insider
Posts: 1175 Reputation: 33
37 / /
Joined: Jul 2007
|
RE: [?] Interface Windows - Custom Look
try this one:
code: <Control xsi:type="ButtonControl" Id="btnYourButtonId">
<Position Left="123" Top="123" Width="123" Height="123" />
<Caption>Alternative Caption here</Caption>
<CustomLook>
<Normal>
<Element xsi:type="ImageElement" Id="btnYourButtonIdNormal">
<Position Top="0" Left="0" />
<Image>
<Name>without-dot-png-your-image-file-normal</Name>
</Image>
</Element>
</Normal>
<Hot>
<Element xsi:type="ImageElement" Id="btnYourButtonIdHot">
<Position Top="0" Left="0" />
<Image>
<Name>without-dot-png-your-image-file-hot</Name>
</Image>
</Element>
</Hot>
<Pushed>
<Element xsi:type="ImageElement" Id="btnYourButtonIdPushed">
<Position Top="0" Left="0" />
<Image>
<Name>without-dot-png-your-image-file-pushed</Name>
</Image>
</Element>
</Pushed>
</CustomLook>
</Control>
Regards,
mynetx
|
|
08-20-2007 11:41 AM |
|
|
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
Joined: Nov 2006
Status: Away
|
O.P. RE: [?] Interface Windows - Custom Look
quote: Originally posted by mynetx
actually the XML is working fine, it's just changing the element's images using script.
[quote]
Ultimatess6: What a noob mod
|
|
08-20-2007 02:32 PM |
|
|
mynetx
Skinning Contest Winner
Microsoft insider
Posts: 1175 Reputation: 33
37 / /
Joined: Jul 2007
|
RE: [?] Interface Windows - Custom Look
Invalid procedure seems to tell you that the method isn't valid for the given object, that is, Wnd is no correct Plus Window Object in the moment of execution.
|
|
08-20-2007 02:37 PM |
|
|
roflmao456
Skinning Contest Winner
Posts: 955 Reputation: 24
30 / /
Joined: Nov 2006
Status: Away
|
O.P. RE: [?] Interface Windows - Custom Look
quote: Originally posted by mynetx
Invalid procedure seems to tell you that the method isn't valid for the given object, that is, Wnd is no correct Plus Window Object in the moment of execution.
code: var Wnd = MsgPlus.CreateWnd("windows.xml","test");
?
[quote]
Ultimatess6: What a noob mod
|
|
08-20-2007 02:44 PM |
|
|
Pages: (2):
« First
[ 1 ]
2
»
Last »
|
|