@scm-js/plugin-api 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +13 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1538,6 +1538,13 @@ export interface Preferences {
|
|
|
1538
1538
|
*/
|
|
1539
1539
|
animateWaterSpeed: number;
|
|
1540
1540
|
animateUnitsSpeed: number;
|
|
1541
|
+
/**
|
|
1542
|
+
* Preview the `<XX>` colour codes in strings the way **1.16.1** drew them: the colour
|
|
1543
|
+
* resets at every line break. Off is Remastered's rule, which carries a colour onto the
|
|
1544
|
+
* next line — see `editor/textColors.ts`. It changes only what the editor draws, never
|
|
1545
|
+
* the map, and every preview in the chrome reads it.
|
|
1546
|
+
*/
|
|
1547
|
+
classicText: boolean;
|
|
1541
1548
|
/**
|
|
1542
1549
|
* Tools ▸ Test Map: whether to start the game after writing the map (desktop build), and
|
|
1543
1550
|
* the game folder to use when the desktop build should not search ("" = search). The
|
|
@@ -1775,6 +1782,12 @@ export interface NewDocumentOptions {
|
|
|
1775
1782
|
description?: string;
|
|
1776
1783
|
/** ISOM id of the terrain to fill with; the tileset's default ground when omitted. */
|
|
1777
1784
|
terrainId?: number;
|
|
1785
|
+
/**
|
|
1786
|
+
* Start locations to lay down for players 1..N, as `tx.placeStartLocations` would.
|
|
1787
|
+
* Part of making the map, so a fresh scenario has no history to undo them from.
|
|
1788
|
+
*/
|
|
1789
|
+
startLocations?: number;
|
|
1790
|
+
startLayout?: StartLayout;
|
|
1778
1791
|
}
|
|
1779
1792
|
export interface DocumentApi {
|
|
1780
1793
|
isOpen(): boolean;
|