Commit graph

10 commits

Author SHA1 Message Date
biwa
5b2b149b40
UDBScript version 5 (#819)
Improved UDBScript to version 5:

- Added Plane class
- Added BlockMap, BlockEntry, and BlackMapQueryResult classes
- Sector class
  - Added getLabelPositions method to get the position of sector labels (where tags, effects etc. are displayed)
- Added support for JavaScript BigInt for UDMF fields. This means it's not necessary anymore to use UniValue to assign integers to new UDMF fields. Instead it can be done like this: sector.fields.my_int_field = 1n;
- Added type information file (udbscript.d.ts)
2022-11-13 01:15:17 +01:00
biwa
7f09ac752b UDBScript: fixed a crash when the UDBScript folder was missing or empty. Fixes #789 2022-09-17 13:53:02 +02:00
biwa
c62b8315c4 UDBScript: added an option to open the selected folder in the Explorer to the context menu of folder items in the file tree 2022-02-26 01:04:48 +01:00
biwa
d59342ed7f UDBScript: groups all classes, objects, and methods in a new UDB namespace, usable with the new feature version 4. Updated the documentation accordingly. Resolves #679 2022-01-06 18:46:37 +01:00
biwa
e2374102ee
UDBScript asynchronous execution (#684)
Script run by UDBScript are now executed asynchronously
2022-01-03 14:33:34 +01:00
biwa
634225b77b UDBScript: Exported the classes Linedef, Sector, Sidedef, Thing, and Vertex, so that they can be used with instanceof
UDBScript: Map class: the getSidedefsFromSelectedLinedefs() method now correctly only returns the Sidedefs of selected Linedefs in visual mode (and not also the highlighted one)
UDBScript: Map class: added a new getSidedefsFromSelectedOrHighlightedLinedefs() method as the equivalent to the other getSelectedOrHighlighted*() methods
UDBScript: Sector class: added new floorSelected, ceilingSelected, floorHighlighted, and ceilingHighlighted properties. Those are mostly useful in visual mode, since they always return true when the Sector is selected or highlighted in the classic modes. The properties are read-only
UDBScript: Sidedef class: added new upperSelected, middleSelected, lowerSelected, upperHighlighted, middleHighlighted, and lowerHighlighted properties. Those are mostly useful in visual mode, since they always return true when the parent Linedef is selected or highlighted in the classic modes. The properties are read-only
UDBScript: added new example to apply textures for floor/ceiling and upper/middle/lower texture for selected map elements
UDBScript: updated documentation
2021-12-25 14:43:56 +01:00
biwa
ebd7d0c01c UDBScript: the methods of the Pen class now return the instance of the Pen class to allow method chaining. Resolves #662 2021-12-10 11:54:22 +01:00
biwa
86cc9ca909 UDBScript: expanded/collapsed status of the directory structure is now saved correctly 2021-11-28 15:01:09 +01:00
biwa
843058c76c UDBScript: directories are now expanded by default 2021-11-28 14:50:49 +01:00
biwa
5eb438e3ba
Add map scripting capabilities to UDB (#656)
Added map scripting capabilities to UDB (#656). Documentation at https://biwa.github.io/udbscript-docs/
2021-11-28 14:00:24 +01:00