is it possible to have CT_OBJECT and/or CT_OBJECT_CONTAINER be created using ctrlCreate too? its a powerful tool that would allow Public zeus game masters to view any model using GUI (locally executed), it is also less painful to work with than hpp.
Description
Description
Details
Details
- Severity
- Feature
- Resolution
- Open
- Reproducibility
- N/A
- Operating System
- Windows 10 x64
- Category
- Scripting
Additional Information
example (not working):
with uiNamespace do { RscObjectDisplay = (findDisplay 46) createDisplay 'RscDisplayEmpty'; _RscObject = RscObjectDisplay ctrlCreate ["RscObject", 1234]; _RscObject ctrlSetPosition [0.5 * safezoneW + safezoneX,0.5* safezoneH + safezoneY,2]; _RscObject ctrlSetModel "a3\armor_f_epb\mbt_03\mbt_03_cannon_f.p3d"; _RscObject ctrlSetModelDirAndUp [[0,1,0],[0,0,1]]; _RscObject ctrlSetModelScale 0.5; _RscObject ctrlCommit 0; };
hpp (works):
#define CT_OBJECT class coolstuff { idd = 1434; access = 0; movingEnable = true; enableSimulation = true; class Controls { }; class Objects { class Test { idc = 5004; type = 80; movingEnable = false; // true to enable moving dialog with mouse enableZoom = 0; zoomDuration = 0.001; inBack = 1; direction[] = {0.707107,0,0.707107}; up[]={0,1,0}; position[] = {0,0,2.5}; scale=0.12; model = "a3\armor_f_epb\mbt_03\mbt_03_cannon_f.p3d"; xBack = 0.6; yBack = 0.45; zBack = 1.2; x = 0.5 * safezoneW + safezoneX; y = 0.5* safezoneH + safezoneY; z = 2; }; }; };
Event Timeline
Comment Actions
here is a simple one:
with uiNamespace do { RscObjectDisplay = (findDisplay 46) createDisplay 'RscDisplayEmpty'; _RscObject = RscObjectDisplay ctrlCreate ["RscObject", 1234]; _RscObject ctrlSetPosition [0.459907 * safezoneW + safezoneX, 0.443518 * safezoneH + safezoneY, 0.0412056 * safezoneW, 0.055 * safezoneH]; _RscObject ctrlSetModel "a3\armor_f_epb\mbt_03\mbt_03_cannon_f.p3d"; _RscObject ctrlSetModelDirAndUp [[0,1,0],[0,0,1]]; _RscObject ctrlSetModelScale 0.5; _RscObject ctrlCommit 0; };
Comment Actions
#define CT_OBJECT class coolstuff { idd = 1434; access = 0; movingEnable = true; enableSimulation = true; class Controls { }; class Objects { class Test { idc = 5004; type = 80; movingEnable = false; // true to enable moving dialog with mouse enableZoom = 0; zoomDuration = 0.001; inBack = 1; direction[] = {0.707107,0,0.707107}; up[]={0,1,0}; position[] = {0,0,2.5}; scale=0.12; model = "a3\armor_f_epb\mbt_03\mbt_03_cannon_f.p3d"; xBack = 0.6; yBack = 0.45; zBack = 1.2; x = 0.5 * safezoneW + safezoneX; y = 0.5* safezoneH + safezoneY; z = 2; }; }; };
This comment was removed by BIS_fnc_KK.