Fulqrum Publishing Home   |   Register   |   Today Posts   |   Members   |   UserCP   |   Calendar   |   Search   |   FAQ

Go Back   Official Fulqrum Publishing forum > Fulqrum Publishing > IL-2 Sturmovik: Cliffs of Dover > FMB, Mission & Campaign builder Discussions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-30-2012, 08:39 PM
theOden theOden is offline
Approved Member
 
Join Date: May 2011
Location: Sweden
Posts: 221
Default

Regarding labels I've tried:

Code:
    public override void OnUserCreateUserLabel(GPUserLabel ul)
    {
        //Player ulPlayer = ul.Player;
        GamePlay.gpLogServer(null, "Marker: {0}", new object[] { ul.Text });
        GamePlay.gpDrawUserLabel(ul);
    }

    public override void OnPlaceEnter(Player player, AiActor actor, int placeIndex)
    {
		base.OnPlaceEnter(player, actor, placeIndex);
		
        //Point2d startPoint2d = new Point2d(actor.Pos().x, actor.Pos().y);
        //GPUserLabel userLabel = GamePlay.gpMakeUserLabel(startPoint2d, player, player.Name(), GamePlay.gpTimeofDay(), 0);
        //GamePlay.gpDrawUserLabel(player.Army(), userLabel);
        //GamePlay.gpLogServer(new Player[] { player }, " Hello {0} in {1}!", new object[] { bobDesignation((actor as AiAircraft).InternalTypeName()), userLabel.Text });
        //GamePlay.gpLogServer(null, " Hello {0} in {1}!", new object[] { bobDesignation((actor as AiAircraft).InternalTypeName()), userLabel.Text });
... etc
But no joy (I can use label properties but nothing visible on map).
(Also, pressing enter creating a new label in map window fires my guns )

Hopefully someone nails the usage of the new label features.
__________________
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:05 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2007 Fulqrum Publishing. All rights reserved.