Changeset 1511

Show
Ignore:
Timestamp:
02/03/2012 10:59:13 AM (3 months ago)
Author:
dave
Message:

changes from first focus test

Location:
scenarios/GerminationX/fungi/src/fungi
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • scenarios/GerminationX/fungi/src/fungi/Critters.hx

    r1434 r1511  
    167167                    if (plant!=null) 
    168168                    { 
    169                         if (Rnd.RndInt()%10==7) 
     169                        if (Rnd.RndInt()%30==7) 
    170170                        { 
    171171                            // advertising 
  • scenarios/GerminationX/fungi/src/fungi/GUI.hx

    r1434 r1511  
    242242        if (d.length>0 && !MessagesEq(TopItem,d[0])) 
    243243        { 
    244             TopItem=d[0];  
     244/*            TopItem=d[0];  
    245245            if (TopItem.type=="spirit") 
    246246            { 
    247247                w.AddSpiritMsg(TopItem,StrMkr.MsgToString(TopItem)); 
    248248            } 
    249  
     249*/ 
    250250            Clear(w); 
    251251             
  • scenarios/GerminationX/fungi/src/fungi/Spirit.hx

    r1435 r1511  
    4242    var HighestScore:Float; 
    4343    var MessageTime:Float; 
     44    var LastMsgTxt:String; 
    4445 
    4546    function ToCol(r:Int,g:Int,b:Int) 
     
    6162        HighestScore=0; 
    6263        MessageTime=-1; 
     64        LastMsgTxt=""; 
    6365         
    6466        Message = new Frame("",0,0,64*2,64); 
     
    150152        Message.G=Col.y; 
    151153        Message.B=Col.z; 
    152         MessageTime=Date.now().getSeconds()+10; 
     154        MessageTime=Date.now().getSeconds()+30; 
    153155    } 
    154156 
     
    242244 
    243245        if (!Debug.IsHidden()) UpdateDebug(e); 
     246         
     247        var msg=Reflect.field(e,"last-message"); 
     248        if (msg.code!=null) 
     249        { 
     250            var txt = world.GameGUI.StrMkr.MsgToString(msg); 
     251            if (txt!=LastMsgTxt) 
     252            { 
     253                AddMsg(msg,txt); 
     254                LastMsgTxt=txt; 
     255            } 
     256        } 
    244257    } 
    245258