>1.²èÁü¤òÉÁ²è¤µ¤»¤¿¤¤¤¬¡¢¤½¤Î²èÁü¤Î¥Ý¥¸¥·¥ç¥ó¤Ïɽ¼¨¤µ¤»¤ëºÂɸ¤òpos¤Ë¤ÆÄêµÁ¤µ¤»¤ë¤È¤¤¤¦Ç§¼±¤ÇÀµ¤·¤¤¤«
¤½¤ó¤Ê´¶¤¸¤Ç¤¹¡£
wparam¤«¤é¥ì¥¤¥ä¡¼¤òÀßÃÖ¤·¤¿»þ¤Î¥«¥ì¥ó¥È¥Ý¥¸¥·¥ç¥ó¤¬¼èÆÀ¤Ç¤¤ë¤Î¤Ç¡¢
¤½¤ì¤ò»²¾È¤·¤Ê¤¬¤éÉÁ²è¤ò¹Ô¤¦¤Èɽ¼¨°ÌÃÖ¤ò¸ÇÄꤹ¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
»ØÄꤷ¤¿°ÌÃ֤λØÄꤷ¤¿ÈϰϤؤÀ¤±¼«Æ°Åª¤ËÉÁ²è¤µ¤ì¤ë¡¢¤È¤¤¤¦¤â¤Î¤Ç¤Ï¤Ê¤¤¤Ç¤¹¡£
>2.Ì¿Îá¤Îp3(¥ì¥¤¥ä¡¼ID)¤È¤Ï¡¢ÉÁ²èÁ°¤Î¥ì¥¤¥ä¡¼¤«ÉÁ²è¸å¤Î¥ì¥¤¥ä¡¼¤Î¤É¤Á¤é¤Ç¤¢¤ë¤«
¤¹¤ß¤Þ¤»¤ó¤¬¡¢¼ÁÌä¤Î°ÕÌ£¤¬¤è¤¯Ê¬¤«¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£
¥ì¥¤¥ä¡¼ID¤ÏÉÁ²è½ç¤òÄê¿ô¤Ç»ØÄꤹ¤ë¤â¤Î¤À¤Èǧ¼±¤·¤Æ¤¤¤Þ¤¹¡£
objlayer_min,bg,normal,posteff,max¤Î5¤Ä¤Ç¤¹¤Í¡£
Î㤨¤Ðredraw 0¤Î¥¿¥¤¥ß¥ó¥°¤Ç¤Ïmin¤«¤é½ç¤Ë¸Æ¤Ó½Ð¤µ¤ì¤Þ¤¹¡£
>3.Î㤨¤Ð¥Ü¥¿¥ó¤ò²¡¤·¤¿½Ö´Ö¤Ë²èÁü¤òɽ¼¨¤µ¤»¤ë¥¹¥¯¥ê¥×¥È¤òºî¤ëºÝ¤Ï¤É¤Î¤è¤¦¤Ê¥³¡¼¥É¤¬Å¬¤·¤Æ¤¤¤ë¤«(¶ñÂÎŪ¤ËÄ󼨤·¤Æ¤¯¤À¤µ¤ë¤È´ò¤·¤¤¤Ç¤¹)
Ŭ¤·¤Æ¤¤¤ë¤«¤Ïʬ¤«¤ê¤Þ¤»¤ó¤¬½ñ¤¤¤Æ¤ß¤Þ¤·¤¿¡£
#enum OBJID_BUTTON=0
#enum OBJID_LAYER
*main
//¥Ü¥¿¥ó¤òÀßÃÖ¤¹¤ë
button gosub "²èÁüɽ¼¨",*btn
//¥ì¥¤¥ä¡¼¤òÀßÃÖ¤¹¤ë
layerobj 640,200,objlayer_normal,*layer;²èÁü¤Ï¤³¤Î¥µ¥¤¥º¤Çʬ³ä¤µ¤ì¤ë
//ɽ¼¨¤·¤¿¤¤²èÁü¤ò»ØÄꤹ¤ë
picturePath=dir_tv+"hsp3dish.png"
exist picturePath
if (strsize==-1) {
dialog "¥Õ¥¡¥¤¥ë¤¬¸«¤Ä¤«¤ê¤Þ¤»¤ó¡£",1,"¥¨¥é¡¼"
end
} else {
objprm OBJID_LAYER,picturePath
}
stop
*btn
//¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤¿¤é²èÁü¤òɽ¼¨¤¹¤ë
objprm OBJID_LAYER,0;ɽ¼¨¤·¤¿¤¤Ê¬³äâ¤ò»ØÄꤹ¤ë
return
#define ctype getPosition(%1) objinfo(%1,objlayer_info_axis)
#define ctype getSize(%1) objinfo(%1,objlayer_info_size)
#define ctype getX(%1) (%1&$ffff)
#define ctype getY(%1) (%1>>16&$ffff)
*layer
switch lparam
case objlayer_cmdinit
//ÀßÃÖ¤µ¤ì¤¿»þ¤Ë¥ì¥¤¥ä¡¼¤Î°ÌÃ֤ȥµ¥¤¥º¤ò¼èÆÀ¤¹¤ë
position=getPosition(wparam)
size=getSize(wparam)
return
case objlayer_cmdprms
//ʸ»úÎó¤òÅϤµ¤ì¤¿»þ¤Ï²èÁü¤Î¥Õ¥¡¥¤¥ë¥Ñ¥¹¤È¤·¤Æ°·¤¦
loadPicture getX(size),getY(size),refstr
return
case objlayer_cmdprmi
//intÃͤòÅϤµ¤ì¤¿»þ¤Ïʬ³ä²èÁüâ¤È¤·¤Æ°·¤¦
drawPicture getX(position),getY(position),iparam
return
default
//¤½¤ì°Ê³°¤Ï²¿¤â¤·¤Ê¤¤
return
swend
#enum WNDID_MAIN=0
#enum WNDID_BUFFER
//²èÁü¥Õ¥¡¥¤¥ë¤ò¥Ð¥Ã¥Õ¥¡¤ËÆɤ߹þ¤ó¤Çʬ³ä¤¹¤ë
#deffunc loadPicture int xSize,int ySize,str picPath
celload picPath,WNDID_BUFFER
celdiv WNDID_BUFFER,xSize,ySize
return
//Æɤ߹þ¤ó¤À²èÁü¤ò¥ì¥¤¥ä¡¼Æâ¤ËÉÁ²è¤¹¤ë
#deffunc drawPicture int xPos,int yPos,int picNum
pos xPos,yPos
celput WNDID_BUFFER,picNum
return