AzaezelX
25e96b613b
better callback filtering for getMethodSigs
...
add a bool filter to getMethodSigs so it can also return script commands
example code reminder note:
//MainMenuGui.getPrototypeList();
//MainMenuGui.getPrototypeDef("onAdd");
function simObject::getPrototypeList(%this)
{
%methodArray = %this.getMethodSigs();
%methodCount = %methodArray.count();
for (%i=0;%i<%methodCount;%i++)
{
%methodDef = getRecord(%methodArray.getValue(%i),0);
%methodName = strreplace(%methodDef,"::"," ");
%methodName = getWord(strreplace(%methodName,"("," "),2);
warn(%methodName);
}
}
function simObject::getPrototypeDef(%this, %funcName)
{
%methodArray = %this.getMethodSigs();
%methodCount = %methodArray.count();
for (%i=0;%i<%methodCount;%i++)
{
%methodDef = %methodArray.getValue(%i);
%methodName = strreplace(%methodDef,"::"," ");
%methodName = getWord(strreplace(%methodName,"("," "),2);
if (%funcName $= %methodName)
warn(%methodDef);
}
}
2023-03-15 00:14:20 -05:00
Brian Roberts
6cb34ab3e9
Merge pull request #988 from Azaezel/alpha41/getDirectoryList
...
fix getDirectoryList
2023-03-11 13:24:28 -06:00
AzaezelX
4572a0c774
fix getDirectoryList
...
used dStrcat (note: not dStrncat, so there the buffer destination size *is* the third var)
2023-03-11 12:48:57 -06:00
Brian Roberts
bab419fd65
Merge pull request #986 from Azaezel/alpha41/assetCleanups
...
Alpha41/asset cleanups
2023-03-09 21:10:22 -06:00
Areloch
14d099ce37
Corrects logic handling the TypeString for the onInspect dynamic field behavior.
2023-03-08 13:01:52 -06:00
AzaezelX
7872f01689
since we do in fact allow arbitrary tack on variables to scriptobject derivatives, and thus tamls, reporting theres a non hardcoded variable entry is actively counterproductive to flexibility.
...
plus minor format fix
2023-03-07 16:10:46 -06:00
Brian Roberts
9eab4559fd
Merge pull request #984 from Azaezel/alpha41/safeArray
...
check whether or not mBitmapArrayRects.empty(). not simply if size()
2023-03-07 16:07:24 -06:00
Brian Roberts
b257ac3d1e
Merge pull request #979 from mjunix/small-fixes
...
Small fixes
2023-03-06 19:31:07 -06:00
AzaezelX
d6480cb63c
check wether or not mBitmapArrayRects.empty(). not simply if size()
...
(cherry picked from commit fea81a4d57edff9c05bf397a5b21d8422838cc1c)
2023-03-06 15:29:40 -06:00
Johan Mattsson
0cbb4fc8a1
Use bitwise instead of logical OR
2023-03-05 12:14:17 +01:00
Johan Mattsson
5b8bfffdec
Fix operator
2023-03-05 12:12:57 +01:00
Johan Mattsson
70a464b3f4
Fix corruption of file encoding.
2023-03-05 11:56:47 +01:00
Johan Mattsson
77e808cc3a
Use correct calculation for dStrncat
2023-03-05 11:28:23 +01:00
Brian Roberts
f1d42d3867
Merge pull request #983 from Areloch/GuiPanelDeGradient
...
Removes the unnecessary gradient effect from GuiPanel when rendered.
2023-03-04 21:32:49 -06:00
Areloch
197aa9f887
Removes the unnecessary gradient effect from GuiPanel when rendered. Now uses just the fill color like most all other gui controls
2023-03-04 21:26:55 -06:00
Brian Roberts
59ed9ee7b6
Merge pull request #982 from Areloch/OnInspectEditorLogic
...
Adds logic and handling for Inspected SimObjects to be able to injectnew InspectorGroups and InspectorFields when being inspected for editing.
2023-03-04 20:07:25 -06:00
Areloch
3991019912
Adds logic and handling for Inspected SimObjects to be able to inject new InspectorGroups and InspectorFields when being inspected for editing.
...
Allows for expanded editing capabilities of existing classes without needing to add static fields to classes
2023-03-04 19:04:44 -06:00
Johan Mattsson
2e1cfe9332
Fix potential index out of bounds
2023-03-04 22:05:43 +01:00
Johan Mattsson
2efd5f0acd
Fix potential index out of bounds
2023-03-04 22:03:17 +01:00
Johan Mattsson
11a9edd263
Release memory
2023-03-04 22:01:36 +01:00
Johan Mattsson
e46e744dc7
Release memory
2023-03-04 21:59:17 +01:00
Johan Mattsson
3c0a251f71
Release memory
2023-03-04 21:58:16 +01:00
Johan Mattsson
390be98140
Release memory
2023-03-04 21:55:39 +01:00
Johan Mattsson
18ca6c406a
Prevent memory leak
2023-03-04 21:54:21 +01:00
Johan Mattsson
acc2e73f48
Release memory
2023-03-04 21:53:02 +01:00
Johan Mattsson
518f2c6a27
Release memory
2023-03-04 21:51:56 +01:00
Johan Mattsson
7519f18035
Check correct variable
2023-03-04 21:48:42 +01:00
Johan Mattsson
fa5b377ec3
Fix argument to dStrncat
2023-03-04 21:47:04 +01:00
Johan Mattsson
4f4184ab68
Assign result from mClampF
2023-03-04 21:44:52 +01:00
Johan Mattsson
3c19b8c679
Fix operators
2023-03-04 21:42:41 +01:00
Brian Roberts
eeab0c1e06
Merge pull request #977 from Azaezel/alpha41/spawnSphereThisTracking
...
spawnsphere %this tracking
2023-03-03 20:53:08 -06:00
AzaezelX
e944d117e1
spawnsphere %this tracking
...
fill out a %this var for sawnobjects prior to running the spawnscript command to give it acess to the spawner instance in addition to the spawned instance
2023-03-01 17:49:10 -06:00
AzaezelX
c4ae6258cc
sound safeties and future notes
2023-02-26 17:26:43 -06:00
Brian Roberts
bae7166cc0
Merge pull request #971 from Azaezel/alpha41/isFileFix
...
fix isFile detection, and aug for script extension searching
2023-02-23 21:53:19 -06:00
AzaezelX
f77fa1f286
fix isFile detection, and aug for script extension searching
2023-02-23 16:59:10 -06:00
JeffR
167f98b767
Expands ScriptAsset behavior to operate as a generic type-settable asset
2023-02-23 15:29:59 -06:00
Brian Roberts
b6f3c25fea
Merge pull request #968 from AtomicWalrus/TerrainMacroAndBlendHardness_PR
...
Enables terrain macro maps, adds height blend "hardness" setting
2023-02-21 00:14:10 -06:00
Brian Roberts
ae72247be2
Merge pull request #967 from Azaezel/alpha41/audiopreloadFixes
...
standardize soundasset preloading for datablocks
2023-02-20 22:15:50 -06:00
AtomicWalrus
13fec9bb80
Squashed commit of the following:
...
commit 678d0ea2357915c6502af90083f1d34b6b21b7b4
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date: Mon Feb 20 20:46:15 2023 -0700
Removed some commented-out code
commit 4a149157f7a7b781e2246b1417b144625ff559cd
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date: Mon Feb 20 20:42:03 2023 -0700
Remove un-used instance of the blendHardness var
commit e5dc42adef00ed371cbc89b731ae16889ba68d9a
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date: Mon Feb 20 18:57:51 2023 -0700
Cleanup un-needed conditionals and other leftover code
commit dccd10010e058f00cd41f5c5c111443f9cb71721
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date: Mon Feb 20 18:05:31 2023 -0700
Use validator instead of protected field (2)
commit 4cc7f1d32fcc6ab788de54bb38763283fbd5533e
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date: Mon Feb 20 18:03:40 2023 -0700
Use validator instead of protected field
commit e8d7e1731e383a99e8a0539d23a3b04f9c252491
Author: AtomicWalrus <headlesschickens.inc@gmail.com>
Date: Mon Feb 20 15:34:48 2023 -0700
Terrain macro textures and blending hardness
2023-02-20 20:47:46 -07:00
AtomicWalrus
8c04446893
Fix height blending detail color doubling when no normal
2023-02-20 18:48:02 -07:00
AzaezelX
15f7f04bee
standardize soundasset preloading for datablocks
2023-02-19 05:19:51 -06:00
Brian Roberts
6c8dfdbe4c
Merge pull request #964 from Azaezel/alpha41/protoMethods
...
new method, getMethodSigs. spits out callback proto-functions
2023-02-16 08:27:22 -06:00
AzaezelX
a8e74787b7
new method, getMethodSigs. spits out callback proto-functions
2023-02-15 17:38:45 -06:00
Brian Roberts
c1d417806a
Merge pull request #963 from Azaezel/alpha41/terrainNormSafety
...
terrain safeties
2023-02-15 15:48:11 -06:00
AzaezelX
747dd3ecd4
terrain safeties
...
ensure terrain normals don't nan
ensure the blend range for terrains is floored
2023-02-15 14:51:28 -06:00
Brian Roberts
36771d9f0b
Merge pull request #959 from Azaezel/alpha41/guiiconBorderfix
...
fix GuiIconButtonCtrl not taking borderThickness entires
2023-02-15 14:37:43 -06:00
Brian Roberts
6f2e9adc70
Merge pull request #960 from Azaezel/alpha41/audioGuiCtrl2
...
audio gui control
2023-02-15 14:37:33 -06:00
AzaezelX
57037080b2
add an ignoreLighting entry to materials
...
by request:, flag to utterly ignore lighting in favor of the base texture
2023-02-14 20:57:44 -06:00
AzaezelX
4543aaec26
audio gui control
...
a gui element that plays a sound on loop, with minor configuration options and a logcal block for conditional plug in
2023-02-14 18:54:25 -06:00
AzaezelX
76a7b024e8
fix GuiIconButtonCtrl not taking borderThickness entires
2023-02-14 17:32:31 -06:00