[Top Page][All Pages][Recent Changes]

Edit History:Diff

Changes of カレントポジションの設定方法変更機能付きpos between 2015/09/09 09:31:22 JST and 2015/09/09 09:35:35 JST

  • + added lines
  • - deleted lines

Return to the edit history

  カレントポジションの設定方法変更機能付きpos
  {{{
  #module
  #define PS_CENTER 0 ;中央
  #define PS_DEFAULT 1;通常と同じ
  #define PS_ABSOLUTE 2;(0,画面yサイズ÷2)
  #define PS_GRAPH 3;左下が原点
  
- #deffunc cxpos int type,int r,int sita
-   x=r*cos(sita):y=-1*r*sin()
-   if(type=0):pos (ginfo(12)/2)+x,(ginfo(13)/2)-y
-   if(type=1):pos x,y
-   if(type=2):pos x,(ginfo(13)/2)-y
-   if(type=3):pos x,ginfo(13)-y
-   pos x,y
+ #deffunc xpos int type,int x,int y
+   if(type=0):pos (ginfo(12)/2)+x,(ginfo(13)/2)-y:return
+   if(type=1):pos x,y:return
+   if(type=2):pos x,(ginfo(13)/2)-y:return
+   if(type=3):pos x,ginfo(13)-y:return
+   pos x,y:return
    return
  #global
  }}}