Commit graph

15 commits

Author SHA1 Message Date
spherallic
66965674a6 Clean up example UDBScripts some more 2024-04-05 16:54:20 +02:00
spherallic
2b627b0e8a Merge remote-tracking branch 'udb/master' 2024-04-05 15:25:28 +02:00
biwa
5726421c9d GZDoom game configuration: removed support for path nodes, because the feature was removed from GZDoom 2024-03-31 18:36:31 +02:00
spherallic
2ca05336dd Add 3 example scripts that recreate ZB actions 2024-03-13 18:45:28 +01:00
spherallic
77d45c78f9 Merge remote-tracking branch 'udb/master' 2024-03-13 18:39:54 +01:00
MajorCooke
a023633c16
GZDoom Game Configuration: Added support for PathNodes. (#1032)
UDBScript: Added scripts for PathNode management
2024-03-09 14:14:12 +01:00
spherallic
a1658c66b3 Merge remote-tracking branch 'udb/master' 2024-03-07 12:52:54 +01:00
biwa
f28a4b10a8 UDBScript examples: fixed a problem in the "Create Line Portal" script where not all arguments of the selected lines were reset. Fixes #1026 2024-03-03 10:50:04 +01:00
spherallic
192ddc9e6c - Expose GetFloorPlane and GetCeilingPlane to UDBScript
- Add two new example scripts, remove one useless example script
2024-02-20 15:25:13 +01:00
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
f9fe1ea900 UDBScript: fixed a problem in the voodoo doll example script when the "looping" option was set to true 2022-04-09 17:12:13 +02: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
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
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