チェンジセット 1101

差分発生行の前後
無視リスト:
コミット日時:
2008/08/27 18:16:43 (5 年前)
コミッタ:
tasuku
ログメッセージ:

r52@poppop (orig r51): tasuku | 2008-04-17 16:30:32 +0900
max 500x500

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint.as

    r1100 r1101  
    2525private const ALERT_TITLE:String = 'お絵カキコ'; 
    2626private const DEBUG:Boolean = false; 
     27private const MAX_CANVAS_WIDTH:uint = 500; 
     28private const MAX_CANVAS_HEIGHT:uint = 500; 
     29private const MIN_CANVAS_WIDTH:uint = 16; 
     30private const MIN_CANVAS_HEIGHT:uint = 16; 
    2731 
    2832public function init():void {   
    29   // 通信系 
     33 
     34  if (DEBUG) { 
     35    versionLabel.text += 'debug'; 
     36  } 
     37 
    3038  this.enabled = false; 
    3139  comm = new Com(); 
     
    6169      canvasWidth = int(parameters['canvasWidth']); 
    6270      canvasHeight = int(parameters['canvasHeight']); 
    63       if (canvasWidth < 16 || canvasHeight < 16) { 
     71      if (canvasWidth < MIN_CANVAS_WIDTH || canvasHeight < MIN_CANVAS_HEIGHT) { 
    6472        Alert.show('キャンバスサイズが小さすぎます。', ALERT_TITLE); 
    6573        return; 
    6674      } 
    67       if (canvasWidth > 600 || canvasHeight > 600) { 
     75      if (canvasWidth > MAX_CANVAS_WIDTH || canvasHeight > MAX_CANVAS_HEIGHT) { 
    6876        Alert.show('キャンバスサイズが大きすぎます。', ALERT_TITLE); 
    6977        return; 
  • as3/gunyarapaint/trunk/gunyarapaint/src/gunyarapaint.mxml

    r1100 r1101  
    1010  </mx:Script> 
    1111  <mx:Canvas id="toolCanvas" x="0" y="0" width="630"> 
     12    <mx:Label id="versionLabel" x="365" y="9" text="ver.2008041701"/> 
    1213    <mx:Label x="28" y="7" text="名前"/> 
    1314    <mx:TextInput id="fromTextInput" x="55" y="3" maxChars="32" fontSize="14"/> 
     
    3435    <mx:CheckBox id="additionalSkewCheckBox" x="553" y="123" label="斜め"/> 
    3536    <mx:Button id="postOekakiButton" x="510" y="7" label="お絵カキコする!" fillAlphas="[1.0, 1.0, 1.0, 1.0]" fillColors="[#FFFFFF, #FF9999, #FFFFFF, #FFCCCC]" enabled="false"/> 
    36     <mx:Label x="396" y="9" text="ver.2008040701"/> 
    3737  </mx:Canvas> 
    3838  <mx:Canvas id="canvas" width="400" height="300" x="10" y="172"></mx:Canvas>