EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   UI User Discussion (https://www.eq2interface.com/forums/forumdisplay.php?f=26)
-   -   show own createt window but iz dosnt work :( (https://www.eq2interface.com/forums/showthread.php?t=14430)

oOTopsyOo 07-23-2010 03:37 AM

show own createt window but iz dosnt work :(
 
Code:

<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="1,1" Name="Testwindow" PackLocation="left,top" ScrollExtent="155,300" Size="155,300" UserMovable="true">
    <ImageStyle Name="bkgr">
        <ImageFrame Name="bkgr" Source="/images/fetish_background.dds" SourceRect="0,0,512,512" />
    </ImageStyle>
    <Image Name="bkgr" ScrollExtent="155,300" Size="155,300" Style="/bkgr" />

    <Page AbsorbsInput="false" Name="WindowFrame" PackSize="absolute,absolute" ScrollExtent="155,300" Size="155,300" Visible="false">
        <Page AbsorbsInput="false" BackgroundOpacity="1.000" Name="Frame" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.frame.rect" ScrollExtent="155,300" Size="155,300" />
        <Page AbsorbsInput="false" BackgroundOpacity="1.000" Name="Bkg" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.bkg.rect" ScrollExtent="155,300" Size="155,300" />
    </Page>
</Page>

adding the line <include>_testwindow.xml</include> in the eq2ui.custom.xml

build a macro with /show_window Custom.testwindow

but nothing happens. grrrrrrr i like to eat my keyboard xD whats wrong about my code ??

like to open a window with backround an frame *hmpf

This one:
Code:

<?xml version="1.0" encoding="utf-8"?>
<Page eq2usescomwndcontrols="true" Location="1,1" MaximumSize="200,40" MinimumSize="200,40" Name="Haste" PackLocation="left,top" ScrollExtent="200,40" Size="200,40" UserMovable="true">
    <Text AbsorbsInput="false" Font="/TextStyles.Normal.NormalStyle" Location="9,10" Margin="0,0,5,0" Name="HasteLabel" ScrollExtent="52,19" Size="52,19" TextAlignment="Right" TextColor="#C7CFC7">Haste:</Text>
    <Text DynamicData="/GameData.Stats.Haste" Font="/TextStyles.Normal.NormalStyle" Location="60,10" Name="HasteValue" ScrollExtent="50,19" Size="50,19">500.0</Text>
    <Page Name="WindowFrame" PackSize="absolute,absolute" ScrollExtent="200,40" Size="200,40" Visible="false">
        <Page AbsorbsInput="false" Name="Frame" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.frame.rect" ScrollExtent="200,40" Size="200,40" />
        <Page AbsorbsInput="false" Name="Bkg" PackLocation="left,top" PackSize="absolute,absolute" RStyleDefault="/WindowElements.DesktopWindowFrame.data.bkg.rect" ScrollExtent="200,40" Size="200,40" />
    </Page>
</Page>

works great ... shows my actually Haste:89


thx for helping

EQAditu 07-23-2010 08:42 AM

*shrug*

Your include line has no file extension. I want to assume your custom XML file has an .xml extension.

Your /show_window command does not capitalize the window name correctly, thus parts of it will break.

oOTopsyOo 07-23-2010 09:46 AM

Quote:

Originally Posted by EQAditu (Post 91646)
*shrug*

Your include line has no file extension. I want to assume your custom XML file has an .xml extension.

Your /show_window command does not capitalize the window name correctly, thus parts of it will break.


ups sry forget to write .xml ..

the file extension is ok the 2. code works fine with /show_window Custom.Hate but the first on doe nothing.. in uibuilder i have the window with the backround from fetish, but on testserver i'll see nothing if i press the macro..

like to have an window with backround and borders, that can bee change in windowsettings ingame.. don't know what the mistake is in my code

Drumstix42 07-23-2010 04:36 PM

I didn't look long, but if in your XML file it's: Name="Testwindow"

Then I believe caps matter:
/show_window Custom.Testwindow

oOTopsyOo 07-28-2010 05:27 AM

hmm well ok found my mistake, ty for help


All times are GMT -5. The time now is 08:25 PM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI