游戏开发论坛

 找回密码
 立即注册
搜索
查看: 1509|回复: 0

CEGUI中控件边框的问题。希望路过指点下。。先在线谢谢了

[复制链接]

4

主题

5

帖子

9

积分

新手上路

Rank: 1

积分
9
发表于 2009-9-25 12:01:00 | 显示全部楼层 |阅读模式
在CEGUI中 Looknfeel文件中,我加人一个边框控件,我想让边框的图片可以在Layout文件里更改。
我现在的问题是,在<FrameComponent></FrameComponent>里。
<FrameComponent>
        <Area>
          <Dim type="LeftEdge">
            <AbsoluteDim value="0" />
          </Dim>
          <Dim type="TopEdge">
            <AbsoluteDim value="0" />
          </Dim>
          <Dim type="RightEdge">
            <UnifiedDim scale="1" type="RightEdge" />
          </Dim>
          <Dim type="BottomEdge">
            <UnifiedDim scale="1" type="BottomEdge" />
          </Dim>
        </Area>
        <Image type="TopLeftCorner" imageset="WindowsLook" image="StaticFrameTopLeft" />
        <Image type="TopRightCorner" imageset="WindowsLook" image="StaticFrameTopRight" />
        <Image type="BottomLeftCorner" imageset="WindowsLook" image="StaticFrameBottomLeft" />
        <Image type="BottomRightCorner" imageset="WindowsLook" image="StaticFrameBottomRight" />
        <Image type="LeftEdge" imageset="WindowsLook" image="StaticFrameLeft" />
        <Image type="TopEdge" imageset="WindowsLook" image="StaticFrameTop" />
        <Image type="RightEdge" imageset="WindowsLook" image="StaticFrameRight" />
        <Image type="BottomEdge" imageset="WindowsLook" image="StaticFrameBottom" />
        <ColourRectProperty name="FrameColours" />
</FrameComponent>

这里<Image type="TopLeftCorner" imageset="WindowsLook" image="StaticFrameTopLeft" />
怎么才能用上我前面的:
&ltropertyDefinition name="MyStaticFrameTopLeft" initialValue="set:AA image:bb"redrawOnWrite="true" />

希望指点下。。。在线谢谢。。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-20 12:13

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表