Commit graph

2191 commits

Author SHA1 Message Date
Marc Chapman
1c2effd7fa Phase 1: Add a #define test 2018-01-23 20:24:35 +00:00
Azaezel
1a89d95919 exposes getters for typevalidators.
example usage

FRangeValidator gravCoefFValidator(-10.f, 10.f);
   addFieldV( "gravityCoefficient", TYPEID< F32 >(), Offset(gravityCoefficient, ParticleData), &gravCoefFValidator,
      "Strength of gravity on the particles." ); <- clamps gravity within a -10 to 10 range when evaluating scriptt-set changes

mClamp(gravityCoefficient,gravCoefFValidator.getMin(),gravCoefFValidator.getMax()) for any calculations done on the source side would do the same at the point that is called, with a singularl lookup spot for the range.
2018-01-16 14:14:57 -06:00
Azaezel
cf98ef8350 adds an mWrap and mWrapF method for cycling values to within a given range.
examples of usage would be say, keeping a rotation within 360 degrees, or hitting a tile boundary and resetting the offset
2018-01-16 13:40:09 -06:00
Areloch
b0e8a1f032 Adds a new function for defining static console fields on NetObjects - addNetworkedField()
This lets you attach a 32 bit netMask to the field, so that when it is changed, it automatically flags the associated bitmasks on the netobject as dirty.

This is to shortcut having to flag certain masks being marked as dirty through protected fields and just simplify/streamline the code.
2018-01-16 00:47:53 -06:00
Areloch
463cd50d0a
Merge pull request #2133 from lukaspj/console-function-errors
Fix minor errors in console function definitions
2018-01-10 13:52:33 -06:00
Areloch
c4ded31d9a
Merge pull request #2131 from lukaspj/improve-console-dump
Improve console dump with additional information
2018-01-10 13:52:23 -06:00
Areloch
0cd17a049e
Merge pull request #2134 from lukaspj/console-cleanup
Cleanup of the elements exposed to the console
2018-01-10 13:52:02 -06:00
Areloch
7eb71b531e
Merge pull request #2126 from Areloch/FixComponentEditorDisplay
Fixes the inspector/component editor to display components
2018-01-10 13:12:35 -06:00
Areloch
7e623d7a26
Merge pull request #2156 from Areloch/RemoveOldBitmapLoaders
Remove MNG and GIF loaders
2018-01-10 09:50:56 -06:00
Areloch
86756bd929 Loader files didn't properly get deleted with the libmng and lungif library removal. 2018-01-10 09:49:28 -06:00
Areloch
936f468b5d
Merge pull request #2059 from Bloodknight/SaharaUndo
#define AUTOPAINT_UNDO
2018-01-10 09:47:24 -06:00
Lukas Joergensen
3bc46a8376 Cleanup of the elements exposed to the console 2017-12-10 19:02:20 +01:00
Lukas Joergensen
e7414e95a8 Fix minor errors in console function definitions 2017-12-08 21:08:35 +01:00
Lukas Joergensen
08144a1a55 Improve console dump with additional information, such as array sizes and variadic function 2017-12-08 20:50:44 +01:00
Areloch
2c1675992e Updates Native File Dialogs lib to enable browsing and selecting of folders, instead of just files. 2017-12-06 14:09:27 -06:00
Areloch
c74a7b1bc2 Fixes the inspector/component editor to display the components attached to an entity correctly in the inspector. 2017-12-03 01:21:30 -06:00
Jeff Hutchinson
449c4c4d1e fix arg corruption on functioncall compilation. 2017-11-12 14:21:49 -05:00
Jeff Hutchinson
b05691c6b5 roll back changes to simFieldDictionary as it doesn't want to play nice and causing corruption 2017-11-12 13:39:14 -05:00
Areloch
253dd02096 Refactors the Popup menus and GuiMenuBars to remove unneeded duplication and platform-specific/deprecated code. 2017-11-11 01:21:48 -06:00
Areloch
407bbce509 Merging 2017-11-05 22:33:32 -06:00
Areloch
9fdc89a83e Corrects an include's case sensitivity being wrong, causing issues on linux. 2017-10-30 13:53:12 -05:00
Areloch
48f50d19c3
Merge pull request #2106 from block8437/development
Fixed a typo where the value of outBytesWritten was being clamped incorrectly.
2017-10-28 00:38:19 -05:00
Areloch
0e58300de8 Makes it properly force an update of the filter via a dirty flag. 2017-10-26 20:11:35 -05:00
Areloch
caa1aa67b6 Merge pull request #2096 from Areloch/GetCursorPosLocal
Adds a function to get the cursor position in local coords
2017-10-26 02:42:03 -05:00
Areloch
aa77d49e26 Merge pull request #2095 from Areloch/SetForwardVector
Enables setting the forward vector of a Scene Object
2017-10-26 02:41:52 -05:00
Areloch
6bdbac6e38 Merge pull request #2097 from Areloch/Entity_Component_Improvements
Fixes up various parts of the entity and component classes.
2017-10-26 02:41:42 -05:00
Areloch
920a8d2edb Merge pull request #2099 from Areloch/RemoveECExperimentalFlag
Removes Entity/Component stuff from being behind an experimental flag.
2017-10-26 02:41:31 -05:00
Areloch
793bc84698 Merge pull request #2101 from Areloch/Autoloaded_Assets
Adds the ability to define types of assets to be auto-loaded
2017-10-26 02:41:20 -05:00
Brian Smith
0c604eaf87 Fixed a typo where the value of outBytesWritten was being clamped incorrectly. 2017-10-23 17:00:16 -04:00
Areloch
6805b5567e Remove unneeded isParent handling for entities in the GuiTreeViewCtrl 2017-10-18 00:35:37 -05:00
Areloch
6ce53c45f0 Removes EXTENDED_MOVE block because that's mostly for VR and we'll be implementing a separate VR controller. 2017-10-18 00:26:57 -05:00
Areloch
829e4c40a3 Corrects the documentation. 2017-10-17 21:50:53 -05:00
Areloch
749797dc4f Corrected documentation. 2017-10-17 21:00:42 -05:00
Areloch
df9deea1a8 Removes Entity/Component stuff from being behind an experimental flag. 2017-10-15 06:03:59 -05:00
Areloch
3e26684202 Fixes up various parts of the entity and component classes. 2017-10-15 04:42:30 -05:00
Areloch
2fa0171894 Adds a function to get the cursor position in local coords 2017-10-15 04:02:43 -05:00
Areloch
524556fe30 Adds a engine method to clear the scopeAlways flag on netObjects 2017-10-15 03:59:13 -05:00
Areloch
4bcc97379c Enables setting the forward vector of a Scene Object 2017-10-15 03:49:18 -05:00
Areloch
db7386bb21 Tweaks the asMatrixF for RotationF, as well as exposes additional console methods for rotation manipulation 2017-10-15 03:41:26 -05:00
Areloch
4e03f07e8e Implements support of autoloaded assets. 2017-10-14 22:10:42 -05:00
Areloch
efbd5fb451 Merge pull request #2088 from Areloch/EditorTool
Initial implementation of the EditorTool class and world editor hook-in.
2017-10-11 12:00:21 -05:00
Areloch
35d649b57e Merge pull request #2056 from Bloodknight/afx_merge_main
Afx merge main
2017-10-11 08:47:47 -05:00
Areloch
5c1d764956 Merge pull request #2089 from Areloch/VariableInspectorRefactor
Updates the VariableInspector, VariableGroup and VariableField objects
2017-09-27 15:31:26 -05:00
Areloch
49d109aa6b Enables SDL's ability to drag and drop files onto the game window and have it call back into script for handling. 2017-09-23 15:43:09 -05:00
Areloch
2b35d88e51 Adds some filtering options to the console log gui so you can specify if you wish to be able to see errors, warnings and regular messages. It also denotes how many errors and warnings are currently in the log. 2017-09-23 12:37:55 -05:00
Areloch
4509d14df3 Merge pull request #2057 from OTHGMars/GFXFormatStrs
Adds missing GFX Texture format strings
2017-09-21 16:56:15 -05:00
Areloch
79081c6474 Updates the VariableInspector, VariableGroup and VariableField objects to actually be useful. In addition to the original functionality of being able to have a var name passed in and search for all vars with that in it, it also lets you build out a completely custom Inspector.
Unlike the regular Inspector, which requires a specific object or objects, from which the fields are pulled from, this lets you manually create fields, which can tie into any given object and their fields, global vars, and also not only supports the engine types for fields, but also triggers a callback to script if a field type is not found allowing fully custom fields to be handled as needed.
2017-09-21 02:49:36 -05:00
Areloch
eec61ce1b9 Initial implementation of the EditorTool class and world editor hook-in. 2017-09-21 00:10:44 -05:00
Areloch
b7870c33f8 Sets the default grid snap size to 1 rather than 10. 1 Seems like a more neutral default value, and also makes it match the displayed '1' in the UI interface as the default as well. 2017-09-17 18:24:44 -05:00
Areloch
78107ed546 Merge pull request #2083 from Azaezel/loopyLODs
Sanity check to ensure detail levels shift in tandem for skinned meshes
2017-09-17 04:52:14 -05:00