mirror of
https://github.com/haven1433/HexManiacAdvance.git
synced 2026-10-02 05:06:35 -05:00
add blank template
This commit is contained in:
@@ -570,6 +570,15 @@ namespace HavenSoft.HexManiac.Core.ViewModels.Map {
|
||||
images.Add(visOption);
|
||||
}
|
||||
|
||||
// create one additional 'blank' prototype
|
||||
initialBlockmaps.Add(new int[9, 9]);
|
||||
var blank = new LayoutPrototype(primaryBlocksetAddress, secondaryBlocksetAddress, borderBlockAddress);
|
||||
orderedPrototypes.Add(blank);
|
||||
var blankRender = new CanvasPixelViewModel(9 * 16, 9 * 16) { SpriteScale = images[0].Visual.SpriteScale };
|
||||
var blankVisOption = new VisualOption { Index = orderedPrototypes.Count - 1, Option = "Blank", ShortDescription = "Use Current Blocksets", Visual = blankRender };
|
||||
warpIsBottomSquareForIndex.Add(true);
|
||||
images.Add(blankVisOption);
|
||||
|
||||
var choice = fileSystem.ShowOptions("Create New Map", "Start from which template?", null, images.ToArray());
|
||||
if (choice == -1) return null;
|
||||
var chosenPrototype = orderedPrototypes[choice];
|
||||
|
||||
Reference in New Issue
Block a user