Commit graph

623 commits

Author SHA1 Message Date
AzaezelX fcd2d38deb further validator cleanups
bump default fidelity from 0,0001 to 0.01
fix F32Range. needs to go from - to +, not smallest to largest positive value
fix several misasigned validator ranges. most of which use some form of -1 default to do a Special Thing
2025-03-18 14:06:33 -05:00
AzaezelX 011a8906ff skip trying to be clever and just report the variable name being checked directly 2025-03-18 03:13:37 -05:00
AzaezelX 55ac453ab9 guiProfile.border has specific usage cases for -2, so use the full negative range
clarify a bit what fieldindex is being asigned
2025-03-18 01:23:33 -05:00
AzaezelX 44b0d896b8 consolidate addfieldV method contents to avoid duplication
report *what* field is an invalid console type
prune down floating point fuzzed validators to 0
default the visual fidelity to POINT_EPSILON (0.0001) rather than 1/FLT_MAX
use the bit(bitcount) macro for legibility
fix breakangle
2025-03-17 22:39:01 -05:00
AzaezelX 40b5b018c7 report what the value is that is out of range 2025-03-11 22:30:18 -05:00
AzaezelX fa760fa746 add numerous new validators
as well as inspector support to treat a significant chunk of the codebase as range-clmped values which can take a guisliderbarctrl with a configurable at the validator level fidelity variable
additionally adds a new addfieldV and addprotetedfieldV for further callback validated slider-presented variables
*also* adds an on additional callbacks to the inspector itself, like onPreinspectobject, onPostinspectObject, and onPostInspectorfieldModified
in addition to *that*, adds a new hidefield command to tag a given specific field not to show in inspector
2025-03-09 11:51:54 -05:00
AzaezelX d8fcbb7863 work towards reflecting the typemask in the checkboxes in a combinatory manner again 2025-03-06 23:37:37 -06:00
AzaezelX 0ac0ee88c2 BitfieldConsoleBaseType::setData definition
also, preserve saved out 0 and -1 numbers to resrver 'none' and 'all'
ditch 'no' materialdefinition::animtype
2025-03-06 20:55:40 -06:00
AzaezelX 64103a58aa enum value listing
show the string value of masked enums in variable entries
also sort the combo case of scrolling and rotating materials
2025-03-06 19:04:22 -06:00
AzaezelX b36ec14194 add typeS16 2025-02-22 18:57:27 -06:00
marauder2k7 142467ccc6 update lib
can use original cmakelists.txt from torque, but update naming to tinyxml2
2025-02-14 19:57:38 +00:00
JeffR 0d338f2d51 * Update levelAsset creation so it can be flagged to be creating a subScene preemptively, improving workflow when creating a SubScene level asset 'in place' via the inspector.
* Fixed issue of creating new SubScene using the full level template instead of a blank level file
* Fixed subScene inspector field handling so clicking the create new will mark the 'in place' created level asset as a subscene appropriately
* Changed up persistenceManager logic when parsing objects out - especially with specialty fields - to use Strings instead of const char* to simplify memory juggling and improve stability
* Rolled back specialty array field outputs for decal roads and convex shapes to have the field names in the output again
* Added sanity check for MeshRoad's when writing out via specialty array field to ensure there are profile nodes before trying to write any
* Added sanity check to avoid pointlessly writing out meshroad and river position field into subScene file as it could cause a transform double-up and cause them to move when loading from a subscene
2025-02-05 22:51:43 -06:00
marauder2k7 a91ddfffa1 fixes for linux
According to doc and man pages we should not be using %Lg for a double as %Lg relates to a long double, F64 in torque is just a double so. This also produces better results when going from colorF to the colorPicker dialogue
2025-01-24 08:44:57 +00:00
marauder2k7 704e304eef display correct values
Few fixes to display float values if the inspector field asks for floats
Split Hsb out from colorI now linearColorF can return HSB from its own color without having to go through the colorI conversion, hopefully gets rid of rounding errors etc since we are only doing the calc once.
2025-01-23 19:06:35 +00:00
marauder2k7 029a495de1 change hsb to doubles internally 2025-01-22 20:12:49 +00:00
marauder2k7 5ca1c37fe9 more fixes for hsb conversion and gui updated 2025-01-22 19:14:40 +00:00
AzaezelX a5583a1d0e typofix 2025-01-21 11:02:16 -06:00
AzaezelX 0e22488434 cleanups and safeties.
had a bunch of dupliated code injectors that are bypassed by the nature of AbstractClassRep::FIELD_SpecialtyArrayField
since those getSpecialFieldOut entries return a const char * from the stringtable, we *don't* want to try and kill those off, since that can lead to trying to delete deleted things from what was designed as a permanent record
2025-01-19 13:31:23 -06:00
AzaezelX d6334f6cca spline objects were mis-saving in submis files
classes using AbstractClassRep::FIELD_SpecialtyArrayField use an explicit-writing mechanism, rather than tying things to a variable 'slot', so don't try and concaenate the two
2025-01-16 15:35:39 -06:00
AzaezelX 385974ab55 fix callonchildren varargs
std::move eats the sent variable, so store off a temp when applying it multiple times
2025-01-06 15:55:53 -06:00
JeffR 81ac23fd35 Merge branch 'SubScenes_Gamemode_PR' of https://github.com/Areloch/Torque3D into development 2024-12-15 18:39:03 -06:00
JeffR 61d9e82ce5 Adds FIELD_SpecialtyArrayField field type and handling for it in PersistenceManager, as well as a use-case of it for the surface field in ConvexShape 2024-12-07 13:20:30 -06:00
Brian Roberts 1be326e0d0
Merge pull request #1297 from marauder2k9-torque/matrix-templated
Template Matrix class
2024-11-07 16:17:38 -06:00
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
marauder2k7 888332a85c rest of the implementation
apparently templated classes need all functions to be inline, otherwise unresolved symbols
macro for switching between matrixf and templated
few functions that were missed
2024-07-28 14:35:34 +01: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