首页 > REDM设计器教程 > REDM设计器教程9-复制,粘贴控件
2016十月24

REDM设计器教程9-复制,粘贴控件

[隐藏]

在前面的教程中,我们使用多图拼接的方式生成了png:close皮肤,并给button加上了皮肤属性

生成资源MyRes+本节mini图片资源下载—>

MyRes.zip

mini.zip

    

考虑到预览时拖动不了,所以我们先给gif控件加个拖动属性(bdrag)

12.gif

   

1.复制,粘贴控件

考虑到部分控件的属性相同,一个个重新建立较为麻烦,所以增加此便捷功能

在Mov模式下不可使用,前两层没有复制菜单,原因:不能把主窗口拷贝了

这里我们来利用复制个最小化button吧,注意:先解锁!!!!!

13.gif

复制状态的XML节点,会把name,id,pos三项属性忽略掉,pos统一使用x,y,@size,@size这种格式

我们在这里把mini按钮的坐标设置为(-60,0,@30,@27),类似于close按钮,

接着,我们增加一个mini按钮的皮肤png:mini,并设置它

14.gif

–>

1.增加png:mini图片,类似于png:close

2.增加mini标识的皮肤,类似于close标识的皮肤,使用三态图

3.把新复制的这个按钮的skin改成png:mini

   

   

2.设置名字,id

名字,id均用于标识控件(二者用一个就好了),需要注意的是,设计器并未判断名字的唯一性

这里我们设置close按扭的名字为closebtn,mini按钮的名字为minibtn

15.gif

   

   

    下一节教程:REDM基础教程5-使用DM库、DM库入口

  

   

文章作者:hgy413
本文地址:http://hgy413.com/3581.html
版权所有 © 转载时必须以链接形式注明作者和原始出处!

17 Responses to “REDM设计器教程9-复制,粘贴控件”

  1. #1 minecraft 回复 | 引用 Post:2018-10-06 18:13

    I’m excited to uncover this page. I want to to thank
    you for your time for this wonderful read!! I definitely really
    liked every part of it and i also have you book marked to see new information in your website.

  2. #2 minecraft 回复 | 引用 Post:2018-10-07 18:28

    An intriguing discussion is worth comment. I think that you need to
    publish more about this topic, it might not be a taboo subject but generally people don’t discuss these issues.
    To the next! Cheers!!

  3. Thank you for the auspicious writeup. It in fact was a amusement account it.
    Look advanced to far added agreeable from you!
    By the way, how can we communicate?

  4. Terrific article! This is the type of information that
    are supposed to be shared around the internet.
    Disgrace on the seek engines for not positioning this post upper!

    Come on over and consult with my site . Thanks =)

  5. You really make it seem really easy along with your presentation however I find this matter
    to be really one thing which I believe I would never understand.
    It sort of feels too complex and extremely wide for
    me. I’m having a look forward for your next post, I will attempt to get the grasp of it!

  6. Hi! Quick question that’s totally off topic. Do you know how to make
    your site mobile friendly? My site looks weird
    when browsing from my apple iphone. I’m trying to find a template or plugin that might be able to fix this problem.
    If you have any suggestions, please share. With thanks!

  7. #7 Coconut Oil Benefits 回复 | 引用 Post:2018-10-21 08:45

    WOW just what I was searching for. Came here by searching for Health Benefits of Coconut Oil

  8. #8 Coconut Oil Benefits 回复 | 引用 Post:2018-10-25 09:09

    Wonderful blog! I found it while searching on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Appreciate it

  9. #9 Coconut Oil 回复 | 引用 Post:2018-10-29 04:32

    Good day! This is kind of off topic but I need some advice from an established blog.
    Is it difficult to set up your own blog? I’m not very techincal but I
    can figure things out pretty fast. I’m thinking about setting up my own but I’m not sure where to begin.
    Do you have any ideas or suggestions? With thanks

  10. Descargar facebook
    I always used to read post in news papers but now as I am a user of internet thus from now I am using net for content, thanks
    to web. Descargar facebook

  11. #11 descargar facebook 回复 | 引用 Post:2018-11-02 05:17

    fantastic points altogether, you simply won a new reader. What
    might you suggest about your publish that you simply made some days
    ago? Any certain?

  12. #12 descargar facebook 回复 | 引用 Post:2018-11-02 08:15

    I am extremely impressed with your writing skills and also with the
    layout on your weblog. Is this a paid theme or did you modify it yourself?

    Anyway keep up the nice quality writing, it is rare to see
    a great blog like this one nowadays.

  13. #13 quest bars 回复 | 引用 Post:2018-11-06 04:51

    Thank you for the good writeup. It in fact was a amusement account
    it. Look advanced to more added agreeable from you! By the way, how can we communicate?

  14. #14 Sling TV 回复 | 引用 Post:2018-11-10 23:37

    Great beat ! I would like to apprentice even as you amend your website,
    how can i subscribe for a weblog website? The account helped me a acceptable deal.
    I were a little bit acquainted of this your broadcast provided brilliant clear idea

  15. #15 Sling TV 回复 | 引用 Post:2018-11-15 03:24

    This post is worth everyone’s attention. Where can I find out more?

  16. #16 Sling TV 回复 | 引用 Post:2018-11-15 05:16

    Hey! I know this is kind of off-topic however I needed to ask.

    Does building a well-established website like yours
    take a lot of work? I am completely new to writing
    a blog however I do write in my diary daily. I’d like to start a blog so I can easily share my experience and views online.
    Please let me know if you have any recommendations or tips for new aspiring blog owners.
    Thankyou!

  17. sling tv coupons and promo codes for november 2018

    Hello! I’ve been reading your web site for a while now and finally got the bravery to
    go ahead and give you a shout out from Austin Texas! Just wanted to say keep up the good work!

    Sling tv coupons and promo codes for november 2018

发表评论