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

Edit History:View

Content of カレントポジションの設定方法変更機能付きpos at 2015/09/09 10:04:33 JST

View diff from current version

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 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
  }}}