Commit graph

599 commits

Author SHA1 Message Date
JeffR e2d0cc1981 Fixes issue where Regenerate Bounds button for SceneGroup/SubScenes wasn't displaying by moving it to Editing inspector group
Added mode toggle for if changing the transform influences the child objects of a SubScene or not
Added onSelected/onUnselected callbacks for SimObjects to allow contextual behavior in the editor
Added functionality of programmatic/dynamic Tool Button Palettes
Added logic so when selecting SubScenes the world editor palette has new buttons for letting the move/rotate actions influence the child objects
2024-11-05 20:14:36 -06:00
Areloch 03efedab37 Adds a TORQUE_TOOLS_EXT cmake flag/preprocessor and moves the systemCommand method into that so that one can lock down full shell command execution calls without dropping tools support 2024-09-01 16:55:58 -05:00
AzaezelX 30dcf0bf78 (backup) correct malformed error reporting 2024-08-28 17:22:44 -05:00
AzaezelX 24a1636edd correct malformed error reporting 2024-08-28 17:14:42 -05:00
AzaezelX eaa09a6db7 corrections:
fill in missing SceneObjectTypes enums.
parity with simobject.cpp and objecttypes.h
correct inspector display
2024-07-24 20:43:36 -05:00
AzaezelX 72c67e196a Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into Enumnanigans 2024-07-24 17:58:27 -05:00
marauder2k7 56a89ee0b0 Update consoleFunctions.cpp 2024-07-22 21:20:54 +01:00
marauder2k7 6807abc8b6 ID10T error
no default does not need case -_- id10t error, few other fixes
2024-07-22 21:12:48 +01:00
marauder2k7 a621cc5100 various warnings
warnings cleanup
2024-07-22 20:59:48 +01:00
marauder2k7 b0181cc56a Update astNodes.cpp
missed naming
2024-06-18 15:23:52 +01:00
marauder2k7 fed83cdb8f naming
change enum to OP_JMPIFNOTSTRING (same name as others doing similar for different types)
place case with other ifnot statements
2024-06-18 15:15:25 +01:00
marauder2k7 0d4c335231 test
working test without scanstring changes
2024-06-16 23:05:42 +01:00
marauder2k7 d8411b4a58 Update console.h
case insensitive
2024-06-16 20:02:57 +01:00
marauder2k7 d6a79e4f5b if statement
treat "true" as a bool in getInt check (inside if statements for strings)
no longer convert all "true" and "false" to ints
2024-06-16 20:01:47 +01:00
marauder2k7 e56f4cb6a6 if statements
Changed:
if check on vals now return true if the value has a string value
%val = "test me" if(%val) will now return true since %val is not null

Script side:
string checks for "true" and "false" will now be parsed as integer values of 1 and 0.

TEST VIGOUROUSLY
2024-06-16 15:04:20 +01:00
marauder2k7 1c43959c07 multiline eval support 2024-06-07 20:44:44 +01:00
marauder2k7 8140ed9b64 clear
clear lines, and dont try to print lines when there is no file.
2024-06-07 20:13:56 +01:00
marauder2k7 b338458a1d possible fix for torsion lineno 2024-05-24 09:48:42 +01:00
Areloch b77911bdcd Exposes the SceneObjectTypeMasks as an enum type, allowing it to be utilized in inspectors.
Updated Trigger triggeredBy field to utilize new enum type for editing
Updated MaterialDefinition's animFlags field to utilize appropriate enum type for editing
Fixed image reference in bitmask inspectorField type to use correct image asset name
2024-05-04 09:56:04 -05:00
AzaezelX 1ea74bf8c6 enhanced argc reporting
in a method argc out of bounds scenario, report how many it got, and what range it expected
2024-05-01 18:20:14 -05:00
marauder2k7 baa977eed8 missed change
missed explicit value
2024-04-27 23:40:35 +01:00
marauder2k7 8cf5fac497 Improved error printing torquescript
Added a vector that can lookback across x number of lines in a file, if not a file just print out the error.
2024-04-27 21:19:56 +01:00
marauder2k7 6966d20104 Error printing
now torquescript will print out a more modern error message with a pointer to the offending character.
Multi line error outputs to be added to this for context
2024-04-24 06:42:25 +01:00
marauder2k7 4f3a1f395c Merge remote-tracking branch 'upstream/development' into torquescript-generateCompiler 2024-04-20 06:21:05 +01:00
Areloch 51c1ab6b83 Adds a sanity check to SimObject's setFieldValue console method so if you pass in a blank field name it doesn't crash, instead asserting in debug, and logging the error in release 2024-04-19 00:00:37 -05:00
marauder2k7 587f80da91 Update bison.bat
make it output the header file, this way the linkage should always work..... "should"
2024-04-15 00:33:04 +01:00
marauder2k7 77eec75bed Update astNodes.cpp
typo
2024-04-14 22:52:32 +01:00
marauder2k7 856d3bc901 fix for linux
linux case sensitivity
2024-04-14 22:47:55 +01:00
marauder2k7 83b3f01928 update bison flex
-Updated bison flex exe files to the latest windows version i could find
-Regenned the compiler..... alot of changes.....
2024-04-14 22:17:41 +01:00
marauder2k7 0954b081d0 GenerateCompiler
-ReAdded generateCompiler.bat
-Fixed paths in bat filse
-Fixed paths for includes
2024-04-14 07:08:17 +01:00
Triston a2cdbebfa1 removes a use after freed in consoleInternal 2024-03-24 18:36:42 -05:00
marauder2k7 f00d53f1d4 Revert "Update engineAPI.h"
This reverts commit a3742d26fb.
2024-03-19 22:32:25 +00:00
marauder2k7 a3742d26fb Update engineAPI.h
remove static inline and replace for static.

static inline is not C compliant.
2024-03-19 22:20:48 +00:00
AzaezelX 2e25059b27 fix inheritance conflict loop by declaring a singular root for class EngineObject : public StrongRefBase 2024-03-18 22:39:18 -05:00
marauder2k7 815832152d changes on macosx
mac picked up a couple of left over issues.
2024-03-18 19:58:47 +00:00
marauder2k7 2b295fb7f0 rest of virtuals removed
virtuals removed and replaced with override where necessary on the rest of the code base, clang-tidy to the rescue.
2024-03-18 18:40:22 +00:00
marauder2k7 efbe5e90f5 virtuals removed
virtuals removed and replaced with override where necessary, clang-tidy to the rescue.
2024-03-18 18:13:00 +00:00
AzaezelX 07ed59a872 TORQUE_TOOLS off compile fix
fix a cornercase for when TORQUE_TOOLS is #undef at the torqueconfig.h level
2024-03-10 14:29:17 -05:00
AzaezelX 24562e6758 aug ArrayObject to have a uniquePair command
like uniqueket and uniquevalue, removes duplicate entries, but only if *both* match
also, use that for the populateAllFonts() cache generator
2024-03-03 22:04:09 -06:00
Jeff Hutchinson 0d743c8bb9 TScript Bugfix
If the statement is a terminating statement on slot assignment (such as %var[%i]++;), the stack has to be popped everytime slot arrays are used regardless of the expression type.
2024-01-30 18:24:48 -05:00
AzaezelX 36c1e928ca don't allow setting a key or value on -1 index 2024-01-15 17:04:25 -06:00
AzaezelX 30e67694e8 arrayobject helper commands
getValueFromKey and getKeyFromValue.
both look to the left or right hand entry for the other one
example:
%array.add("startPos","0 0 0 ");
echo(">".%array.getValueFromKey("startPos"));
> 0 0 0
2024-01-10 16:20:08 -06:00
AzaezelX 2a2348b62c don't delete loaded dso code
unlike in the straight compile it now case it does in fact need to stick around. read injects the CodeBlock into a management system, so no worries about cleanup
2024-01-03 17:29:51 -06:00
AzaezelX e8210c8447 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into alpha41/scriptStability 2024-01-02 18:57:27 -06:00
AzaezelX b366ff9b1c script stabilization tweaks
Con::EvalResult CodeBlock::exec -
 objectCreationStackIndex needs to be signed as we test if it goes sub-zero
ConsoleValue Namespace::Entry::execute -
compiler yells about returning a temp via std::move
bool TorqueScriptRuntime::executeFile -
report the name of the dso output file, not the source scxript input file
2024-01-02 18:15:21 -06:00
AzaezelX 5791ee68a7 adds a getFieldCountNS and getFieldNS method to allow field lookup by namespace 2023-12-24 03:15:56 -06:00
AzaezelX b03cb4c49b add a getMethodSigsNS
takes a namespace as an explici value fed to it as oposed to inferring from an passed object
2023-12-24 02:46:26 -06:00
AzaezelX 428f22d728 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into classPrototypingPresenter 2023-12-23 21:29:17 -06:00
AzaezelX 78147821a0 filter inspector buttons out of the following:
PersistenceManager::updateObject
SimObject::writeFields
SimObject::assignFieldsFrom
DefineEngineMethod( SimObject, getFieldCount, S32, (),,
DefineEngineMethod( SimObject, getField, const char*, ( S32 index ),,
SimObject::writeObject

do not do so for
SimObject::setDataField
DefineEngineMethod( SimObject, dump, void, ( bool detailed ), ( false ),
2023-12-19 23:29:46 -06:00
AzaezelX 045c15fd26 Merge branch 'development' of https://github.com/TorqueGameEngines/Torque3D into classPrototypingPresenter 2023-11-29 14:16:37 -06:00