public void LoadResources(AGT_SplashDialog dialog_instance, Device device) { dialog_instance.UpdateStatusBar("Initializing Sprite Manager", 0, 3); sprites = new AGT_SpriteManager(device); dialog_instance.UpdateStatusBar("Loading Ramadi Map", 1, 3); sprites.AddResource("Ramadi", "Resources\\Map2.jpg", 0, 0, 0, false); dialog_instance.UpdateStatusBar("Loading Active Zones", 2, 3); using (Bitmap b = AGT_GDIBridge.CreateCircle(device, 200, new HatchBrush(HatchStyle.DashedDownwardDiagonal, Color.FromArgb(180, Color.Black), Color.FromArgb(180, Color.White)))) { active_zone = sprites.AddResource("ActiveZone", b, 100, 100, 0); } dialog_instance.UpdateStatusBar("Finished", 3, 3); }
public void LoadResources(AGT_SplashDialog dialog_instance, Device device) { throw new Exception("The method or operation is not implemented."); }
public void DialogInitialize(AGT_SplashDialog dialog_instance) { throw new Exception("The method or operation is not implemented."); }
public new void LoadResources(AGT_SplashDialog dialog_instance, Device device) { dialog_instance.UpdateStatusBar("Initializing Sprite Manager", 0, 3); if (_active_zone_sprites != null) { _active_zone_sprites.Dispose(); } if (_waypoint_group_sprites != null) { _waypoint_group_sprites.Dispose(); } if (_map_sprites != null) { _map_sprites.Dispose(); } if (_pawn_sprites != null) { _pawn_sprites.Dispose(); } _active_zone_sprites = new AGT_SpriteManager(device); _waypoint_group_sprites = new AGT_SpriteManager(device); _map_sprites = new AGT_SpriteManager(device); _pawn_sprites = AGT_ImageLibrary.Load(ImageLibraryPath, dialog_instance, device); dialog_instance.UpdateStatusBar("Loading " + MapFile, 2, 3); _playfield_image_id = _map_sprites.AddResource(MapFile, MapFile, 0, 0, 0, false); UTM_Mapping.ImageHeight = _map_sprites.GetTextureHeight(_playfield_image_id); UTM_Mapping.ImageWidth = _map_sprites.GetTextureWidth(_playfield_image_id); dialog_instance.UpdateStatusBar("Finished", 3, 3); }
public new void DialogInitialize(AGT_SplashDialog dialog_instance) { }
public void DialogInitialize(AGT_SplashDialog dialog_instance) { //dialog_instance.BackgroundImageLayout = ImageLayout.Stretch; //dialog_instance.BackgroundImage = new Bitmap(@"C:\Documents and Settings\ebonomolo\My Documents\My Pictures\28413-1.jpg"); }